diff --git a/src/main/org/apache/tools/ant/AntClassLoader.java b/src/main/org/apache/tools/ant/AntClassLoader.java index 4375445c4..482c0f20a 100644 --- a/src/main/org/apache/tools/ant/AntClassLoader.java +++ b/src/main/org/apache/tools/ant/AntClassLoader.java @@ -849,7 +849,7 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener, Clo } /** - * Used for isolated resource seaching. + * Used for isolated resource searching. * @return the root classloader of AntClassLoader. */ private ClassLoader getRootLoader() { diff --git a/src/main/org/apache/tools/ant/DemuxInputStream.java b/src/main/org/apache/tools/ant/DemuxInputStream.java index e8c2164ec..7395f240b 100644 --- a/src/main/org/apache/tools/ant/DemuxInputStream.java +++ b/src/main/org/apache/tools/ant/DemuxInputStream.java @@ -23,7 +23,7 @@ import java.io.InputStream; /** * - * Passes input requests to the project object for demuxing into + * Passes input requests to the project object for demultiplexing into * individual tasks and threads. * * @since Ant 1.6 @@ -46,7 +46,7 @@ public class DemuxInputStream extends InputStream { } /** - * Read a byte from the project's demuxed input. + * Read a byte from the project's demultiplexed input. * @return the next byte * @throws IOException on error */ @@ -61,7 +61,7 @@ public class DemuxInputStream extends InputStream { /** - * Read bytes from the project's demuxed input. + * Read bytes from the project's demultiplexed input. * @param buffer an array of bytes to read into * @param offset the offset in the array of bytes * @param length the number of bytes in the array diff --git a/src/main/org/apache/tools/ant/IntrospectionHelper.java b/src/main/org/apache/tools/ant/IntrospectionHelper.java index b922def5b..8a5d0faac 100644 --- a/src/main/org/apache/tools/ant/IntrospectionHelper.java +++ b/src/main/org/apache/tools/ant/IntrospectionHelper.java @@ -81,7 +81,7 @@ public final class IntrospectionHelper { final Class>[] wrappers = {Boolean.class, Byte.class, Character.class, Short.class, Integer.class, Long.class, Float.class, Double.class}; for (int i = 0; i < primitives.length; i++) { - PRIMITIVE_TYPE_MAP.put (primitives[i], wrappers[i]); + PRIMITIVE_TYPE_MAP.put(primitives[i], wrappers[i]); } } @@ -536,15 +536,11 @@ public final class IntrospectionHelper { if (nc == null) { nc = createAddTypeCreator(project, parent, elementName); } - if (nc == null && - (parent instanceof DynamicElementNS - || parent instanceof DynamicElement) - ) { + if (nc == null + && (parent instanceof DynamicElementNS || parent instanceof DynamicElement)) { final String qName = child == null ? name : child.getQName(); - final Object nestedElement = - createDynamicElement(parent, - child == null ? "" : child.getNamespace(), - name, qName); + final Object nestedElement = createDynamicElement(parent, + child == null ? "" : child.getNamespace(), name, qName); if (nestedElement != null) { nc = new NestedCreator(null) { @Override diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java index ce31edee3..32b7f11b3 100644 --- a/src/main/org/apache/tools/ant/UnknownElement.java +++ b/src/main/org/apache/tools/ant/UnknownElement.java @@ -596,7 +596,7 @@ public class UnknownElement extends Task { /** * like contents equals, but ignores project * @param obj the object to check against - * @return true if this unknownelement has the same contents the other + * @return true if this UnknownElement has the same contents the other */ public boolean similar(Object obj) { if (obj == null) { diff --git a/src/main/org/apache/tools/ant/helper/ProjectHelper2.java b/src/main/org/apache/tools/ant/helper/ProjectHelper2.java index 3ea51a15d..25c687308 100644 --- a/src/main/org/apache/tools/ant/helper/ProjectHelper2.java +++ b/src/main/org/apache/tools/ant/helper/ProjectHelper2.java @@ -209,13 +209,11 @@ public class ProjectHelper2 extends ProjectHelper { } else if (source instanceof URL) { url = (URL) source; } else if (source instanceof Resource) { - FileProvider fp = - ((Resource) source).as(FileProvider.class); + FileProvider fp = ((Resource) source).as(FileProvider.class); if (fp != null) { buildFile = fp.getFile(); } else { - URLProvider up = - ((Resource) source).as(URLProvider.class); + URLProvider up = ((Resource) source).as(URLProvider.class); if (up != null) { url = up.getURL(); } @@ -766,7 +764,7 @@ public class ProjectHelper2 extends ProjectHelper { } break; default: - // TODO ignore attributes in a different NS ( maybe store them ? ) + // TODO ignore attributes in a different NS (maybe store them ?) throw new SAXParseException("Unexpected attribute \"" + attrs.getQName(i) + "\"", context.getLocator()); } diff --git a/src/main/org/apache/tools/ant/property/ResolvePropertyMap.java b/src/main/org/apache/tools/ant/property/ResolvePropertyMap.java index 1554ec305..e666e5774 100644 --- a/src/main/org/apache/tools/ant/property/ResolvePropertyMap.java +++ b/src/main/org/apache/tools/ant/property/ResolvePropertyMap.java @@ -91,7 +91,7 @@ public class ResolvePropertyMap implements GetProperty { String recursiveCallKey = name; if (prefix != null && !expandingLHS && !prefixValues) { - // only look up unprefixed properties inside the map + // only look up nonprefixed properties inside the map // if prefixValues is true or we are expanding the key // itself recursiveCallKey = prefix + name; diff --git a/src/main/org/apache/tools/ant/taskdefs/Ant.java b/src/main/org/apache/tools/ant/taskdefs/Ant.java index 7b89907f0..ca3251995 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Ant.java +++ b/src/main/org/apache/tools/ant/taskdefs/Ant.java @@ -467,8 +467,8 @@ public class Ant extends Task { /** * Get the default build file name to use when launching the task. *
- * This function may be overriden by providers of custom ProjectHelper so they can implement easily their sub
- * launcher.
+ * This function may be overridden by providers of custom ProjectHelper so they can easily
+ * implement their sublauncher.
*
* @return the name of the default file
* @since Ant 1.8.0
diff --git a/src/main/org/apache/tools/ant/taskdefs/Checksum.java b/src/main/org/apache/tools/ant/taskdefs/Checksum.java
index 96327233e..fdadba419 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Checksum.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Checksum.java
@@ -154,7 +154,7 @@ public class Checksum extends MatchingTask implements Condition {
private int readBufferSize = BUFFER_SIZE;
/**
- * Formater for the checksum file.
+ * Formatter for the checksum file.
*/
private MessageFormat format = FormatElement.getDefault().getFormat();
diff --git a/src/main/org/apache/tools/ant/taskdefs/Chmod.java b/src/main/org/apache/tools/ant/taskdefs/Chmod.java
index f97d4ee69..c9db7b9b5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Chmod.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Chmod.java
@@ -190,7 +190,7 @@ public class Chmod extends ExecuteOn {
}
}
} else if (isValidOs()) {
- // we are chmodding the given directory
+ // we are chmoding the given directory
Execute execute = prepareExec();
Commandline cloned = (Commandline) cmdl.clone();
cloned.createArgument().setValue(defaultSet.getDir(getProject())
diff --git a/src/main/org/apache/tools/ant/taskdefs/Concat.java b/src/main/org/apache/tools/ant/taskdefs/Concat.java
index b58928d4e..ca4fe9153 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Concat.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Concat.java
@@ -214,7 +214,7 @@ public class Concat extends Task implements ResourceCollection {
/**
* This class reads from each of the source files in turn.
- * The concatentated result can then be filtered as
+ * The concatenated result can then be filtered as
* a single stream.
*/
private final class MultiReader
* @param nestedTask Nested task to be executed in parallel.
* must not be null.
@@ -96,7 +96,7 @@ public class Parallel extends Task
*/
private boolean failOnAny;
- /** The dameon task list if any */
+ /** The daemon task list if any */
private TaskList daemonTasks;
/** Accumulation of exceptions messages from all nested tasks */
@@ -215,8 +215,8 @@ public class Parallel extends Task
*/
private void updateThreadCounts() {
if (numThreadsPerProcessor != 0) {
- numThreads = Runtime.getRuntime().availableProcessors() *
- numThreadsPerProcessor;
+ numThreads = Runtime.getRuntime().availableProcessors()
+ * numThreadsPerProcessor;
}
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/Redirector.java b/src/main/org/apache/tools/ant/taskdefs/Redirector.java
index 036a1bf2c..50183d6f5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Redirector.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Redirector.java
@@ -707,8 +707,8 @@ public class Redirector {
/** outStreams */
private void outStreams() {
if (out != null && out.length > 0) {
- final String logHead = "Output " +
- ((appendOut) ? "appended" : "redirected") + " to ";
+ final String logHead = "Output "
+ + ((appendOut) ? "appended" : "redirected") + " to ";
outputStream = foldFiles(out, logHead, Project.MSG_VERBOSE,
appendOut, createEmptyFilesOut);
}
@@ -729,8 +729,8 @@ public class Redirector {
private void errorStreams() {
if (error != null && error.length > 0) {
- final String logHead = "Error " +
- ((appendErr) ? "appended" : "redirected") + " to ";
+ final String logHead = "Error "
+ + ((appendErr) ? "appended" : "redirected") + " to ";
errorStream = foldFiles(error, logHead, Project.MSG_VERBOSE,
appendErr, createEmptyFilesErr);
} else if (!(logError || outputStream == null) && errorProperty == null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Rmic.java b/src/main/org/apache/tools/ant/taskdefs/Rmic.java
index fdfd81bf8..55cb8bce9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Rmic.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Rmic.java
@@ -613,9 +613,8 @@ public class Rmic extends MatchingTask {
if (verify) {
log("Verify has been turned on.", Project.MSG_VERBOSE);
}
- RmicAdapter adapter =
- nestedAdapter != null ? nestedAdapter :
- RmicAdapterFactory.getRmic(getCompiler(), this,
+ RmicAdapter adapter = nestedAdapter != null ? nestedAdapter
+ : RmicAdapterFactory.getRmic(getCompiler(), this,
createCompilerClasspath());
// now we need to populate the compiler adapter
@@ -727,8 +726,7 @@ public class Rmic extends MatchingTask {
try {
if (filtering) {
FILE_UTILS.copyFile(oldFile, newFile,
- new FilterSetCollection(getProject()
- .getGlobalFilterSet()));
+ new FilterSetCollection(getProject().getGlobalFilterSet()));
} else {
FILE_UTILS.copyFile(oldFile, newFile);
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/SubAnt.java b/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
index 3213d25f1..1b59581bb 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
@@ -82,7 +82,7 @@ public class SubAnt extends Task {
/**
* Get the default build file name to use when launching the task.
*
- * This function may be overriden by providers of custom ProjectHelper so
+ * This function may be overridden by providers of custom ProjectHelper so
* they can implement easily their sub launcher.
* extends Reader {
@@ -623,7 +623,7 @@ public class Concat extends Task implements ResourceCollection {
* Sets the behavior when no source resource files are available. If set to
* false
the destination file will always be created.
* Defaults to true
.
- * @param ignoreEmpty if false honour destinationfile creation.
+ * @param ignoreEmpty if false, honour destination file creation.
* @since Ant 1.8.0
*/
public void setIgnoreEmpty(boolean ignoreEmpty) {
@@ -698,7 +698,7 @@ public class Concat extends Task implements ResourceCollection {
/**
* This method adds text which appears in the 'concat' element.
- * @param text the text to be concated.
+ * @param text the text to be concatenated.
*/
public void addText(String text) {
if (textBuffer == null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Deltree.java b/src/main/org/apache/tools/ant/taskdefs/Deltree.java
index 4d20e0171..ec967d0e1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Deltree.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Deltree.java
@@ -81,18 +81,16 @@ public class Deltree extends Task {
// the comparison of absolute path and canonical path
// catches this
- // if (dir.getCanonicalPath().equals(dir.getAbsolutePath())) {
+ // if (dir.getCanonicalPath().equals(dir.getAbsolutePath())) {
// (costin) It will not work if /home/costin is symlink to
- // /da0/home/costin ( taz for example )
+ // /da0/home/costin (taz for example)
for (String s : dir.list()) {
File f = new File(dir, s);
if (f.isDirectory()) {
removeDir(f);
- } else {
- if (!f.delete()) {
- throw new BuildException("Unable to delete file "
- + f.getAbsolutePath());
- }
+ } else if (!f.delete()) {
+ throw new BuildException("Unable to delete file "
+ + f.getAbsolutePath());
}
}
if (!dir.delete()) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/DependSet.java b/src/main/org/apache/tools/ant/taskdefs/DependSet.java
index b02651034..6fb946337 100644
--- a/src/main/org/apache/tools/ant/taskdefs/DependSet.java
+++ b/src/main/org/apache/tools/ant/taskdefs/DependSet.java
@@ -225,7 +225,7 @@ public class DependSet extends MatchingTask {
datesel.setMillis(System.currentTimeMillis());
datesel.setWhen(TimeComparison.AFTER);
// don't whine because a file has changed during the last
- // second (or whathever our current granularity may be)
+ // second (or whatever our current granularity may be)
datesel.setGranularity(0);
logFuture(targets, datesel);
diff --git a/src/main/org/apache/tools/ant/taskdefs/Get.java b/src/main/org/apache/tools/ant/taskdefs/Get.java
index 077f7eb4d..b44a0118f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Get.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Get.java
@@ -93,7 +93,7 @@ public class Get extends Task {
DEFAULT_AGENT_PREFIX + "/"
+ Main.getShortAntVersion());
- // Store headers as key/value pair without duplicate in keyz
+ // Store headers as key/value pair without duplicate in keys
private Map
* The old CMP scheme locates the
- * weblogic CMP descriptor based on the naming convention where the
- * weblogic CMP file is expected to be named with the bean name as the
+ * WebLogic CMP descriptor based on the naming convention where the
+ * WebLogic CMP file is expected to be named with the bean name as the
* prefix. Under this scheme the name of the CMP descriptor does not match
- * the name actually used in the main weblogic EJB descriptor. Also,
+ * the name actually used in the main WebLogic EJB descriptor. Also,
* descriptors which contain multiple CMP references could not be used.
* @param newCMP a boolean
value.
*/
@@ -394,7 +394,7 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
}
/**
- * Get the weblogic descriptor handler.
+ * Get the WebLogic descriptor handler.
* @param srcDir the source directory.
* @return the descriptor.
*/
@@ -452,14 +452,14 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
log("The old method for locating CMP files has been DEPRECATED.", Project.MSG_VERBOSE);
log("Please adjust your weblogic descriptor and set newCMP=\"true\" to use the new CMP descriptor inclusion mechanism. ",
Project.MSG_VERBOSE);
- // The the weblogic cmp deployment descriptor
+ // The the WebLogic CMP deployment descriptor
File weblogicCMPDD = new File(getConfig().descriptorDir, ddPrefix + WL_CMP_DD);
if (weblogicCMPDD.exists()) {
ejbFiles.put(META_DIR + WL_CMP_DD, weblogicCMPDD);
}
} else {
- // now that we have the weblogic descriptor, we parse the file
+ // now that we have the WebLogic descriptor, we parse the file
// to find other descriptors needed to deploy the bean.
// this could be the weblogic-cmp-rdbms.xml or any other O/R
// mapping tool descriptors.
@@ -641,27 +641,27 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
}
/**
- * Helper method to check to see if a weblogic EBJ1.1 jar needs to be
+ * Helper method to check to see if a WebLogic EJB 1.1 jar needs to be
* rebuilt using ejbc. Called from writeJar it sees if the "Bean" classes
* are the only thing that needs to be updated and either updates the Jar
- * with the Bean classfile or returns true, saying that the whole weblogic
- * jar needs to be regened with ejbc. This allows faster build times for
+ * with the Bean classfile or returns true, saying that the whole WebLogic
+ * jar needs to be regenerated with ejbc. This allows faster build times for
* working developers.
*
- * The way weblogic ejbc works is it creates wrappers for the publicly
+ * The way WebLogic ejbc works is it creates wrappers for the publicly
* defined methods as they are exposed in the remote interface. If the
* actual bean changes without changing the the method signatures then
* only the bean classfile needs to be updated and the rest of the
- * weblogic jar file can remain the same. If the Interfaces, ie. the
+ * WebLogic jar file can remain the same. If the Interfaces, ie. the
* method signatures change or if the xml deployment descriptors changed,
* the whole jar needs to be rebuilt with ejbc. This is not strictly true
* for the xml files. If the JNDI name changes then the jar doesn't have to
* be rebuild, but if the resources references change then it does. At
- * this point the weblogic jar gets rebuilt if the xml files change at
+ * this point the WebLogic jar gets rebuilt if the xml files change at
* all.
*
* @param genericJarFile java.io.File The generic jar file.
- * @param weblogicJarFile java.io.File The weblogic jar file to check to
+ * @param weblogicJarFile java.io.File The WebLogic jar file to check to
* see if it needs to be rebuilt.
* @return true if the jar needs to be rebuilt.
*/
@@ -678,7 +678,7 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
try {
log("Checking if weblogic Jar needs to be rebuilt for jar " + weblogicJarFile.getName(),
Project.MSG_VERBOSE);
- // Only go forward if the generic and the weblogic file both exist
+ // Only go forward if the generic and the WebLogic file both exist
if (genericJarFile.exists() && genericJarFile.isFile()
&& weblogicJarFile.exists() && weblogicJarFile.isFile()) {
//open jar files
@@ -694,13 +694,13 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
JarEntry je = e.nextElement();
genericEntries.put(je.getName().replace('\\', '/'), je);
}
- //get the list of weblogic jar entries
+ // get the list of WebLogic jar entries
for (Enumeration
*
- * The way websphere ejbdeploy works is it creates wrappers for the
+ * The way WebSphere ejbdeploy works is it creates wrappers for the
* publicly defined methods as they are exposed in the remote interface.
* If the actual bean changes without changing the the method signatures
* then only the bean classfile needs to be updated and the rest of the
- * websphere jar file can remain the same. If the Interfaces, ie. the
+ * WebSphere jar file can remain the same. If the Interfaces, ie. the
* method signatures change or if the xml deployment descriptors changed,
* the whole jar needs to be rebuilt with ejbdeploy. This is not strictly
* true for the xml files. If the JNDI name changes then the jar doesn't
* have to be rebuild, but if the resources references change then it
- * does. At this point the websphere jar gets rebuilt if the xml files
+ * does. At this point the WebSphere jar gets rebuilt if the xml files
* change at all.
*
* @param genericJarFile java.io.File The generic jar file.
- * @param websphereJarFile java.io.File The websphere jar file to check to
+ * @param websphereJarFile java.io.File The WebSphere jar file to check to
* see if it needs to be rebuilt.
* @return true if a rebuild is required.
*/
@@ -662,7 +662,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
try {
log("Checking if websphere Jar needs to be rebuilt for jar "
+ websphereJarFile.getName(), Project.MSG_VERBOSE);
- // Only go forward if the generic and the websphere file both exist
+ // Only go forward if the generic and the WebSphere file both exist
if (genericJarFile.exists() && genericJarFile.isFile()
&& websphereJarFile.exists() && websphereJarFile.isFile()) {
//open jar files
@@ -678,13 +678,13 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
JarEntry je = e.nextElement();
genericEntries.put(je.getName().replace('\\', '/'), je);
}
- //get the list of websphere jar entries
+ // get the list of WebSphere jar entries
for (Enumeration Which results in a new text "ss romooCCmmpnse", in adition the
+ * Which results in a new text "ss romooCCmmpnse", in addition the
* index of the first line that contained the original text is kept -
* in this case it is 1. The idea is that in a long English text all
* permutations that start with "he" are likely suffixes of a "the" and
diff --git a/src/main/org/apache/tools/mail/MailMessage.java b/src/main/org/apache/tools/mail/MailMessage.java
index a863f38c4..dad50a9fa 100644
--- a/src/main/org/apache/tools/mail/MailMessage.java
+++ b/src/main/org/apache/tools/mail/MailMessage.java
@@ -255,7 +255,7 @@ public class MailMessage {
/**
* Sets the named header to the given value. RFC 822 provides the rules for
- * what text may constitute a header name and value.
+ * what text may constitue a header name and value.
* @param name name of the header
* @param value contents of the header
*/
diff --git a/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
index a399fb2a9..f75c2d80c 100644
--- a/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
+++ b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
@@ -26,19 +26,19 @@ import java.util.Collections;
import java.util.List;
/**
- * This ZipEncoding implementation implements a simple 8bit character
- * set, which mets the following restrictions:
+ * This ZipEncoding implementation implements a simple 8 bit character
+ * set, which meets the following restrictions:
*
* These restrictions most notably apply to the most prominent
- * omissions of java-1.4's {@link java.nio.charset.Charset Charset}
+ * omissions of Java 1.4 {@link java.nio.charset.Charset Charset}
* implementation, Cp437 and Cp850. The methods of this class are reentrant.
*
*
diff --git a/src/main/org/apache/tools/ant/types/AbstractFileSet.java b/src/main/org/apache/tools/ant/types/AbstractFileSet.java
index 4d34acc28..9a585bb3c 100644
--- a/src/main/org/apache/tools/ant/types/AbstractFileSet.java
+++ b/src/main/org/apache/tools/ant/types/AbstractFileSet.java
@@ -37,8 +37,8 @@ import org.apache.tools.ant.types.selectors.DateSelector;
import org.apache.tools.ant.types.selectors.DependSelector;
import org.apache.tools.ant.types.selectors.DepthSelector;
import org.apache.tools.ant.types.selectors.DifferentSelector;
-import org.apache.tools.ant.types.selectors.ExtendSelector;
import org.apache.tools.ant.types.selectors.ExecutableSelector;
+import org.apache.tools.ant.types.selectors.ExtendSelector;
import org.apache.tools.ant.types.selectors.FileSelector;
import org.apache.tools.ant.types.selectors.FilenameSelector;
import org.apache.tools.ant.types.selectors.MajoritySelector;
diff --git a/src/main/org/apache/tools/ant/types/ArchiveScanner.java b/src/main/org/apache/tools/ant/types/ArchiveScanner.java
index f563d4cbe..8593bd374 100644
--- a/src/main/org/apache/tools/ant/types/ArchiveScanner.java
+++ b/src/main/org/apache/tools/ant/types/ArchiveScanner.java
@@ -257,8 +257,8 @@ public abstract class ArchiveScanner extends DirectoryScanner {
public boolean match(String path) {
String vpath = path;
if (!path.isEmpty()) {
- vpath = path.replace('/', File.separatorChar).
- replace('\\', File.separatorChar);
+ vpath = path.replace('/', File.separatorChar)
+ .replace('\\', File.separatorChar);
if (vpath.charAt(0) == File.separatorChar) {
vpath = vpath.substring(1);
}
diff --git a/src/main/org/apache/tools/ant/types/CommandlineJava.java b/src/main/org/apache/tools/ant/types/CommandlineJava.java
index 7cace386f..fd6588000 100644
--- a/src/main/org/apache/tools/ant/types/CommandlineJava.java
+++ b/src/main/org/apache/tools/ant/types/CommandlineJava.java
@@ -536,7 +536,7 @@ public class CommandlineJava implements Cloneable {
}
// this is the classname to run as well as its arguments.
// in case of ExecutableType.JAR, the executable is a jar file,
- // in case of ExecutableType.MODULE, the executable is a module name, portentially including a class name.
+ // in case of ExecutableType.MODULE, the executable is a module name, potentially including a class name.
javaCommand.addCommandToList(listIterator);
}
@@ -602,7 +602,7 @@ public class CommandlineJava implements Cloneable {
* @return the total number of arguments in the java command line.
* @see #getCommandline()
* @deprecated since 1.7.
- * Please dont use this, it effectively creates the
+ * Please don't use this, it effectively creates the
* entire command.
*/
@Deprecated
diff --git a/src/main/org/apache/tools/ant/types/PatternSet.java b/src/main/org/apache/tools/ant/types/PatternSet.java
index dbb3bc2f4..8a833c87f 100644
--- a/src/main/org/apache/tools/ant/types/PatternSet.java
+++ b/src/main/org/apache/tools/ant/types/PatternSet.java
@@ -47,7 +47,7 @@ public class PatternSet extends DataType implements Cloneable {
/**
* inner class to hold a name on list. "If" and "Unless" attributes
* may be used to invalidate the entry based on the existence of a
- * property (typically set thru the use of the Available task)
+ * property (typically set through the use of the Available task)
* or value of an expression.
*/
public class NameEntry {
diff --git a/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java b/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java
index b470403c4..5d86ecb23 100644
--- a/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java
+++ b/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java
@@ -67,7 +67,7 @@ public class LazyResourceCollectionWrapper extends
/**
* Specify if the resource should be filtered or not. This function should
- * be overriden in order to define the filtering algorithm
+ * be overridden in order to define the filtering algorithm
*
* @param r resource considered for filtration
* @return whether the resource should be filtered or not
diff --git a/src/main/org/apache/tools/ant/util/DateUtils.java b/src/main/org/apache/tools/ant/util/DateUtils.java
index 4974c2053..7436fc64e 100644
--- a/src/main/org/apache/tools/ant/util/DateUtils.java
+++ b/src/main/org/apache/tools/ant/util/DateUtils.java
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
/**
* Helper methods to deal with date/time formatting with a specific
* defined format (ISO8601)
- * or a plurialization correct elapsed time in minutes and seconds.
+ * or a correct pluralization of elapsed time in minutes and seconds.
*
* @since Ant 1.5
*
diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java
index cc2242c4a..864db5e5b 100644
--- a/src/main/org/apache/tools/ant/util/FileUtils.java
+++ b/src/main/org/apache/tools/ant/util/FileUtils.java
@@ -858,8 +858,8 @@ public class FileUtils {
if (dirEnd == -1 || dirEnd < index) {
file = path.substring(index);
} else {
- directory = new StringBuilder(path.substring(index, dirEnd).
- replace(File.separatorChar, '.'));
+ directory = new StringBuilder(path.substring(index, dirEnd)
+ .replace(File.separatorChar, '.'));
index = dirEnd + 1;
if (path.length() > index) {
file = path.substring(index);
diff --git a/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
index 2ace4d4b3..ebbe40d72 100644
--- a/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
+++ b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
@@ -338,7 +338,7 @@ public class LayoutPreservingProperties extends Properties {
s = "\n" + s;
} else {
// could be a comment, if first non-whitespace is a # or !
- comment = s.matches("^([ \t\f])*([#!]).*");
+ comment = s.matches("^[ \t\f]*[#!].*");
}
// continuation if not a comment and the line ends is an
diff --git a/src/main/org/apache/tools/ant/util/LoaderUtils.java b/src/main/org/apache/tools/ant/util/LoaderUtils.java
index 799feb58f..4928f1b19 100644
--- a/src/main/org/apache/tools/ant/util/LoaderUtils.java
+++ b/src/main/org/apache/tools/ant/util/LoaderUtils.java
@@ -130,7 +130,7 @@ public class LoaderUtils {
* Check if a classloader has a classname resource.
* @param loader the classloader to look it.
* @param className the name of the class to look for.
- * @return true if the classexists, false otherwise
+ * @return true if the class exists, false otherwise
* @since Ant 1.7.0.
*/
public static boolean classExists(ClassLoader loader, String className) {
diff --git a/src/main/org/apache/tools/ant/util/ReflectUtil.java b/src/main/org/apache/tools/ant/util/ReflectUtil.java
index 8392f713e..a1a0b04e8 100644
--- a/src/main/org/apache/tools/ant/util/ReflectUtil.java
+++ b/src/main/org/apache/tools/ant/util/ReflectUtil.java
@@ -168,7 +168,7 @@ public class ReflectUtil {
/**
* A method to convert an invocationTargetException to
- * a buildexception and throw it.
+ * a BuildException and throw it.
* @param t the invocation target exception.
* @throws BuildException the converted exception.
*/
@@ -179,7 +179,7 @@ public class ReflectUtil {
/**
* A method to convert an invocationTargetException to
- * a buildexception.
+ * a BuildException.
* @param t the invocation target exception.
* @return the converted exception.
* @since ant 1.7.1
diff --git a/src/main/org/apache/tools/ant/util/UUEncoder.java b/src/main/org/apache/tools/ant/util/UUEncoder.java
index 852e9a1d3..f37cac4d3 100644
--- a/src/main/org/apache/tools/ant/util/UUEncoder.java
+++ b/src/main/org/apache/tools/ant/util/UUEncoder.java
@@ -23,7 +23,7 @@ import java.io.OutputStream;
import java.io.PrintStream;
/**
- * UUEncoding of an input stream placed into an outputstream.
+ * UUEncoding of an input stream placed into an OutputStream.
* This class is meant to be a drop in replacement for
* sun.misc.UUEncoder, which was previously used by Ant.
* The uuencode algorithm code has been copied from the
diff --git a/src/main/org/apache/tools/bzip2/BlockSort.java b/src/main/org/apache/tools/bzip2/BlockSort.java
index d39d705b3..f019da87a 100644
--- a/src/main/org/apache/tools/bzip2/BlockSort.java
+++ b/src/main/org/apache/tools/bzip2/BlockSort.java
@@ -52,7 +52,7 @@ import java.util.BitSet;
* ssCommons Compre
*
*
- * deployment
. This step can be performed by the websphere
* element as part of the jar generation process. If the switch
- * ejbdeploy
is on, the ejbdeploy tool from the websphere toolset
+ * ejbdeploy
is on, the ejbdeploy tool from the WebSphere toolset
* is called for every ejb-jar. Unfortunately, this step only works, if you
* use the ibm jdk. Otherwise, the rmic (called by ejbdeploy) throws a
* ClassFormatError. Be sure to switch ejbdeploy off, if run ant with
@@ -78,7 +78,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
- /** Instance variable that stores the suffix for the websphere jarfile. */
+ /** Instance variable that stores the suffix for the WebSphere jarfile. */
private String jarSuffix = ".jar";
/** Instance variable that stores the location of the ejb 1.1 DTD file. */
@@ -95,7 +95,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/** Indicates if the old CMP location convention is to be used. */
private boolean newCMP = false;
- /** The classpath to the websphere classes. */
+ /** The classpath to the WebSphere classes. */
private Path wasClasspath = null;
/** The DB Vendor name, the EJB is persisted against */
@@ -134,12 +134,12 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/** the scratchdir for the ejbdeploy operation */
private String tempdir = "_ejbdeploy_temp";
- /** the home directory for websphere */
+ /** the home directory for WebSphere */
private File websphereHome;
/**
- * Get the classpath to the websphere classpaths.
- * @return the websphere classpath.
+ * Get the classpath to the WebSphere classpaths.
+ * @return the WebSphere classpath.
*/
public Path createWASClasspath() {
if (wasClasspath == null) {
@@ -149,8 +149,8 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}
/**
- * Set the websphere classpath.
- * @param wasClasspath the websphere classpath.
+ * Set the WebSphere classpath.
+ * @param wasClasspath the WebSphere classpath.
*/
public void setWASClasspath(Path wasClasspath) {
this.wasClasspath = wasClasspath;
@@ -325,10 +325,10 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/**
* Set the value of the newCMP scheme. The old CMP scheme locates the
- * websphere CMP descriptor based on the naming convention where the
- * websphere CMP file is expected to be named with the bean name as the
+ * WebSphere CMP descriptor based on the naming convention where the
+ * WebSphere CMP file is expected to be named with the bean name as the
* prefix. Under this scheme the name of the CMP descriptor does not match
- * the name actually used in the main websphere EJB descriptor. Also,
+ * the name actually used in the main WebSphere EJB descriptor. Also,
* descriptors which contain multiple CMP references could not be used.
* @param newCMP a boolean
value.
*/
@@ -517,12 +517,12 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}
/**
- * Helper method invoked by execute() for each websphere jar to be built.
+ * Helper method invoked by execute() for each WebSphere jar to be built.
* Encapsulates the logic of constructing a java task for calling
* websphere.ejbdeploy and executing it.
*
* @param sourceJar java.io.File representing the source (EJB1.1) jarfile.
- * @param destJar java.io.File representing the destination, websphere
+ * @param destJar java.io.File representing the destination, WebSphere
* jarfile.
*/
private void buildWebsphereJar(File sourceJar, File destJar) {
@@ -625,27 +625,27 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}
/**
- * Helper method to check to see if a websphere EBJ1.1 jar needs to be
+ * Helper method to check to see if a WebSphere EJB 1.1 jar needs to be
* rebuilt using ejbdeploy. Called from writeJar it sees if the "Bean"
* classes are the only thing that needs to be updated and either updates
* the Jar with the Bean classfile or returns true, saying that the whole
- * websphere jar needs to be regened with ejbdeploy. This allows faster
+ * WebSphere jar needs to be regenerated with ejbdeploy. This allows faster
* build times for working developers.
*
*
*