Browse Source

Normalize some @since tags

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272425 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
c51b8ee385
7 changed files with 30 additions and 30 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/ConditionTask.java
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Delete.java
  3. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Execute.java
  4. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Jar.java
  5. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Unpack.java
  6. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Zip.java
  7. +20
    -20
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

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

@@ -83,21 +83,21 @@ public class ConditionTask extends ConditionBase {
/** /**
* The name of the property to set. Required. * The name of the property to set. Required.
* *
* @since 1.1
* @since Ant 1.4
*/ */
public void setProperty(String p) {property = p;} public void setProperty(String p) {property = p;}


/** /**
* The value for the property to set. Defaults to "true". * The value for the property to set. Defaults to "true".
* *
* @since 1.1
* @since Ant 1.4
*/ */
public void setValue(String v) {value = v;} public void setValue(String v) {value = v;}


/** /**
* See whether our nested condition holds and set the property. * See whether our nested condition holds and set the property.
* *
* @since 1.1
* @since Ant 1.4
*/ */
public void execute() throws BuildException { public void execute() throws BuildException {
if (countConditions() > 1) { if (countConditions() > 1) {


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

@@ -77,7 +77,7 @@ import java.util.Vector;
* @author Glenn McAllister <a href="mailto:glennm@ca.ibm.com">glennm@ca.ibm.com</a> * @author Glenn McAllister <a href="mailto:glennm@ca.ibm.com">glennm@ca.ibm.com</a>
* @author Jon S. Stevens <a href="mailto:jon@latchkey.com">jon@latchkey.com</a> * @author Jon S. Stevens <a href="mailto:jon@latchkey.com">jon@latchkey.com</a>
* *
* @since 1.2
* @since Ant 1.2
* *
* @ant.task category="filesystem" * @ant.task category="filesystem"
*/ */


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

@@ -394,7 +394,7 @@ public class Execute {
* @param the working directory for the command * @param the working directory for the command
* @param useVM use the built-in exec command for JDK 1.3 if available. * @param useVM use the built-in exec command for JDK 1.3 if available.
* *
* @since 1.35, Ant 1.5
* @since Ant 1.5
*/ */
public static Process launch(Project project, String[] command, public static Process launch(Project project, String[] command,
String[] env, File dir, boolean useVM) String[] env, File dir, boolean useVM)
@@ -475,7 +475,7 @@ public class Execute {
/** /**
* test for an untimely death of the process * test for an untimely death of the process
* @return true iff a watchdog had to kill the process * @return true iff a watchdog had to kill the process
* @since 1.5
* @since Ant 1.5
*/ */
public boolean killedProcess() { public boolean killedProcess() {
return watchdog != null && watchdog.killedProcess(); return watchdog != null && watchdog.killedProcess();


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

@@ -80,7 +80,7 @@ import java.util.Enumeration;
* @author James Davidson <a href="mailto:duncan@x180.com">duncan@x180.com</a> * @author James Davidson <a href="mailto:duncan@x180.com">duncan@x180.com</a>
* @author Brian Deitte <a href="mailto:bdeitte@macromedia.com">bdeitte@macromedia.com</a> * @author Brian Deitte <a href="mailto:bdeitte@macromedia.com">bdeitte@macromedia.com</a>
* *
* @since 1.1
* @since Ant 1.1
* *
* @ant.task category="packaging" * @ant.task category="packaging"
*/ */


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

@@ -64,7 +64,7 @@ import org.apache.tools.ant.Task;
* *
* @author <a href="mailto:umagesh@apache.org">Magesh Umasankar</a> * @author <a href="mailto:umagesh@apache.org">Magesh Umasankar</a>
* *
* @since 1.5
* @since Ant 1.5
*/ */


public abstract class Unpack extends Task { public abstract class Unpack extends Task {


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

@@ -141,7 +141,7 @@ public class Zip extends MatchingTask {
/** /**
* This is the name/location of where to * This is the name/location of where to
* create the .zip file. * create the .zip file.
* @since 1.5alpha
* @since Ant 1.5alpha
* @deprecated Use setDestFile(File) instead * @deprecated Use setDestFile(File) instead
*/ */
public void setFile(File file) { public void setFile(File file) {
@@ -151,7 +151,7 @@ public class Zip extends MatchingTask {


/** /**
* Sets the destfile attribute. * Sets the destfile attribute.
* @since 1.5
* @since Ant 1.5
* @param destFile The new destination File * @param destFile The new destination File
*/ */
public void setDestFile(File destFile) { public void setDestFile(File destFile) {


+ 20
- 20
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -331,7 +331,7 @@ public class JUnitTask extends Task {
* declaring the test as 'timed-out' * declaring the test as 'timed-out'
* @see #setFork(boolean) * @see #setFork(boolean)
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void setTimeout(Integer value) { public void setTimeout(Integer value) {
timeout = value; timeout = value;
@@ -342,7 +342,7 @@ public class JUnitTask extends Task {
* @param max the value as defined by <tt>-mx</tt> or <tt>-Xmx</tt> * @param max the value as defined by <tt>-mx</tt> or <tt>-Xmx</tt>
* in the java command line options. * in the java command line options.
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void setMaxmemory(String max) { public void setMaxmemory(String max) {
commandline.setMaxmemory(max); commandline.setMaxmemory(max);
@@ -354,7 +354,7 @@ public class JUnitTask extends Task {
* @param value the new VM to use instead of <tt>java</tt> * @param value the new VM to use instead of <tt>java</tt>
* @see #setFork(boolean) * @see #setFork(boolean)
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void setJvm(String value) { public void setJvm(String value) {
commandline.setVm(value); commandline.setVm(value);
@@ -366,7 +366,7 @@ public class JUnitTask extends Task {
* passed to the JVM. * passed to the JVM.
* @see #setFork(boolean) * @see #setFork(boolean)
* *
* @since 1.2
* @since Ant 1.2
*/ */
public Commandline.Argument createJvmarg() { public Commandline.Argument createJvmarg() {
return commandline.createVmArgument(); return commandline.createVmArgument();
@@ -377,7 +377,7 @@ public class JUnitTask extends Task {
* @param dir the directory to invoke the JVM from. * @param dir the directory to invoke the JVM from.
* @see #setFork(boolean) * @see #setFork(boolean)
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void setDir(File dir) { public void setDir(File dir) {
this.dir = dir; this.dir = dir;
@@ -387,7 +387,7 @@ public class JUnitTask extends Task {
* Add a nested sysproperty element. This might be useful to tranfer * Add a nested sysproperty element. This might be useful to tranfer
* Ant properties to the testcases when JVM forking is not enabled. * Ant properties to the testcases when JVM forking is not enabled.
* *
* @since 1.3
* @since Ant 1.3
*/ */
public void addSysproperty(Environment.Variable sysp) { public void addSysproperty(Environment.Variable sysp) {
commandline.addSysproperty(sysp); commandline.addSysproperty(sysp);
@@ -396,7 +396,7 @@ public class JUnitTask extends Task {
/** /**
* <code>&lt;classpath&gt;</code> allows classpath to be set for tests. * <code>&lt;classpath&gt;</code> allows classpath to be set for tests.
* *
* @since 1.2
* @since Ant 1.2
*/ */
public Path createClasspath() { public Path createClasspath() {
return commandline.createClasspath(project).createPath(); return commandline.createClasspath(project).createPath();
@@ -429,7 +429,7 @@ public class JUnitTask extends Task {
* @param test a new single testcase * @param test a new single testcase
* @see JUnitTest * @see JUnitTest
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void addTest(JUnitTest test) { public void addTest(JUnitTest test) {
tests.addElement(test); tests.addElement(test);
@@ -441,7 +441,7 @@ public class JUnitTask extends Task {
* @return a new instance of a batch test. * @return a new instance of a batch test.
* @see BatchTest * @see BatchTest
* *
* @since 1.2
* @since Ant 1.2
*/ */
public BatchTest createBatchTest() { public BatchTest createBatchTest() {
BatchTest test = new BatchTest(project); BatchTest test = new BatchTest(project);
@@ -452,7 +452,7 @@ public class JUnitTask extends Task {
/** /**
* Add a new formatter to all tests of this task. * Add a new formatter to all tests of this task.
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void addFormatter(FormatterElement fe) { public void addFormatter(FormatterElement fe) {
formatters.addElement(fe); formatters.addElement(fe);
@@ -470,7 +470,7 @@ public class JUnitTask extends Task {
/** /**
* Creates a new JUnitRunner and enables fork of a new Java VM. * Creates a new JUnitRunner and enables fork of a new Java VM.
* *
* @since 1.2
* @since Ant 1.2
*/ */
public JUnitTask() throws Exception { public JUnitTask() throws Exception {
commandline commandline
@@ -482,7 +482,7 @@ public class JUnitTask extends Task {
* JUnit to the classpath - this should make the forked JVM work * JUnit to the classpath - this should make the forked JVM work
* without having to specify them directly. * without having to specify them directly.
* *
* @since 1.4
* @since Ant 1.4
*/ */
public void init() { public void init() {
antRuntimeClasses = new Path(getProject()); antRuntimeClasses = new Path(getProject());
@@ -494,7 +494,7 @@ public class JUnitTask extends Task {
/** /**
* Runs the testcase. * Runs the testcase.
* *
* @since 1.2
* @since Ant 1.2
*/ */
public void execute() throws BuildException { public void execute() throws BuildException {
Enumeration list = getIndividualTests(); Enumeration list = getIndividualTests();
@@ -781,7 +781,7 @@ public class JUnitTask extends Task {
* @return <tt>null</tt> if there is a timeout value, otherwise the * @return <tt>null</tt> if there is a timeout value, otherwise the
* watchdog instance. * watchdog instance.
* *
* @since 1.2
* @since Ant 1.2
*/ */
protected ExecuteWatchdog createWatchdog() throws BuildException { protected ExecuteWatchdog createWatchdog() throws BuildException {
if (timeout == null){ if (timeout == null){
@@ -793,7 +793,7 @@ public class JUnitTask extends Task {
/** /**
* Get the default output for a formatter. * Get the default output for a formatter.
* *
* @since 1.3
* @since Ant 1.3
*/ */
protected OutputStream getDefaultOutput(){ protected OutputStream getDefaultOutput(){
return new LogOutputStream(this, Project.MSG_INFO); return new LogOutputStream(this, Project.MSG_INFO);
@@ -803,7 +803,7 @@ public class JUnitTask extends Task {
* Merge all individual tests from the batchtest with all individual tests * Merge all individual tests from the batchtest with all individual tests
* and return an enumeration over all <tt>JUnitTest</tt>. * and return an enumeration over all <tt>JUnitTest</tt>.
* *
* @since 1.3
* @since Ant 1.3
*/ */
protected Enumeration getIndividualTests(){ protected Enumeration getIndividualTests(){
final int count = batchTests.size(); final int count = batchTests.size();
@@ -817,7 +817,7 @@ public class JUnitTask extends Task {
} }


/** /**
* @since 1.3
* @since Ant 1.3
*/ */
protected Enumeration allTests() { protected Enumeration allTests() {
Enumeration[] enums = { tests.elements(), batchTests.elements() }; Enumeration[] enums = { tests.elements(), batchTests.elements() };
@@ -825,7 +825,7 @@ public class JUnitTask extends Task {
} }


/** /**
* @since 1.3
* @since Ant 1.3
*/ */
private FormatterElement[] mergeFormatters(JUnitTest test){ private FormatterElement[] mergeFormatters(JUnitTest test){
Vector feVector = (Vector)formatters.clone(); Vector feVector = (Vector)formatters.clone();
@@ -839,7 +839,7 @@ public class JUnitTask extends Task {
* If the formatter sends output to a file, return that file. * If the formatter sends output to a file, return that file.
* null otherwise. * null otherwise.
* *
* @since 1.3
* @since Ant 1.3
*/ */
protected File getOutput(FormatterElement fe, JUnitTest test){ protected File getOutput(FormatterElement fe, JUnitTest test){
if (fe.getUseFile()) { if (fe.getUseFile()) {
@@ -858,7 +858,7 @@ public class JUnitTask extends Task {
* <p>Doesn't work for archives in JDK 1.1 as the URL returned by * <p>Doesn't work for archives in JDK 1.1 as the URL returned by
* getResource doesn't contain the name of the archive.</p> * getResource doesn't contain the name of the archive.</p>
* *
* @since 1.4
* @since Ant 1.4
*/ */
protected void addClasspathEntry(String resource) { protected void addClasspathEntry(String resource) {
URL url = getClass().getResource(resource); URL url = getClass().getResource(resource);


Loading…
Cancel
Save