git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273159 13f79535-47bb-0310-9956-ffa450edef68master
@@ -140,7 +140,7 @@ public class Main { | |||||
private boolean projectHelp = false; | private boolean projectHelp = false; | ||||
/** | /** | ||||
* Is a logfile being used? This is used to | |||||
* Whether or not a logfile is being used. This is used to | |||||
* check if the output streams must be closed. | * check if the output streams must be closed. | ||||
*/ | */ | ||||
private static boolean isLogFileUsed = false; | private static boolean isLogFileUsed = false; | ||||
@@ -69,7 +69,8 @@ public final class StripJavaComments | |||||
/** | /** | ||||
* The read-ahead character, used for effectively pushing a single | * The read-ahead character, used for effectively pushing a single | ||||
* character back. -1 indicates that no character is in the buffer. | |||||
* character back. A value of -1 indicates that no character is in the | |||||
* buffer. | |||||
*/ | */ | ||||
private int readAheadCh = -1; | private int readAheadCh = -1; | ||||
@@ -109,7 +109,8 @@ public class Concat extends Task { | |||||
private File destinationFile = null; | private File destinationFile = null; | ||||
/** | /** | ||||
* If the destination file exists, should the stream be appended? | |||||
* Whether or not the stream should be appended if the destination file | |||||
* exists. | |||||
* Defaults to <code>false</code>. | * Defaults to <code>false</code>. | ||||
*/ | */ | ||||
private boolean append = false; | private boolean append = false; | ||||
@@ -319,14 +319,15 @@ public abstract class Definer extends Task { | |||||
} | } | ||||
/** | /** | ||||
* what is the classname we are definining? Can be null | |||||
* Returns the classname of the object we are defining. | |||||
* May be <code>null</code>. | |||||
*/ | */ | ||||
public String getClassname() { | public String getClassname() { | ||||
return value; | return value; | ||||
} | } | ||||
/** | /** | ||||
* the full class name of the object being defined. | |||||
* The full class name of the object being defined. | |||||
* Required, unless file or resource have | * Required, unless file or resource have | ||||
* been specified. | * been specified. | ||||
*/ | */ | ||||
@@ -335,8 +336,8 @@ public abstract class Definer extends Task { | |||||
} | } | ||||
/** | /** | ||||
* this must be implemented by subclasses; it is the callback | |||||
* they will get to add a new definition of their type | |||||
* This must be implemented by subclasses; it is the callback | |||||
* they will get to add a new definition of their type. | |||||
*/ | */ | ||||
protected abstract void addDefinition(String name, Class c); | protected abstract void addDefinition(String name, Class c); | ||||
} | } |
@@ -237,11 +237,12 @@ public class PathConvert extends Task { | |||||
/** | /** | ||||
* Set targetos to a platform to one of | * Set targetos to a platform to one of | ||||
* "windows", "unix", "netware", or "os/2"; required unless | |||||
* unless pathsep and/or dirsep are specified. | |||||
* "windows", "unix", "netware", or "os/2". | |||||
* | |||||
* Required unless unless pathsep and/or dirsep are specified. | |||||
* | * | ||||
* @deprecated use the method taking a TargetOs argument instead | * @deprecated use the method taking a TargetOs argument instead | ||||
* @see #setTargetos(TargetOs) | |||||
* @see #setTargetos(PathConvert.TargetOs) | |||||
*/ | */ | ||||
public void setTargetos(String target) { | public void setTargetos(String target) { | ||||
TargetOs to = new TargetOs(); | TargetOs to = new TargetOs(); | ||||
@@ -183,8 +183,7 @@ public class Replace extends MatchingTask { | |||||
} | } | ||||
/** | /** | ||||
* get the replacement value for this filter token | |||||
* @return | |||||
* Get the replacement value for this filter token. | |||||
*/ | */ | ||||
public String getReplaceValue() { | public String getReplaceValue() { | ||||
if (property != null) { | if (property != null) { | ||||
@@ -102,7 +102,7 @@ import java.util.Vector; | |||||
* <ul> | * <ul> | ||||
* <li>sun (the standard compiler of the JDK)</li> | * <li>sun (the standard compiler of the JDK)</li> | ||||
* <li>kaffe (the standard compiler of | * <li>kaffe (the standard compiler of | ||||
* {@ link <a href="http://www.kaffe.org">Kaffe</a>})</li> | |||||
* {@link <a href="http://www.kaffe.org">Kaffe</a>})</li> | |||||
* <li>weblogic</li> | * <li>weblogic</li> | ||||
* </ul> | * </ul> | ||||
* | * | ||||
@@ -363,9 +363,9 @@ public class Rmic extends MatchingTask { | |||||
} | } | ||||
/** | /** | ||||
* Include ant's own classpath in this task's classpath? | |||||
* sets whether to include the Ant run-time libraries; | |||||
* optional defaults to true. | |||||
* Sets whether or not to include ant's own classpath in this task's | |||||
* classpath. | |||||
* Optional; default is <code>true</code>. | |||||
*/ | */ | ||||
public void setIncludeantruntime(boolean include) { | public void setIncludeantruntime(boolean include) { | ||||
includeAntRuntime = include; | includeAntRuntime = include; | ||||
@@ -247,8 +247,8 @@ public class SQLExec extends JDBCTask { | |||||
} | } | ||||
/** | /** | ||||
* Set the delimiter that separates SQL statements; | |||||
* optional, default ";" | |||||
* Sets the delimiter that separates SQL statements. | |||||
* Optional, defaults to ";". | |||||
* | * | ||||
* <p>For example, set this to "go" and delimitertype to "ROW" for | * <p>For example, set this to "go" and delimitertype to "ROW" for | ||||
* Sybase ASE or MS SQL Server.</p> | * Sybase ASE or MS SQL Server.</p> | ||||
@@ -80,30 +80,30 @@ import org.apache.tools.ant.util.FileUtils; | |||||
public class TempFile extends Task { | public class TempFile extends Task { | ||||
/** | /** | ||||
* name of property to set | |||||
* Name of property to set. | |||||
*/ | */ | ||||
private String property; | private String property; | ||||
/** | /** | ||||
* directory to create the file in. can be null | |||||
* Directory to create the file in. Can be null. | |||||
*/ | */ | ||||
private File destDir = null; | private File destDir = null; | ||||
/** | /** | ||||
* prefix for the file | |||||
* Prefix for the file. | |||||
*/ | */ | ||||
private String prefix; | private String prefix; | ||||
/** | /** | ||||
* suffix for the file | |||||
* Suffix for the file. | |||||
*/ | */ | ||||
private String suffix = ""; | private String suffix = ""; | ||||
/** | /** | ||||
* The property you wish to assign the temporary file to | |||||
* Sets the property you wish to assign the temporary file to. | |||||
* | * | ||||
*@param property The property to set | |||||
* @param property The property to set | |||||
*/ | */ | ||||
public void setProperty(String property) { | public void setProperty(String property) { | ||||
this.property = property; | this.property = property; | ||||
@@ -111,10 +111,10 @@ public class TempFile extends Task { | |||||
/** | /** | ||||
* destination directory. If null, | |||||
the parent directory is used instead | |||||
* Sets the destination directory. If null, | |||||
* the parent directory is used instead. | |||||
* | * | ||||
*@param destDir The new destDir value | |||||
* @param destDir The new destDir value | |||||
*/ | */ | ||||
public void setDestDir(File destDir) { | public void setDestDir(File destDir) { | ||||
this.destDir = destDir; | this.destDir = destDir; | ||||
@@ -122,9 +122,9 @@ public class TempFile extends Task { | |||||
/** | /** | ||||
* optional prefix string | |||||
* Sets the optional prefix string. | |||||
* | * | ||||
*@param prefix string to prepend to generated string | |||||
* @param prefix string to prepend to generated string | |||||
*/ | */ | ||||
public void setPrefix(String prefix) { | public void setPrefix(String prefix) { | ||||
this.prefix = prefix; | this.prefix = prefix; | ||||
@@ -132,9 +132,9 @@ public class TempFile extends Task { | |||||
/** | /** | ||||
* Suffix string for the temp file (optional) | |||||
* Sets the suffix string for the temp file (optional) | |||||
* | * | ||||
*@param suffix suffix including any "." , e.g ".xml" | |||||
* @param suffix suffix including any "." , e.g ".xml" | |||||
*/ | */ | ||||
public void setSuffix(String suffix) { | public void setSuffix(String suffix) { | ||||
this.suffix = suffix; | this.suffix = suffix; | ||||
@@ -142,7 +142,7 @@ public class TempFile extends Task { | |||||
/** | /** | ||||
* create the temp file | |||||
* Creates the temporary file. | |||||
* | * | ||||
*@exception BuildException if something goes wrong with the build | *@exception BuildException if something goes wrong with the build | ||||
*/ | */ | ||||
@@ -734,8 +734,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { | |||||
} | } | ||||
/** | /** | ||||
* Specific configuration for the TRaX liaison... support for | |||||
* all other has been dropped so this liaison will soon look | |||||
* Specific configuration for the TRaX liaison. Support for | |||||
* all others has been dropped so this liaison will soon look | |||||
* like the exact copy of JAXP interface.. | * like the exact copy of JAXP interface.. | ||||
* @param liaison the TRaXLiaison to configure. | * @param liaison the TRaXLiaison to configure. | ||||
*/ | */ | ||||
@@ -121,10 +121,11 @@ public class XMLValidateTask extends Task { | |||||
private XMLCatalog xmlCatalog = new XMLCatalog(); | private XMLCatalog xmlCatalog = new XMLCatalog(); | ||||
/** | /** | ||||
* Specify how parser error are to be handled; | |||||
* optional, default=true | |||||
* Specify how parser error are to be handled. | |||||
* Optional, default is <code>true</code>. | |||||
* <p> | * <p> | ||||
* If set to <code>true</code> (default), throw a buildException if the parser yields an error. | |||||
* If set to <code>true</code> (default), throw a buildException if the | |||||
* parser yields an error. | |||||
*/ | */ | ||||
public void setFailOnError(boolean fail) { | public void setFailOnError(boolean fail) { | ||||
@@ -165,7 +165,8 @@ public class WsdlToDotnet extends Task { | |||||
} | } | ||||
/** | /** | ||||
* Should failure halt the build? optional, default=true | |||||
* Whether or not a failure should halt the build. | |||||
* Optional - default is <code>true</code>. | |||||
* @param failOnError new failure option | * @param failOnError new failure option | ||||
*/ | */ | ||||
public void setFailOnError(boolean failOnError) { | public void setFailOnError(boolean failOnError) { | ||||
@@ -179,7 +179,7 @@ public class JonasDeploymentTool extends GenericDeploymentTool { | |||||
private String rmicopts; | private String rmicopts; | ||||
/** | /** | ||||
* <code>true</code> if the RMI Skel. and Stub. must be modified to | |||||
* Whether or not the RMI skeleton and stub must be modified to | |||||
* implement the implicit propagation of the security context (the | * implement the implicit propagation of the security context (the | ||||
* transactional context is always provided). The default is | * transactional context is always provided). The default is | ||||
* <code>false</code>. | * <code>false</code>. | ||||
@@ -329,7 +329,7 @@ public class JonasDeploymentTool extends GenericDeploymentTool { | |||||
} | } | ||||
/** | /** | ||||
* Set the {@link #jarsuffix}. | |||||
* Set the {@link #suffix jar suffix}. | |||||
* | * | ||||
* @param aString the string to use as the suffix. | * @param aString the string to use as the suffix. | ||||
*/ | */ | ||||
@@ -210,7 +210,8 @@ public class JspC extends MatchingTask { | |||||
/* ------------------------------------------------------------ */ | /* ------------------------------------------------------------ */ | ||||
/** | /** | ||||
* should the build halt if compilation fails? default=true | |||||
* Whether or not the build should halt if compilation fails. | |||||
* Defaults to <code>true</code>. | |||||
*/ | */ | ||||
public void setFailonerror(boolean fail) { | public void setFailonerror(boolean fail) { | ||||
failOnError = fail; | failOnError = fail; | ||||
@@ -108,7 +108,7 @@ public class SetProxy extends Task { | |||||
private String socksProxyHost = null; | private String socksProxyHost = null; | ||||
/** | /** | ||||
* socks proxy port. 1080 is the default | |||||
* Socks proxy port. Default is 1080. | |||||
*/ | */ | ||||
private int socksProxyPort = 1080; | private int socksProxyPort = 1080; | ||||
@@ -268,7 +268,8 @@ public class TelnetTask extends Task { | |||||
} | } | ||||
/** | /** | ||||
* should the message be echoed to the log? default=true. | |||||
* Whether or not the message should be echoed to the log. | |||||
* Defaults to <code>true</code>. | |||||
*/ | */ | ||||
public void setEcho(boolean b) { | public void setEcho(boolean b) { | ||||
echoString = b; | echoString = b; | ||||
@@ -202,8 +202,9 @@ public abstract class SOS extends Task { | |||||
/** | /** | ||||
* Set the address and port of SourceOffSite Server, | |||||
* eg. 192.168.0.1:8888 ; required. | |||||
* Sets the address and port of SourceOffSite Server, | |||||
* for example 192.168.0.1:8888. | |||||
* This attribute is required. | |||||
* | * | ||||
* @param sosServerPath The new sosServerPath value | * @param sosServerPath The new sosServerPath value | ||||
*/ | */ | ||||
@@ -112,8 +112,8 @@ public class StarTeamCheckout extends TreeBasedTask { | |||||
} | } | ||||
/** | /** | ||||
* Should all all local files <i>not<i> in StarTeam be deleted? | |||||
* Optional, defaults to "true". | |||||
* Whether or not all local files <i>not<i> in StarTeam should be deleted. | |||||
* Optional, defaults to <code>true</code>. | |||||
* @param value the value to set the attribute to. | * @param value the value to set the attribute to. | ||||
*/ | */ | ||||
public void setDeleteUncontrolled(boolean value) { | public void setDeleteUncontrolled(boolean value) { | ||||
@@ -136,14 +136,16 @@ public class MSVSSADD extends MSVSS { | |||||
} | } | ||||
/** | /** | ||||
* Leave added files writable? Default: false. | |||||
* Whether or not to leave added files writable. | |||||
* Default is <code>false</code>. | |||||
*/ | */ | ||||
public final void setWritable(boolean argWritable) { | public final void setWritable(boolean argWritable) { | ||||
m_Writable = argWritable; | m_Writable = argWritable; | ||||
} | } | ||||
/** | /** | ||||
* @return the 'make writable' command if the attribute was 'true', otherwise an empty string | |||||
* The 'make writable' command if the attribute was <code>true</code>, | |||||
* otherwise an empty string. | |||||
*/ | */ | ||||
public void getWritableCommand(Commandline cmd) { | public void getWritableCommand(Commandline cmd) { | ||||
if (!m_Writable) { | if (!m_Writable) { | ||||
@@ -175,14 +175,16 @@ public class MSVSSCHECKIN extends MSVSS { | |||||
} | } | ||||
/** | /** | ||||
* Leave checked in files writable? Default: false. | |||||
* Whether or not to leave checked in files writable. | |||||
* Default is <code>false</code>. | |||||
*/ | */ | ||||
public final void setWritable(boolean argWritable) { | public final void setWritable(boolean argWritable) { | ||||
m_Writable = argWritable; | m_Writable = argWritable; | ||||
} | } | ||||
/** | /** | ||||
* the 'make writable' command if the attribute was 'true', otherwise an empty string | |||||
* The 'make writable' command if the attribute was <code>true</code>, | |||||
* otherwise an empty string. | |||||
*/ | */ | ||||
public void getWritableCommand(Commandline cmd) { | public void getWritableCommand(Commandline cmd) { | ||||
if (!m_Writable) { | if (!m_Writable) { | ||||
@@ -100,7 +100,7 @@ public class CollectionUtils { | |||||
} | } | ||||
/** | /** | ||||
* Hashtable.equals() doesn't do any good in 1.1 | |||||
* Hashtable.equals() doesn't do any good in 1.1. | |||||
* | * | ||||
* <p>Follows the equals contract of Java 2's Map.</p> | * <p>Follows the equals contract of Java 2's Map.</p> | ||||
* | * | ||||
@@ -311,8 +311,7 @@ public class JavaEnvUtils { | |||||
} | } | ||||
/** | /** | ||||
* testing helper method; kept here for unification of changes. | |||||
* @return | |||||
* Testing helper method; kept here for unification of changes. | |||||
*/ | */ | ||||
public static Vector getJrePackageTestCases() { | public static Vector getJrePackageTestCases() { | ||||
Vector tests=new Vector(); | Vector tests=new Vector(); | ||||