diff --git a/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java b/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
index d9cf73b87..c400674c1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
@@ -393,7 +393,7 @@ public abstract class JDBCTask extends Task {
/**
- * Set the caching attribute. (!)
+ * Set the caching attribute.
* @param value a boolean
value
*/
public void isCaching(boolean value) {
@@ -464,4 +464,4 @@ public abstract class JDBCTask extends Task {
return version;
}
-}
+}
\ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java b/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
index a97364eeb..3a3296525 100644
--- a/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
+++ b/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
@@ -49,7 +49,7 @@ public class LogOutputStream extends LineOrientedOutputStream {
/**
* Creates a new instance of this class.
*
- * @param task the task for whom to log
+ * @param pc the project component for whom to log
* @param level loglevel used to log data written to this stream.
* @since Ant 1.6.3
*/
@@ -92,4 +92,4 @@ public class LogOutputStream extends LineOrientedOutputStream {
return level;
}
-}
+}
\ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java b/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
index d864c1d3a..bb0b527f5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
+++ b/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
@@ -239,7 +239,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
- * @see BuildLogger#setEmacMode(boolean)
+ * @see BuildLogger#setEmacsMode(boolean)
*/
public void setEmacsMode(boolean emacsMode) {
this.emacsMode = emacsMode;
@@ -342,4 +342,3 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
}
}
-
diff --git a/src/main/org/apache/tools/ant/taskdefs/ResourceCount.java b/src/main/org/apache/tools/ant/taskdefs/ResourceCount.java
index 72c333a89..0f16bdaf2 100755
--- a/src/main/org/apache/tools/ant/taskdefs/ResourceCount.java
+++ b/src/main/org/apache/tools/ant/taskdefs/ResourceCount.java
@@ -106,7 +106,7 @@ public class ResourceCount extends Task implements Condition {
/**
* Set the comparison for use as a Condition.
- * @param w EnumeratedAttribute When.
+ * @param c Comparison (an EnumeratedAttribute) When.
* @see org.apache.tools.ant.types.Comparison
*/
public void setWhen(Comparison c) {
@@ -121,4 +121,4 @@ public class ResourceCount extends Task implements Condition {
property = p;
}
-}
+}
\ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
index e0cd14ef6..72423d7e1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
@@ -318,7 +318,7 @@ public class XMLValidateTask extends Task {
/**
* handler called on successful file validation.
- * @param fileProcessed number of files processed.
+ * @param fileProcessed number of files processed.
*/
protected void onSuccessfulValidation(int fileProcessed) {
log(fileProcessed + MESSAGE_FILES_VALIDATED);
@@ -370,7 +370,7 @@ public class XMLValidateTask extends Task {
* falling back to a default reader if not.
* If the returned reader is an instance of {@link ParserAdapter} then
* we have created and wrapped a SAX1 parser.
- * @returns the new XMLReader.
+ * @return the new XMLReader.
*/
protected XMLReader createXmlReader() {
Object reader = null;
@@ -729,4 +729,4 @@ public class XMLValidateTask extends Task {
-}
+}
\ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
index fb360f7f9..33e76e6e9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
@@ -205,7 +205,7 @@ public class NetCommand {
* add an argument to a command line; do nothing if the arg is null or
* empty string
*
- *@param argument The feature to be added to the Argument attribute
+ *@param arguments The features to be added to the Argument attribute
*/
public void addArguments(String[] arguments) {
if (arguments != null && arguments.length != 0) {
@@ -397,4 +397,3 @@ public class NetCommand {
return filesOutOfDate;
}
}
-
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java
index c37a0ed7f..aaf543684 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java
@@ -203,7 +203,7 @@ public class WsdlToDotnet extends Task {
}
/**
- * Should errors be machine parseable?
+ * Defines wether errors are machine parseable.
* Optional, default=true
*
* @since Ant 1.7
@@ -558,4 +558,3 @@ public class WsdlToDotnet extends Task {
}
}
-
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
index 50bff8d00..dabc96f74 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
@@ -89,11 +89,11 @@ public class FTP
protected static final int SITE_CMD = 7;
/** return code of ftp - not implemented in commons-net version 1.0 */
private static final int CODE_521 = 521;
-
+
/** adjust uptodate calculations where server timestamps are HH:mm and client's
* are HH:mm:ss */
private static final long GRANULARITY_MINUTE = 60000L;
-
+
/** Default port for FTP */
public static final int DEFAULT_FTP_PORT = 21;
@@ -223,7 +223,7 @@ public class FTP
String cwd = ftp.printWorkingDirectory();
// always start from the current ftp working dir
forceRemoteSensitivityCheck();
-
+
checkIncludePatterns();
clearCaches();
ftp.changeWorkingDirectory(cwd);
@@ -539,7 +539,7 @@ public class FTP
}
return result;
}
-
+
private void forceRemoteSensitivityCheck()
{
if (!remoteSensitivityChecked) {
@@ -897,7 +897,7 @@ public class FTP
}
return traversesSymlinks;
}
-
+
public String toString() {
return "AntFtpFile: "+curpwd+"%"+ftpFile;
}
@@ -1278,8 +1278,8 @@ public class FTP
/**
* Sets the systemTypeKey attribute.
* Method for setting FTPClientConfig
remote system key.
- *
- * @param systemTypeKey the key to be set - BUT if blank
+ *
+ * @param systemKey the key to be set - BUT if blank
* the default value of null (which signifies "autodetect") will be kept.
* @see org.apache.commons.net.ftp.FTPClientConfig
*/
@@ -1293,7 +1293,7 @@ public class FTP
/**
* Sets the defaultDateFormatConfig attribute.
- * @param defaultDateFormatConfig configuration to be set, unless it is
+ * @param defaultDateFormat configuration to be set, unless it is
* null or empty string, in which case ignored.
* @see org.apache.commons.net.ftp.FTPClientConfig
*/
@@ -1307,7 +1307,7 @@ public class FTP
/**
* Sets the recentDateFormatConfig attribute.
- * @param recentDateFormatConfig configuration to be set, unless it is
+ * @param recentDateFormat configuration to be set, unless it is
* null or empty string, in which case ignored.
* @see org.apache.commons.net.ftp.FTPClientConfig
*/
@@ -1321,7 +1321,7 @@ public class FTP
/**
* Sets the serverLanguageCode attribute.
- * @param serverLanguageCodeConfig configuration to be set, unless it is
+ * @param serverLanguageCode configuration to be set, unless it is
* null or empty string, in which case ignored.
* @see org.apache.commons.net.ftp.FTPClientConfig
*/
@@ -1335,7 +1335,7 @@ public class FTP
/**
* Sets the serverTimeZoneConfig attribute.
- * @param serverTimeZoneConfig configuration to be set, unless it is
+ * @param serverTimeZoneId configuration to be set, unless it is
* null or empty string, in which case ignored.
* @see org.apache.commons.net.ftp.FTPClientConfig
*/
@@ -1349,8 +1349,8 @@ public class FTP
/**
* Sets the shortMonthNamesConfig attribute
- *
- * @param shortMonthNamesConfig configuration to be set, unless it is
+ *
+ * @param shortMonthNames configuration to be set, unless it is
* null or empty string, in which case ignored.
* @see org.apache.commons.net.ftp.FTPClientConfig
*/
@@ -1365,11 +1365,11 @@ public class FTP
/**
- * How many times to retry executing FTP command before giving up?
+ * Defines how many times to retry executing FTP command before giving up.
* Default is 0 - try once and if failure then give up.
- *
+ *
* @param retriesAllowed number of retries to allow. -1 means
- * keep trying forever. "forever" may also be specified as a
+ * keep trying forever. "forever" may also be specified as a
* synonym for -1.
*/
public void setRetriesAllowed(String retriesAllowed) {
@@ -1380,18 +1380,18 @@ public class FTP
int retries = Integer.parseInt(retriesAllowed);
if (retries < Retryable.RETRY_FOREVER) {
throw new BuildException(
- "Invalid value for retriesAllowed attribute: "
+ "Invalid value for retriesAllowed attribute: "
+ retriesAllowed);
}
this.retriesAllowed = retries;
} catch (NumberFormatException px) {
throw new BuildException(
- "Invalid value for retriesAllowed attribute: "
+ "Invalid value for retriesAllowed attribute: "
+ retriesAllowed);
-
+
}
-
+
}
}
/**
@@ -1458,8 +1458,8 @@ public class FTP
/**
* Sets the initialSiteCommand attribute. This attribute
* names a site command that will be executed immediately
- * after connection.
- * @param initialSiteCommand The initialSiteCommand to set.
+ * after connection.
+ * @param initialCommand The initialSiteCommand to set.
*/
public void setInitialSiteCommand(String initialCommand) {
this.initialSiteCommand = initialCommand;
@@ -1499,7 +1499,7 @@ public class FTP
+ "action!");
}
-
+
if (this.isConfigurationSet) {
try {
Class.forName("org.apache.commons.net.ftp.FTPClientConfig");
@@ -1509,8 +1509,8 @@ public class FTP
}
}
}
-
- protected void executeRetryable(RetryHandler h, Retryable r, String descr)
+
+ protected void executeRetryable(RetryHandler h, Retryable r, String descr)
throws IOException
{
h.execute(r, descr);
@@ -1592,7 +1592,7 @@ public class FTP
final BufferedWriter fbw = bw;
final String fdir = dir;
if (this.newerOnly) {
- this.granularityMillis =
+ this.granularityMillis =
this.timestampGranularity.getMilliseconds(action);
}
for (int i = 0; i < dsfiles.length; i++) {
@@ -1819,10 +1819,10 @@ public class FTP
}
return null;
}
-
- private static final SimpleDateFormat TIMESTAMP_LOGGING_SDF =
+
+ private static final SimpleDateFormat TIMESTAMP_LOGGING_SDF =
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-
+
/**
* Checks to see if the remote file is current as compared with the local
* file. Returns true if the target file is up to date.
@@ -1859,26 +1859,26 @@ public class FTP
long remoteTimestamp = files[0].getTimestamp().getTime().getTime();
long localTimestamp = localFile.lastModified();
- long adjustedRemoteTimestamp =
- remoteTimestamp + this.timeDiffMillis + this.granularityMillis;
-
+ long adjustedRemoteTimestamp =
+ remoteTimestamp + this.timeDiffMillis + this.granularityMillis;
+
StringBuffer msg = new StringBuffer(" [")
- .append(TIMESTAMP_LOGGING_SDF.format(new Date(localTimestamp)))
- .append("] local");
+ .append(TIMESTAMP_LOGGING_SDF.format(new Date(localTimestamp)))
+ .append("] local");
log(msg.toString(), Project.MSG_VERBOSE);
-
+
msg = new StringBuffer(" [")
- .append(TIMESTAMP_LOGGING_SDF.format(new Date(adjustedRemoteTimestamp)))
- .append("] remote");
+ .append(TIMESTAMP_LOGGING_SDF.format(new Date(adjustedRemoteTimestamp)))
+ .append("] remote");
if (remoteTimestamp != adjustedRemoteTimestamp) {
msg.append(" - (raw: ")
- .append(TIMESTAMP_LOGGING_SDF.format(new Date(remoteTimestamp)))
+ .append(TIMESTAMP_LOGGING_SDF.format(new Date(remoteTimestamp)))
.append(")");
}
log(msg.toString(), Project.MSG_VERBOSE);
-
-
+
+
if (this.action == SEND_FILES) {
return adjustedRemoteTimestamp >= localTimestamp;
} else {
@@ -2281,7 +2281,7 @@ public class FTP
+ "mode: " + ftp.getReplyString());
}
}
-
+
// If an initial command was configured then send it.
// Some FTP servers offer different modes of operation,
// E.G. switching between a UNIX file system mode and
@@ -2415,26 +2415,26 @@ public class FTP
}
}
/**
- * represents one of the valid timestamp adjustment values
+ * represents one of the valid timestamp adjustment values
* recognized by the timestampGranularity
attribute.
- * A timestamp adjustment may be used in file transfers for checking
- * uptodateness. MINUTE means to add one minute to the server
- * timestamp. This is done because FTP servers typically list
+ * A timestamp adjustment may be used in file transfers for checking
+ * uptodateness. MINUTE means to add one minute to the server
+ * timestamp. This is done because FTP servers typically list
* timestamps HH:mm and client FileSystems typically use HH:mm:ss.
- *
- * The default is to use MINUTE for PUT actions and NONE for GET
+ *
+ * The default is to use MINUTE for PUT actions and NONE for GET
* actions, since GETs have the preserveLastModified
* option, which takes care of the problem in most use cases where
* this level of granularity is an issue.
- *
+ *
*/
public static class Granularity extends EnumeratedAttribute {
private static final String[] VALID_GRANULARITIES = {
"", "MINUTE", "NONE"
};
- /*
+ /*
* @return the list of valid Granularity values
*/
public String[] getValues() {
@@ -2442,11 +2442,11 @@ public class FTP
return VALID_GRANULARITIES;
}
/**
- * returns the number of milliseconds associated with
+ * returns the number of milliseconds associated with
* the attribute, which can vary in some cases depending
* on the value of the action parameter.
* @param action SEND_FILES or GET_FILES
- * @return the number of milliseconds associated with
+ * @return the number of milliseconds associated with
* the attribute, in the context of the supplied action
*/
public long getMilliseconds(int action) {
@@ -2454,51 +2454,51 @@ public class FTP
long granularity = 0L;
if ("".equals(granularityU)) {
if (action == SEND_FILES) {
- return GRANULARITY_MINUTE;
+ return GRANULARITY_MINUTE;
}
} else if ("MINUTE".equals(granularityU)) {
return GRANULARITY_MINUTE;
- }
- return 0L;
+ }
+ return 0L;
}
static final Granularity getDefault() {
Granularity g = new Granularity();
g.setValue("");
return g;
}
-
+
}
/**
- * one of the valid system type keys recognized by the systemTypeKey
- * attribute.
- */
+ * one of the valid system type keys recognized by the systemTypeKey
+ * attribute.
+ */
public static class FTPSystemType extends EnumeratedAttribute {
private static final String[] VALID_SYSTEM_TYPES = {
- "", "UNIX", "VMS", "WINDOWS", "OS/2", "OS/400",
- "MVS"
- };
-
-
- /*
- * @return the list of valid system types.
- */
- public String[] getValues() {
- return VALID_SYSTEM_TYPES;
- }
-
- static final FTPSystemType getDefault() {
- FTPSystemType ftpst = new FTPSystemType();
- ftpst.setValue("");
- return ftpst;
- }
+ "", "UNIX", "VMS", "WINDOWS", "OS/2", "OS/400",
+ "MVS"
+ };
+
+
+ /*
+ * @return the list of valid system types.
+ */
+ public String[] getValues() {
+ return VALID_SYSTEM_TYPES;
+ }
+
+ static final FTPSystemType getDefault() {
+ FTPSystemType ftpst = new FTPSystemType();
+ ftpst.setValue("");
+ return ftpst;
+ }
}
public static class LanguageCode extends EnumeratedAttribute {
-
- private static final String[] VALID_LANGUAGE_CODES =
+
+ private static final String[] VALID_LANGUAGE_CODES =
getValidLanguageCodes();
-
+
private static final String[] getValidLanguageCodes() {
Collection c = FTPClientConfig.getSupportedLanguageCodes();
String[] ret = new String[c.size() + 1];
@@ -2507,23 +2507,22 @@ public class FTP
for (Iterator it = c.iterator(); it.hasNext(); i++) {
ret[i] = (String) it.next();
}
- return ret;
- }
-
-
- /*
- * @return the list of valid system types.
- */
- public String[] getValues() {
- return VALID_LANGUAGE_CODES;
- }
-
- static final LanguageCode getDefault() {
- LanguageCode lc = new LanguageCode();
- lc.setValue("");
- return lc;
- }
- }
+ return ret;
+ }
+
-}
+ /*
+ * @return the list of valid system types.
+ */
+ public String[] getValues() {
+ return VALID_LANGUAGE_CODES;
+ }
+
+ static final LanguageCode getDefault() {
+ LanguageCode lc = new LanguageCode();
+ lc.setValue("");
+ return lc;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java b/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
index da7fe0747..a7fd90717 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
@@ -123,7 +123,7 @@ public class CovReport extends CovBase {
/** Enumerated type for format attribute. */
public static class ReportFormat extends EnumeratedAttribute {
- /** @see EnumeratedAttribute@getValues() */
+ /** @see EnumeratedAttribute#getValues() */
public String[] getValues() {
return new String[]{"html", "text", "xml"};
}
@@ -139,7 +139,7 @@ public class CovReport extends CovBase {
/** Enumerated type for type attribute. */
public static class ReportType extends EnumeratedAttribute {
- /** @see EnumeratedAttribute@getValues() */
+ /** @see EnumeratedAttribute#getValues() */
public String[] getValues() {
return new String[]{"executive", "summary", "detailed", "verydetailed"};
}
@@ -407,4 +407,4 @@ public class CovReport extends CovBase {
}
}
}
-}
+}
\ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
index 1c9b5445a..fc4de8f47 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
@@ -33,9 +33,7 @@ import com.jcraft.jsch.Session;
/**
* Executes a command on a remote machine via ssh.
- *
- * @created February 2, 2003
- * @since Ant 1.6
+ * @since Ant 1.6 (created February 2, 2003)
*/
public class SSHExec extends SSHBase {
@@ -261,4 +259,3 @@ public class SSHExec extends SSHBase {
}
}
-
diff --git a/src/main/org/apache/tools/ant/taskdefs/repository/HttpRepository.java b/src/main/org/apache/tools/ant/taskdefs/repository/HttpRepository.java
index 3e3fab7fe..50f1066aa 100644
--- a/src/main/org/apache/tools/ant/taskdefs/repository/HttpRepository.java
+++ b/src/main/org/apache/tools/ant/taskdefs/repository/HttpRepository.java
@@ -33,7 +33,7 @@ import java.net.URL;
*
* Although it is biased towards HTTP, because the underlying <get> task
* supports different protocols, one is actually able to use other protocols
- * such as ftp: or file: to retrieve content.
+ * such as ftp: or file: to retrieve content.
*
* @since Ant1.7
*/
@@ -189,7 +189,7 @@ public abstract class HttpRepository extends Repository {
/**
* Test for a repository being reachable. This method is called after {@link
- * #connect(org.apache.tools.ant.taskdefs.repository.GetLibraries)}
+ * #connect(org.apache.tools.ant.taskdefs.repository.Libraries)}
* is called, before any files are to be retrieved.
*
ProjectComponent
for
* this ConcatResourceInputStream
.
- * @param task the managing Task
.
+ * @param pc the managing ProjectComponent
.
*/
public void setManagingComponent(ProjectComponent pc) {
this.managingPc = pc;
@@ -140,4 +140,4 @@ public class ConcatResourceInputStream extends InputStream {
FileUtils.close(currentStream);
currentStream = null;
}
-}
+}
\ No newline at end of file