summaryrefslogtreecommitdiff
path: root/src/main/org/apache
diff options
context:
space:
mode:
authorGintas Grigelionis <gintas@apache.org>2018-09-08 22:12:24 +0200
committerGintas Grigelionis <gintas@apache.org>2018-09-09 09:07:18 +0200
commit54b6df2f44c5cb4f9573f99330c2d2908f1bf506 (patch)
tree5d4d828ac72a507e28e9ec24d7cfa4a420225521 /src/main/org/apache
parentfde6b0e941a7cd7a12e84950723523bcedfbb868 (diff)
downloadant-54b6df2f44c5cb4f9573f99330c2d2908f1bf506.tar.gz
Check spelling
Diffstat (limited to 'src/main/org/apache')
-rw-r--r--src/main/org/apache/tools/ant/Diagnostics.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Ant.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Checksum.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Exec.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/SignJar.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Zip.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/JUnitLauncherTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestRequest.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java2
-rw-r--r--src/main/org/apache/tools/ant/types/XMLCatalog.java2
-rw-r--r--src/main/org/apache/tools/ant/util/FileUtils.java2
-rw-r--r--src/main/org/apache/tools/ant/util/ProxySetup.java2
-rw-r--r--src/main/org/apache/tools/zip/ZipOutputStream.java4
20 files changed, 29 insertions, 29 deletions
diff --git a/src/main/org/apache/tools/ant/Diagnostics.java b/src/main/org/apache/tools/ant/Diagnostics.java
index 7434433cf..ca97a85e2 100644
--- a/src/main/org/apache/tools/ant/Diagnostics.java
+++ b/src/main/org/apache/tools/ant/Diagnostics.java
@@ -588,7 +588,7 @@ public final class Diagnostics {
long drift = filetime - now;
tempFile.delete();
- out.print("Temp dir is writeable");
+ out.print("Temp dir is writable");
if (total != TEST_FILE_SIZE * KILOBYTE) {
out.println(", but seems to be full. Wrote "
+ (TEST_FILE_SIZE * KILOBYTE)
diff --git a/src/main/org/apache/tools/ant/taskdefs/Ant.java b/src/main/org/apache/tools/ant/taskdefs/Ant.java
index f9079ab7e..a07923287 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Ant.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Ant.java
@@ -574,7 +574,7 @@ public class Ant extends Task {
log("Adding clone of reference " + oldKey, Project.MSG_DEBUG);
}
} catch (Exception e) {
- // not Clonable
+ // not Cloneable
}
if (copy instanceof ProjectComponent) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Checksum.java b/src/main/org/apache/tools/ant/taskdefs/Checksum.java
index 1692392d8..a488d7eba 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Checksum.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Checksum.java
@@ -663,7 +663,7 @@ public class Checksum extends MatchingTask implements Condition {
/**
* Get the default value - CHECKSUM.
- * @return the defaul value.
+ * @return the default value.
*/
public static FormatElement getDefault() {
FormatElement e = new FormatElement();
diff --git a/src/main/org/apache/tools/ant/taskdefs/Exec.java b/src/main/org/apache/tools/ant/taskdefs/Exec.java
index 75a9f70b4..7486957ed 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Exec.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Exec.java
@@ -217,7 +217,7 @@ public class Exec extends Task {
/**
* Log an output message.
- * @param line the line to putput
+ * @param line the line to output
* @param messageLevel the level of logging - ignored
* if output is going to a file
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/SignJar.java b/src/main/org/apache/tools/ant/taskdefs/SignJar.java
index 16d6993b9..95b27dbc3 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SignJar.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SignJar.java
@@ -602,7 +602,7 @@ public class SignJar extends AbstractJarSignerTask {
* either file doesn't exist, or the destfile has an out of date timestamp,
* then the return value is false.</p>
*
- * <p>If we are signing ourself, the check {@link #isSigned(File)} is used to
+ * <p>If we are signing ourselves, the check {@link #isSigned(File)} is used to
* trigger the process.</p>
*
* @param jarFile the unsigned jar file
diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java
index 65bfdec9e..225e038b8 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Zip.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java
@@ -2136,7 +2136,7 @@ public class Zip extends MatchingTask {
/**
* Policy for creation of Unicode extra fields: never, always or
- * not-encodeable.
+ * not-encodable.
*
* @since Ant 1.8.0
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java b/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
index e78d94bdf..9143b5f63 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
@@ -78,7 +78,7 @@ public class IsReachable extends ProjectComponent implements Condition {
/** Error message when url and host are specified. */
public static final String ERROR_BOTH_TARGETS
= "Both url and host have been specified";
- /** Error message when no reachably test avail. */
+ /** Error message when no reachability test avail. */
public static final String MSG_NO_REACHABLE_TEST
= "cannot do a proper reachability test on this Java version";
/** Error message when an invalid url is used. */
@@ -121,7 +121,7 @@ public class IsReachable extends ProjectComponent implements Condition {
}
/**
- * emptyness test
+ * emptiness test
*
* @param string param to check
*
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
index 7a34876c8..f341c1519 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
@@ -389,7 +389,7 @@ public class GenericDeploymentTool implements EJBDeploymentTool {
try {
handler = getDescriptorHandler(config.srcDir);
- // Retreive the files to be added to JAR from EJB descriptor
+ // Retrieve the files to be added to JAR from EJB descriptor
Hashtable<String, File> ejbFiles = parseEjbFiles(descriptorFileName, saxParser);
// Add any support classes specified in the build file
@@ -688,7 +688,7 @@ public class GenericDeploymentTool implements EJBDeploymentTool {
* If the file does not exist the global manifest from the config is used
* otherwise the default Ant manifest will be used.
*
- * @param prefix the prefix where to llook for the manifest file based on
+ * @param prefix the prefix where to look for the manifest file based on
* the naming convention.
*
* @return the manifest file or null if the manifest file does not exist
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java
index 33e125176..1f81e559f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java
@@ -768,7 +768,7 @@ public class JonasDeploymentTool extends GenericDeploymentTool {
}
/* ----------------------------------------------------------------------------------- */
- /* utilitary methods */
+ /* utility methods */
/* ----------------------------------------------------------------------------------- */
/**
@@ -798,7 +798,7 @@ public class JonasDeploymentTool extends GenericDeploymentTool {
/**
* Add a file to the a given hashtable. If the file is a directory, add
- * recursivly all the files inside to the hashtable.
+ * recursively all the files inside to the hashtable.
*
* @param file the file to add.
* @param rootDir the current sub-directory to scan.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
index e5893206b..767d07ace 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
@@ -153,7 +153,7 @@ public class WLJspc extends MatchingTask {
args[j++] = "-docroot";
args[j++] = sourceDirectory.getAbsolutePath().trim();
args[j++] = "-keepgenerated";
- //Call compiler as class... dont want to fork again
+ //Call compiler as class... don't want to fork again
//Use classic compiler -- can be parameterised?
args[j++] = "-compilerclass";
args[j++] = "sun.tools.javac.Main";
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/JUnitLauncherTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/JUnitLauncherTask.java
index 028397e87..21ae7babe 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/JUnitLauncherTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/JUnitLauncherTask.java
@@ -106,7 +106,7 @@ public class JUnitLauncherTask extends Task {
if (this.classPath == null) {
// create a "wrapper" path which can hold on to multiple
// paths that get passed to this method (if at all the task in the build is
- // configured with multiple classpaht elements)
+ // configured with multiple classpath elements)
this.classPath = new Path(getProject());
}
this.classPath.add(path);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestRequest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestRequest.java
index 0f2f67755..a8fac657b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestRequest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/TestRequest.java
@@ -31,7 +31,7 @@ import java.util.List;
final class TestRequest implements AutoCloseable {
private final TestDefinition ownerTest;
private final LauncherDiscoveryRequestBuilder discoveryRequest;
- private final List<Closeable> closables = new ArrayList<>();
+ private final List<Closeable> closeables = new ArrayList<>();
private final List<TestResultFormatter> interestedInSysOut = new ArrayList<>();
private final List<TestResultFormatter> interestedInSysErr = new ArrayList<>();
@@ -53,7 +53,7 @@ final class TestRequest implements AutoCloseable {
if (closeable == null) {
return;
}
- this.closables.add(closeable);
+ this.closeables.add(closeable);
}
void addSysOutInterest(final TestResultFormatter out) {
@@ -81,10 +81,10 @@ final class TestRequest implements AutoCloseable {
}
public void close() throws Exception {
- if (this.closables.isEmpty()) {
+ if (this.closeables.isEmpty()) {
return;
}
- for (final Closeable closeable : closables) {
+ for (final Closeable closeable : closeables) {
closeable.close();
}
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
index 901ff06a8..1cc4dae0f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
@@ -827,7 +827,7 @@ public class FTP extends Task implements FTPTaskConfig {
if (!isCaseSensitive() && (remoteSystemCaseSensitive
|| !remoteSensitivityChecked)) {
currentPathElement =
- findPathElementCaseUnsensitive(this.curpwd,
+ findPathElementCaseInsensitive(this.curpwd,
currentPathElement);
if (currentPathElement == null) {
return;
@@ -854,7 +854,7 @@ public class FTP extends Task implements FTPTaskConfig {
* @param soughtPathElement what is being sought
* @return the first file found or null if not found
*/
- private String findPathElementCaseUnsensitive(String parentPath,
+ private String findPathElementCaseInsensitive(String parentPath,
String soughtPathElement) {
// we are already in the right path, so the second parameter
// is false
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java
index 0d877aaec..b8610181a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java
@@ -729,7 +729,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
if (!this.client.changeWorkingDirectory(currentPathElement)) {
if (!isCaseSensitive() && (remoteSystemCaseSensitive
|| !remoteSensitivityChecked)) {
- currentPathElement = findPathElementCaseUnsensitive(this.curpwd,
+ currentPathElement = findPathElementCaseInsensitive(this.curpwd,
currentPathElement);
if (currentPathElement == null) {
return;
@@ -752,7 +752,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
* @param soughtPathElement what is being sought
* @return the first file found or null if not found
*/
- private String findPathElementCaseUnsensitive(String parentPath,
+ private String findPathElementCaseInsensitive(String parentPath,
String soughtPathElement) {
// we are already in the right path, so the second parameter
// is false
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
index 908639388..7ac945372 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
@@ -772,7 +772,7 @@ public abstract class MSVSS extends Task implements MSVSSConstants {
}
/**
- * Extension of EnumeratedAttribute to hold the values for writable filess.
+ * Extension of EnumeratedAttribute to hold the values for writable files.
*/
public static class WritableFiles extends EnumeratedAttribute {
/**
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
index f9521aa07..c83cb446d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
@@ -95,7 +95,7 @@ public class MSVSSCHECKIN extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/types/XMLCatalog.java b/src/main/org/apache/tools/ant/types/XMLCatalog.java
index 528ba606d..9642a17db 100644
--- a/src/main/org/apache/tools/ant/types/XMLCatalog.java
+++ b/src/main/org/apache/tools/ant/types/XMLCatalog.java
@@ -118,7 +118,7 @@ import org.xml.sax.XMLReader;
public class XMLCatalog extends DataType
implements EntityResolver, URIResolver {
- /** helper for some File.toURL connversions */
+ /** helper for some File.toURL conversions */
private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
//-- Fields ----------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java
index 7764cebc5..e3316e5cd 100644
--- a/src/main/org/apache/tools/ant/util/FileUtils.java
+++ b/src/main/org/apache/tools/ant/util/FileUtils.java
@@ -1228,7 +1228,7 @@ public class FileUtils {
* @return true if path starts with leading; false otherwise.
* @since Ant 1.10.5
* @throws IOException if resolveSymlinks is true and invoking
- * getCanonicaPath on either argument throws an exception
+ * getCanonicalPath on either argument throws an exception
*/
public boolean isLeadingPath(File leading, File path, boolean resolveSymlinks)
throws IOException {
diff --git a/src/main/org/apache/tools/ant/util/ProxySetup.java b/src/main/org/apache/tools/ant/util/ProxySetup.java
index 60f9eb7cf..6757308d7 100644
--- a/src/main/org/apache/tools/ant/util/ProxySetup.java
+++ b/src/main/org/apache/tools/ant/util/ProxySetup.java
@@ -105,7 +105,7 @@ public class ProxySetup {
owner.log(message, Project.MSG_DEBUG);
System.setProperty(USE_SYSTEM_PROXIES, proxies);
} catch (SecurityException e) {
- //log security exceptions and continue; it aint that
+ //log security exceptions and continue; it ain't that
//important and may be quite common running Ant embedded.
owner.log("Security Exception when " + message);
}
diff --git a/src/main/org/apache/tools/zip/ZipOutputStream.java b/src/main/org/apache/tools/zip/ZipOutputStream.java
index 025407b41..ac3567412 100644
--- a/src/main/org/apache/tools/zip/ZipOutputStream.java
+++ b/src/main/org/apache/tools/zip/ZipOutputStream.java
@@ -660,10 +660,10 @@ public class ZipOutputStream extends FilterOutputStream {
}
private boolean isZip64Required(ZipEntry entry1, Zip64Mode requestedMode) {
- return requestedMode == Zip64Mode.Always || isTooLageForZip32(entry1);
+ return requestedMode == Zip64Mode.Always || isTooLargeForZip32(entry1);
}
- private boolean isTooLageForZip32(ZipEntry zipArchiveEntry) {
+ private boolean isTooLargeForZip32(ZipEntry zipArchiveEntry) {
return zipArchiveEntry.getSize() >= ZIP64_MAGIC
|| zipArchiveEntry.getCompressedSize() >= ZIP64_MAGIC;
}