element rather "
+ "than using a \"Name\" manifest attribute");
}
}
@@ -691,7 +694,6 @@ public class Manifest extends Task {
/**
* Construct a manifest from Ant's default manifest file.
*
- *
* @return the default manifest.
* @exception BuildException if there is a problem loading the
* default manifest
@@ -1031,7 +1033,7 @@ public class Manifest extends Task {
/**
* Create or update the Manifest when used as a task.
*
- * @throws BuildException if the manifst cannot be written.
+ * @throws BuildException if the manifest cannot be written.
*/
public void execute() throws BuildException {
if (manifestFile == null) {
@@ -1049,10 +1051,10 @@ public class Manifest extends Task {
current = new Manifest(f);
} catch (ManifestException m) {
error = new BuildException("Existing manifest " + manifestFile
- + " is invalid", m, location);
+ + " is invalid", m, location);
} catch (IOException e) {
error = new BuildException("Failed to read " + manifestFile,
- e, location);
+ e, location);
} finally {
if (f != null) {
try {
@@ -1078,7 +1080,8 @@ public class Manifest extends Task {
}
if (toWrite.equals(current)) {
- log("Manifest has not changed, do not recreate", project.MSG_VERBOSE);
+ log("Manifest has not changed, do not recreate",
+ Project.MSG_VERBOSE);
return;
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/ManifestException.java b/src/main/org/apache/tools/ant/taskdefs/ManifestException.java
index dd8ae6fe8..1398a56b8 100644
--- a/src/main/org/apache/tools/ant/taskdefs/ManifestException.java
+++ b/src/main/org/apache/tools/ant/taskdefs/ManifestException.java
@@ -53,13 +53,11 @@
*/
package org.apache.tools.ant.taskdefs;
-
-
-
/**
* Exception thrown indicating problems in a JAR Manifest
*
* @author Conor MacNeill
+ * @since Ant 1.4
*/
public class ManifestException extends Exception {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Mkdir.java b/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
index db53da15a..accc4a0e1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
@@ -62,6 +62,7 @@ import java.io.File;
* Creates a given directory.
*
* @author duncan@x180.com
+ * @since Ant 1.1
*
* @ant.task category="filesystem"
*/
@@ -76,14 +77,16 @@ public class Mkdir extends Task {
}
if (dir.isFile()) {
- throw new BuildException("Unable to create directory as a file already exists with that name: " + dir.getAbsolutePath());
+ throw new BuildException("Unable to create directory as a file "
+ + "already exists with that name: "
+ + dir.getAbsolutePath());
}
if (!dir.exists()) {
boolean result = dir.mkdirs();
if (!result) {
- String msg = "Directory " + dir.getAbsolutePath() + " creation was not " +
- "successful for an unknown reason";
+ String msg = "Directory " + dir.getAbsolutePath()
+ + " creation was not successful for an unknown reason";
throw new BuildException(msg, location);
}
log("Created dir: " + dir.getAbsolutePath());
diff --git a/src/main/org/apache/tools/ant/taskdefs/Parallel.java b/src/main/org/apache/tools/ant/taskdefs/Parallel.java
index 4fd8c00f7..e7baca1f7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Parallel.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Parallel.java
@@ -57,6 +57,7 @@ import org.apache.tools.ant.Task;
import org.apache.tools.ant.TaskContainer;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Location;
+import org.apache.tools.ant.util.StringUtils;
import java.util.Vector;
import java.util.Enumeration;
@@ -68,6 +69,7 @@ import java.util.Enumeration;
*
* @author Thomas Christen chr@active.ch
* @author Conor MacNeill
+ * @since Ant 1.4
*
* @ant.task category="control"
*/
@@ -95,7 +97,8 @@ public class Parallel extends Task
public void execute() throws BuildException {
TaskThread[] threads = new TaskThread[nestedTasks.size()];
int threadNumber = 0;
- for (Enumeration e = nestedTasks.elements(); e.hasMoreElements(); threadNumber++) {
+ for (Enumeration e = nestedTasks.elements(); e.hasMoreElements();
+ threadNumber++) {
Task nestedTask = (Task)e.nextElement();
threads[threadNumber] = new TaskThread(threadNumber, nestedTask);
}
@@ -117,7 +120,6 @@ public class Parallel extends Task
// now did any of the threads throw an exception
StringBuffer exceptionMessage = new StringBuffer();
- String lSep = System.getProperty("line.separator");
int numExceptions = 0;
Throwable firstException = null;
Location firstLocation = Location.UNKNOWN_LOCATION;;
@@ -132,7 +134,7 @@ public class Parallel extends Task
firstLocation == Location.UNKNOWN_LOCATION) {
firstLocation = ((BuildException)t).getLocation();
}
- exceptionMessage.append(lSep);
+ exceptionMessage.append(StringUtils.LINE_SEP);
exceptionMessage.append(t.getMessage());
}
}
@@ -146,7 +148,8 @@ public class Parallel extends Task
}
}
else if (numExceptions > 1) {
- throw new BuildException(exceptionMessage.toString(), firstLocation);
+ throw new BuildException(exceptionMessage.toString(),
+ firstLocation);
}
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/Patch.java b/src/main/org/apache/tools/ant/taskdefs/Patch.java
index 6b6c0b4fd..02e0e1ecf 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Patch.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Patch.java
@@ -66,6 +66,8 @@ import java.io.IOException;
*
* @author Stefan Bodewig
*
+ * @since Ant 1.1
+ *
* @ant.task category="utility"
*/
public class Patch extends Task {
diff --git a/src/main/org/apache/tools/ant/taskdefs/PathConvert.java b/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
index 7346e9e2b..56eca7271 100644
--- a/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
+++ b/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
@@ -70,35 +70,39 @@ import java.util.Vector;
import java.io.File;
/**
- * This task converts path and classpath information to a specific target OS format.
- * The resulting formatted path is placed into a specified property.
- *
- * LIMITATION: Currently this implementation groups all machines into one of two
- * types: Unix or Windows. Unix is defined as NOT windows.
+ * This task converts path and classpath information to a specific
+ * target OS format. The resulting formatted path is placed into a
+ * specified property.
*
* @author Larry Streepy streepy@healthlanguage.com
*
+ * @since Ant 1.4
+ *
* @ant.task category="utility"
*/
public class PathConvert extends Task {
+ public PathConvert() {
+ onWindows = Os.isFamily("dos");
+ }
+
/**
- * Helper class, holds the nested