Browse Source

Some Javadoc corrections.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@432709 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 19 years ago
parent
commit
69c95afa02
21 changed files with 48 additions and 84 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/Main.java
  2. +1
    -1
      src/main/org/apache/tools/ant/launch/Locator.java
  3. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
  4. +3
    -5
      src/main/org/apache/tools/ant/taskdefs/AntStructure.java
  5. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Expand.java
  6. +7
    -7
      src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
  7. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Tar.java
  8. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Untar.java
  9. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Zip.java
  10. +0
    -5
      src/main/org/apache/tools/ant/taskdefs/condition/ParserSupports.java
  11. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/condition/ResourcesMatch.java
  12. +6
    -10
      src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java
  13. +0
    -6
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
  14. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java
  15. +3
    -4
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetResource.java
  16. +0
    -6
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/JSharp.java
  17. +0
    -6
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.java
  18. +8
    -8
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java
  19. +0
    -6
      src/main/org/apache/tools/ant/types/TarFileSet.java
  20. +2
    -2
      src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
  21. +7
    -7
      src/main/org/apache/tools/ant/util/FileUtils.java

+ 2
- 2
src/main/org/apache/tools/ant/Main.java View File

@@ -218,8 +218,8 @@ public class Main implements AntMain {


/** /**
* This operation is expected to call {@link System#exit(int)}, which * This operation is expected to call {@link System#exit(int)}, which
* is what the base version does. however, the option to do something
* different is there.
* is what the base version does.
* However, it is possible to do something else.
* @param exitCode code to exit with * @param exitCode code to exit with
*/ */
protected void exit(int exitCode) { protected void exit(int exitCode) {


+ 1
- 1
src/main/org/apache/tools/ant/launch/Locator.java View File

@@ -133,7 +133,7 @@ public final class Locator {
* <p>Prior to Java 1.4, * <p>Prior to Java 1.4,
* swallows '%' that are not followed by two characters.</p> * swallows '%' that are not followed by two characters.</p>
* *
* @see <a href="http://www.w3.org/TR/xml11/#dt-sysid">dt-sysid</a>
* See <a href="http://www.w3.org/TR/xml11/#dt-sysid">dt-sysid</a>
* which makes some mention of how * which makes some mention of how
* characters not supported by URI Reference syntax should be escaped. * characters not supported by URI Reference syntax should be escaped.
* *


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java View File

@@ -193,7 +193,7 @@ public abstract class AbstractJarSignerTask extends Task {
/** /**
* Adds a path of files to sign. * Adds a path of files to sign.
* *
* @param a path of files to sign.
* @return a path of files to sign.
* @since Ant 1.7 * @since Ant 1.7
*/ */
public Path createPath() { public Path createPath() {


+ 3
- 5
src/main/org/apache/tools/ant/taskdefs/AntStructure.java View File

@@ -126,10 +126,8 @@ public class AntStructure extends Task {
/** /**
* Writes the actual structure information. * Writes the actual structure information.
* *
* <p>{@link StructurePrinter#printHead printHead}, {@link
* StructurePrinter#printTargetDecl printTargetDecl} and {@link
* StructurePrinter#printTail printTail} are called exactly once,
* {@link StructurePrinter#printElement printElement} once for
* <p>{@link #printHead}, {@link #printTargetDecl} and {@link #printTail}
* are called exactly once, {@link #printElementDecl} once for
* each declared task and type.</p> * each declared task and type.</p>
*/ */
public static interface StructurePrinter { public static interface StructurePrinter {
@@ -157,7 +155,7 @@ public class AntStructure extends Task {
* @param out PrintWriter to write to. * @param out PrintWriter to write to.
* @param p Project instance for the current task * @param p Project instance for the current task
* @param name element name. * @param name element name.
* @param name class of the defined element.
* @param element class of the defined element.
*/ */
void printElementDecl(PrintWriter out, Project p, String name, void printElementDecl(PrintWriter out, Project p, String name,
Class element); Class element);


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Expand.java View File

@@ -153,7 +153,7 @@ public class Expand extends Task {
/** /**
* This method is to be overridden by extending unarchival tasks. * This method is to be overridden by extending unarchival tasks.
* *
* @param r the source resource
* @param srcR the source resource
* @param dir the destination directory * @param dir the destination directory
*/ */
protected void expandResource(Resource srcR, File dir) { protected void expandResource(Resource srcR, File dir) {


+ 7
- 7
src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java View File

@@ -87,14 +87,14 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
} }


/** /**
* @see BuildListener#buildStarted(BuildEvent)
* @see org.apache.tools.ant.BuildListener#buildStarted(BuildEvent)
*/ */
public void buildStarted(BuildEvent event) { public void buildStarted(BuildEvent event) {
log("> BUILD STARTED", Project.MSG_DEBUG); log("> BUILD STARTED", Project.MSG_DEBUG);
} }


/** /**
* @see BuildListener#buildFinished(BuildEvent)
* @see org.apache.tools.ant.BuildListener#buildFinished(BuildEvent)
*/ */
public void buildFinished(BuildEvent event) { public void buildFinished(BuildEvent event) {
log("< BUILD FINISHED", Project.MSG_DEBUG); log("< BUILD FINISHED", Project.MSG_DEBUG);
@@ -139,7 +139,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
} }


/** /**
* @see BuildListener#targetStarted(BuildEvent)
* @see org.apache.tools.ant.BuildListener#targetStarted(BuildEvent)
*/ */
public void targetStarted(BuildEvent event) { public void targetStarted(BuildEvent event) {
log(">> TARGET STARTED -- " + event.getTarget(), Project.MSG_DEBUG); log(">> TARGET STARTED -- " + event.getTarget(), Project.MSG_DEBUG);
@@ -149,7 +149,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
} }


/** /**
* @see BuildListener#targetFinished(BuildEvent)
* @see org.apache.tools.ant.BuildListener#targetFinished(BuildEvent)
*/ */
public void targetFinished(BuildEvent event) { public void targetFinished(BuildEvent event) {
log("<< TARGET FINISHED -- " + event.getTarget(), Project.MSG_DEBUG); log("<< TARGET FINISHED -- " + event.getTarget(), Project.MSG_DEBUG);
@@ -161,14 +161,14 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
} }


/** /**
* @see BuildListener#taskStarted(BuildEvent)
* @see org.apache.tools.ant.BuildListener#taskStarted(BuildEvent)
*/ */
public void taskStarted(BuildEvent event) { public void taskStarted(BuildEvent event) {
log(">>> TASK STARTED -- " + event.getTask(), Project.MSG_DEBUG); log(">>> TASK STARTED -- " + event.getTask(), Project.MSG_DEBUG);
} }


/** /**
* @see BuildListener#taskFinished(BuildEvent)
* @see org.apache.tools.ant.BuildListener#taskFinished(BuildEvent)
*/ */
public void taskFinished(BuildEvent event) { public void taskFinished(BuildEvent event) {
log("<<< TASK FINISHED -- " + event.getTask(), Project.MSG_DEBUG); log("<<< TASK FINISHED -- " + event.getTask(), Project.MSG_DEBUG);
@@ -176,7 +176,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
} }


/** /**
* @see BuildListener#messageLogged(BuildEvent)
* @see org.apache.tools.ant.BuildListener#messageLogged(BuildEvent)
*/ */
public void messageLogged(BuildEvent event) { public void messageLogged(BuildEvent event) {
log("--- MESSAGE LOGGED", Project.MSG_DEBUG); log("--- MESSAGE LOGGED", Project.MSG_DEBUG);


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Tar.java View File

@@ -339,7 +339,7 @@ public class Tar extends MatchingTask {


/** /**
* tar a resource * tar a resource
* @param file the resource to tar
* @param r the resource to tar
* @param tOut the output stream * @param tOut the output stream
* @param vPath the path name of the file to tar * @param vPath the path name of the file to tar
* @param tarFileSet the fileset that the file came from, may be null. * @param tarFileSet the fileset that the file came from, may be null.
@@ -502,7 +502,7 @@ public class Tar extends MatchingTask {


/** /**
* Is the archive up to date in relationship to a list of files. * Is the archive up to date in relationship to a list of files.
* @param files the files to check
* @param r the files to check
* @return true if the archive is up to date. * @return true if the archive is up to date.
* @since Ant 1.7 * @since Ant 1.7
*/ */


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Untar.java View File

@@ -106,7 +106,7 @@ public class Untar extends Expand {
/** /**
* This method is to be overridden by extending unarchival tasks. * This method is to be overridden by extending unarchival tasks.
* *
* @param r the source resource
* @param srcR the source resource
* @param dir the destination directory * @param dir the destination directory
* @since Ant 1.7 * @since Ant 1.7
*/ */
@@ -190,7 +190,7 @@ public class Untar extends Expand {
* This method wraps the input stream with the * This method wraps the input stream with the
* corresponding decompression method * corresponding decompression method
* *
* @param file provides location information for BuildException
* @param name provides location information for BuildException
* @param istream input stream * @param istream input stream
* @return input stream with on-the-fly decompression * @return input stream with on-the-fly decompression
* @exception IOException thrown by GZIPInputStream constructor * @exception IOException thrown by GZIPInputStream constructor


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -1164,7 +1164,7 @@ public class Zip extends MatchingTask {
* third arg if they already know that the archive is * third arg if they already know that the archive is
* out-of-date.</p> * out-of-date.</p>
* *
* @param filesets The filesets to grab resources from
* @param rcs The filesets to grab resources from
* @param zipFile intended archive file (may or may not exist) * @param zipFile intended archive file (may or may not exist)
* @param needsUpdate whether we already know that the archive is * @param needsUpdate whether we already know that the archive is
* out-of-date. Subclasses overriding this method are supposed to * out-of-date. Subclasses overriding this method are supposed to


+ 0
- 5
src/main/org/apache/tools/ant/taskdefs/condition/ParserSupports.java View File

@@ -73,11 +73,6 @@ public class ParserSupports extends ProjectComponent implements Condition {
this.value = value; this.value = value;
} }


/**
* Validate the args, then try to set the feature or property
* @return
* @throws BuildException
*/
public boolean eval() throws BuildException { public boolean eval() throws BuildException {
if (feature != null && property != null) { if (feature != null && property != null) {
throw new BuildException(ERROR_BOTH_ATTRIBUTES); throw new BuildException(ERROR_BOTH_ATTRIBUTES);


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/condition/ResourcesMatch.java View File

@@ -41,7 +41,7 @@ public class ResourcesMatch implements Condition {
/** /**
* Set whether to treat resources as if they were text files, * Set whether to treat resources as if they were text files,
* ignoring line endings. * ignoring line endings.
* @param astext whether to ignore line endings.
* @param asText whether to ignore line endings.
*/ */
public void setAsText(boolean asText) { public void setAsText(boolean asText) {
this.asText = asText; this.asText = asText;


+ 6
- 10
src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java View File

@@ -89,8 +89,8 @@ public class SchemaValidate extends XMLValidateTask {
} }


/** /**
* turn on XSD support in Xerces
* @return
* Turn on XSD support in Xerces.
* @return true on success, false on failure
*/ */
public boolean enableXercesSchemaValidation() { public boolean enableXercesSchemaValidation() {
try { try {
@@ -116,10 +116,10 @@ public class SchemaValidate extends XMLValidateTask {
} }


/** /**
* set schema attributes in a JAXP12 engine
* Set schema attributes in a JAXP 1.2 engine.
* @see <A href="http://java.sun.com/xml/jaxp/change-requests-11.html"> * @see <A href="http://java.sun.com/xml/jaxp/change-requests-11.html">
* JAXP 1.2 Approved CHANGES</A> * JAXP 1.2 Approved CHANGES</A>
* @return
* @return true on success, false on failure
*/ */
public boolean enableJAXP12SchemaValidation() { public boolean enableJAXP12SchemaValidation() {
try { try {
@@ -230,7 +230,7 @@ public class SchemaValidate extends XMLValidateTask {
* Create a reader if the use of the class did not specify another one. * Create a reader if the use of the class did not specify another one.
* The reason to not use {@link JAXPUtils#getXMLReader()} was to * The reason to not use {@link JAXPUtils#getXMLReader()} was to
* create our own factory with our own options. * create our own factory with our own options.
* @return
* @return a default XML parser
*/ */
protected XMLReader createDefaultReader() { protected XMLReader createDefaultReader() {
SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParserFactory factory = SAXParserFactory.newInstance();
@@ -274,7 +274,7 @@ public class SchemaValidate extends XMLValidateTask {


/** /**
* get the URL of the no namespace schema * get the URL of the no namespace schema
* @return
* @return the schema URL
*/ */
protected String getNoNamespaceSchemaURL() { protected String getNoNamespaceSchemaURL() {
if (anonymousSchema == null) { if (anonymousSchema == null) {
@@ -465,10 +465,6 @@ public class SchemaValidate extends XMLValidateTask {
return true; return true;
} }


/**
* hashcode function
* @return
*/
public int hashCode() { public int hashCode() {
int result; int result;
result = (namespace != null ? namespace.hashCode() : 0); result = (namespace != null ? namespace.hashCode() : 0);


+ 0
- 6
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java View File

@@ -380,12 +380,6 @@ public class CSharp extends DotnetCompile {
return "cs"; return "cs";
} }


/**
* from a resource, get the resource param string
* @param resource
* @return a string containing the resource param, or a null string
* to conditionally exclude a resource.
*/
protected void createResourceParameter(NetCommand command, DotnetResource resource) { protected void createResourceParameter(NetCommand command, DotnetResource resource) {
resource.getParameters(getProject(), command, true); resource.getParameters(getProject(), command, true);
} }


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java View File

@@ -874,7 +874,7 @@ public abstract class DotnetCompile
} }
} }


/**
/* XXX Javadoc makes little sense, rewrite
* from a resource, get the * from a resource, get the
* @param resource * @param resource
* @return a string containing the resource param, or a null string * @return a string containing the resource param, or a null string


+ 3
- 4
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetResource.java View File

@@ -25,8 +25,9 @@ import java.util.Iterator;
import org.apache.tools.ant.*; import org.apache.tools.ant.*;


/** /**
* class used by DotnetCompile to name resources, could be upgraded to a
* datatype in the distant future. a resource maps to /res:file,name
* Used by {@link DotnetCompile} to name resources.
* Could be upgraded to a datatype in the distant future.
* A resource maps to /res:file,name
*/ */
public class DotnetResource { public class DotnetResource {


@@ -153,8 +154,6 @@ public class DotnetResource {


/** /**
* build the C# style parameter (which has no public/private option) * build the C# style parameter (which has no public/private option)
*
* @return the built C# style parameter
*/ */
public void getParameters(Project p, NetCommand command, boolean csharpStyle) { public void getParameters(Project p, NetCommand command, boolean csharpStyle) {
checkParameters(); checkParameters();


+ 0
- 6
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/JSharp.java View File

@@ -113,12 +113,6 @@ public class JSharp extends DotnetCompile {
} }
} }


/**
* from a resource, get the resource param
* @param resource
* @return a string containing the resource param, or a null string
* to conditionally exclude a resource.
*/
protected void createResourceParameter(NetCommand command, DotnetResource resource) { protected void createResourceParameter(NetCommand command, DotnetResource resource) {
resource.getParameters(getProject(), command, true); resource.getParameters(getProject(), command, true);
} }


+ 0
- 6
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.java View File

@@ -346,12 +346,6 @@ public class VisualBasicCompile extends DotnetCompile {
return "vb"; return "vb";
} }


/**
* from a resource, get the resource param
* @param resource
* @return a string containing the resource param, or a null string
* to conditionally exclude a resource.
*/
protected void createResourceParameter(NetCommand command, DotnetResource resource) { protected void createResourceParameter(NetCommand command, DotnetResource resource) {
resource.getParameters(getProject(), command, false); resource.getParameters(getProject(), command, false);
} }


+ 8
- 8
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java View File

@@ -391,8 +391,8 @@ public class WsdlToDotnet extends Task {
} }


/** /**
* validate our settings then return either the url or the full file path.
* @return
* Validate our settings.
* @return either the URL or the full file path
*/ */
public String evaluate() { public String evaluate() {
validate(); validate();
@@ -448,8 +448,8 @@ public class WsdlToDotnet extends Task {
} }


/** /**
* return the timestamp of a file, or -1 for a url (meaning we do not know its age)
* @return
* Gets the file timestamp.
* @return the timestamp of a file, or -1 for a URL (meaning we do not know its age)
*/ */
public long getTimestamp() { public long getTimestamp() {
if (file != null) { if (file != null) {
@@ -513,8 +513,8 @@ public class WsdlToDotnet extends Task {
} }


/** /**
* create the default compiler for this platform
* @return
* Create the default compiler for this platform.
* @return the default compiler
*/ */
public static Compiler createDefaultCompiler() { public static Compiler createDefaultCompiler() {
Compiler c = new Compiler(); Compiler c = new Compiler();
@@ -526,7 +526,7 @@ public class WsdlToDotnet extends Task {


/** /**
* return the command to run * return the command to run
* @return
* @return the command
*/ */
public String getCommand() { public String getCommand() {
return compilerExecutables[getIndex()]; return compilerExecutables[getIndex()];
@@ -534,7 +534,7 @@ public class WsdlToDotnet extends Task {


/** /**
* return any extra arguments for the compiler * return any extra arguments for the compiler
* @return
* @return extra compiler arguments
*/ */
public String[] getExtraArgs() { public String[] getExtraArgs() {
return extraCompilerArgs[getIndex()]; return extraCompilerArgs[getIndex()];


+ 0
- 6
src/main/org/apache/tools/ant/types/TarFileSet.java View File

@@ -214,12 +214,6 @@ public class TarFileSet extends ArchiveFileSet {
} }
} }


/**
* A ArchiveFileset accepts another ArchiveFileSet or a FileSet as reference
* FileSets are often used by the war task for the lib attribute
* @param p the project to use
* @return the abstract fileset instance
*/
protected void configureFileSet(ArchiveFileSet zfs) { protected void configureFileSet(ArchiveFileSet zfs) {
super.configureFileSet(zfs); super.configureFileSet(zfs);
if (zfs instanceof TarFileSet) { if (zfs instanceof TarFileSet) {


+ 2
- 2
src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java View File

@@ -33,8 +33,8 @@ public abstract class AbstractScriptComponent extends ProjectComponent {


/** /**
* Get our script runner * Get our script runner
* @return
*/
* @return the runner
*/
public ScriptRunner getRunner() { public ScriptRunner getRunner() {
return runner; return runner;
} }


+ 7
- 7
src/main/org/apache/tools/ant/util/FileUtils.java View File

@@ -654,7 +654,7 @@ public class FileUtils {
* <li>DOS style paths that start with a drive letter will have * <li>DOS style paths that start with a drive letter will have
* \ as the separator.</li> * \ as the separator.</li>
* </ul> * </ul>
* Unlike <code>File#getCanonicalPath()</code> this method
* Unlike {@link File#getCanonicalPath()} this method
* specifically does not resolve symbolic links. * specifically does not resolve symbolic links.
* *
* @param path the path to be normalized. * @param path the path to be normalized.
@@ -1072,7 +1072,7 @@ public class FileUtils {
* *
* <p>The coding of the output is the same as what File.toURI().toASCIIString() produces</p> * <p>The coding of the output is the same as what File.toURI().toASCIIString() produces</p>
* *
* @see <a href="http://www.w3.org/TR/xml11/#dt-sysid">dt-sysid</a>
* See <a href="http://www.w3.org/TR/xml11/#dt-sysid">dt-sysid</a>
* which makes some mention of how * which makes some mention of how
* characters not supported by URI Reference syntax should be escaped. * characters not supported by URI Reference syntax should be escaped.
* *
@@ -1349,7 +1349,7 @@ public class FileUtils {
} }


/** /**
* Calculates the relative path between to files.
* Calculates the relative path between two files.
* <p> * <p>
* Implementation note:<br/> This function my throw an IOException if an * Implementation note:<br/> This function my throw an IOException if an
* I/O error occurs because its use of the canonical pathname may require * I/O error occurs because its use of the canonical pathname may require
@@ -1360,9 +1360,9 @@ public class FileUtils {
* the <code>File</code> to calculate the path from * the <code>File</code> to calculate the path from
* @param toFile * @param toFile
* the <code>File</code> to calculate the path to * the <code>File</code> to calculate the path to
* @return
* @throws Exception
* @see {@link File#getCanonicalPath()}
* @return the relative path between the files
* @throws Exception for undocumented reasons
* @see File#getCanonicalPath()
* *
* @since Ant 1.7 * @since Ant 1.7
*/ */
@@ -1482,4 +1482,4 @@ public class FileUtils {
return buffer.toString(); return buffer.toString();
} }


}
}

Loading…
Cancel
Save