git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275242 13f79535-47bb-0310-9956-ffa450edef68master
@@ -193,7 +193,7 @@ public class Copy extends Task { | |||||
/** | /** | ||||
* Give the copied files the same last modified time as the original files. | * Give the copied files the same last modified time as the original files. | ||||
* @param preserve if true preserve the modified time, default is false | |||||
* @param preserve if true perverse the modified time, default is false | |||||
*/ | */ | ||||
public void setPreserveLastModified(boolean preserve) { | public void setPreserveLastModified(boolean preserve) { | ||||
preserveLastModified = preserve; | preserveLastModified = preserve; | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -61,7 +61,7 @@ import org.apache.tools.ant.Task; | |||||
/** | /** | ||||
* Sets a token filter that is used by the file copy tasks | * Sets a token filter that is used by the file copy tasks | ||||
* to do token substitution. Sets mutiple tokens by | |||||
* to do token substitution. Sets multiple tokens by | |||||
* reading these from a file. | * reading these from a file. | ||||
* | * | ||||
* @author Stefano Mazzocchi | * @author Stefano Mazzocchi | ||||
@@ -672,7 +672,7 @@ public class FixCRLF extends MatchingTask { | |||||
/** | /** | ||||
* Process a BufferLine string which is not part of of a string constant. | |||||
* Process a BufferLine string which is not part of a string constant. | |||||
* The start position of the string is given by the 'next' field. | * The start position of the string is given by the 'next' field. | ||||
* Sets the 'next' and 'column' fields in the BufferLine. | * Sets the 'next' and 'column' fields in the BufferLine. | ||||
* | * | ||||
@@ -171,7 +171,7 @@ public class Get extends Task { | |||||
//not modified so no file download. just return | //not modified so no file download. just return | ||||
//instead and trace out something so the user | //instead and trace out something so the user | ||||
//doesn't think that the download happened when it | //doesn't think that the download happened when it | ||||
//didnt | |||||
//didn't | |||||
log("Not modified - so not downloaded"); | log("Not modified - so not downloaded"); | ||||
return; | return; | ||||
} | } | ||||
@@ -192,7 +192,7 @@ public class Get extends Task { | |||||
//REVISIT: at this point even non HTTP connections may | //REVISIT: at this point even non HTTP connections may | ||||
//support the if-modified-since behaviour -we just check | //support the if-modified-since behaviour -we just check | ||||
//the date of the content and skip the write if it is not | //the date of the content and skip the write if it is not | ||||
//newer. Some protocols (FTP) dont include dates, of | |||||
//newer. Some protocols (FTP) don't include dates, of | |||||
//course. | //course. | ||||
InputStream is = null; | InputStream is = null; | ||||
@@ -92,7 +92,7 @@ public class Input extends Task { | |||||
/** | /** | ||||
* Defines the name of a property to be created from input. Behaviour is | * Defines the name of a property to be created from input. Behaviour is | ||||
* according to property task which means that existing properties | * according to property task which means that existing properties | ||||
* cannot be overriden. | |||||
* cannot be overridden. | |||||
* | * | ||||
* @param addproperty Name for the property to be created from input | * @param addproperty Name for the property to be created from input | ||||
*/ | */ | ||||
@@ -93,7 +93,7 @@ public class Jar extends Zip { | |||||
/** The index file name. */ | /** The index file name. */ | ||||
private static final String INDEX_NAME = "META-INF/INDEX.LIST"; | private static final String INDEX_NAME = "META-INF/INDEX.LIST"; | ||||
/** The mainfest file name. */ | |||||
/** The manifest file name. */ | |||||
private static final String MANIFEST_NAME = "META-INF/MANIFEST.MF"; | private static final String MANIFEST_NAME = "META-INF/MANIFEST.MF"; | ||||
/** merged manifests added through addConfiguredManifest */ | /** merged manifests added through addConfiguredManifest */ | ||||
@@ -483,7 +483,7 @@ public class Jar extends Zip { | |||||
} | } | ||||
/** | /** | ||||
* Overriden from Zip class to deal with manifests and index lists. | |||||
* Overridden from Zip class to deal with manifests and index lists. | |||||
*/ | */ | ||||
protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath, | protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath, | ||||
long lastModified, File fromArchive, int mode) | long lastModified, File fromArchive, int mode) | ||||
@@ -803,7 +803,7 @@ public class Java extends Task { | |||||
* | * | ||||
* @return new watchdog | * @return new watchdog | ||||
* | * | ||||
* @throws BuildException under unknown circumnstances | |||||
* @throws BuildException under unknown circumstances | |||||
* | * | ||||
* @since Ant 1.5 | * @since Ant 1.5 | ||||
*/ | */ | ||||
@@ -82,7 +82,7 @@ import org.apache.tools.ant.util.facade.FacadeTaskHelper; | |||||
* <li>encoding | * <li>encoding | ||||
* <li>target | * <li>target | ||||
* <li>depend | * <li>depend | ||||
* <li>vebose | |||||
* <li>verbose | |||||
* <li>failonerror | * <li>failonerror | ||||
* <li>includeantruntime | * <li>includeantruntime | ||||
* <li>includejavaruntime | * <li>includejavaruntime | ||||
@@ -243,7 +243,7 @@ public class Javac extends MatchingTask { | |||||
/** | /** | ||||
* Gets the source dirs to find the source java files. | * Gets the source dirs to find the source java files. | ||||
* @return the source directorys as a path | |||||
* @return the source directories as a path | |||||
*/ | */ | ||||
public Path getSrcdir() { | public Path getSrcdir() { | ||||
return src; | return src; | ||||
@@ -660,7 +660,7 @@ public class Javac extends MatchingTask { | |||||
} | } | ||||
/** | /** | ||||
* Sets the the name of the javac executable. | |||||
* Sets the name of the javac executable. | |||||
* | * | ||||
* <p>Ignored unless fork is true or extJavac has been specified | * <p>Ignored unless fork is true or extJavac has been specified | ||||
* as the compiler.</p> | * as the compiler.</p> | ||||
@@ -765,7 +765,7 @@ public class Javac extends MatchingTask { | |||||
* Where Ant should place temporary files. | * Where Ant should place temporary files. | ||||
* | * | ||||
* @since Ant 1.6 | * @since Ant 1.6 | ||||
* @return the temorary directory | |||||
* @return the temporary directory | |||||
*/ | */ | ||||
public File getTempdir() { | public File getTempdir() { | ||||
return tmpDir; | return tmpDir; | ||||
@@ -875,7 +875,7 @@ public class Javac extends MatchingTask { | |||||
/** | /** | ||||
* The implementation for this particular task. | * The implementation for this particular task. | ||||
* | * | ||||
* <p>Defaults to the build.compiler property but can be overriden | |||||
* <p>Defaults to the build.compiler property but can be overridden | |||||
* via the compiler and fork attributes.</p> | * via the compiler and fork attributes.</p> | ||||
* | * | ||||
* <p>If fork has been set to true, the result will be extJavac | * <p>If fork has been set to true, the result will be extJavac | ||||
@@ -906,7 +906,7 @@ public class Javac extends MatchingTask { | |||||
/** | /** | ||||
* The implementation for this particular task. | * The implementation for this particular task. | ||||
* | * | ||||
* <p>Defaults to the build.compiler property but can be overriden | |||||
* <p>Defaults to the build.compiler property but can be overridden | |||||
* via the compiler attribute.</p> | * via the compiler attribute.</p> | ||||
* | * | ||||
* <p>This method does not take the fork attribute into | * <p>This method does not take the fork attribute into | ||||
@@ -1173,7 +1173,7 @@ public class Javadoc extends Task { | |||||
/** | /** | ||||
* Control warnings about serial tag. | * Control warnings about serial tag. | ||||
* | * | ||||
* @param b if true, generate warning aboutthe serial tag. | |||||
* @param b if true, generate warning about the serial tag. | |||||
*/ | */ | ||||
public void setSerialwarn(boolean b) { | public void setSerialwarn(boolean b) { | ||||
add12ArgIf(b, "-serialwarn"); | add12ArgIf(b, "-serialwarn"); | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2000,2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2000,2002-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -79,9 +79,9 @@ public class Jikes { | |||||
protected Project project; | protected Project project; | ||||
/** | /** | ||||
* Constructs a new Jikes obect. | |||||
* Constructs a new Jikes object. | |||||
* @param jop - Parser to send jike's output to | * @param jop - Parser to send jike's output to | ||||
* @param command - name of jikes executeable | |||||
* @param command - name of jikes executable | |||||
*/ | */ | ||||
protected Jikes(JikesOutputParser jop, String command, Project project) { | protected Jikes(JikesOutputParser jop, String command, Project project) { | ||||
super(); | super(); | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2000,2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2000,2002-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -117,7 +117,7 @@ public class JikesOutputParser implements ExecuteStreamHandler { | |||||
/** | /** | ||||
* Construct a new Parser object | * Construct a new Parser object | ||||
* @param task - task in whichs context we are called | |||||
* @param task - task in which context we are called | |||||
*/ | */ | ||||
protected JikesOutputParser(Task task, boolean emacsMode) { | protected JikesOutputParser(Task task, boolean emacsMode) { | ||||
super(); | super(); | ||||
@@ -147,7 +147,7 @@ public class JikesOutputParser implements ExecuteStreamHandler { | |||||
private void parseStandardOutput(BufferedReader reader) throws IOException { | private void parseStandardOutput(BufferedReader reader) throws IOException { | ||||
String line; | String line; | ||||
String lower; | String lower; | ||||
// We assume, that every output, jike does, stands for an error/warning | |||||
// We assume, that every output, jikes does, stands for an error/warning | |||||
// XXX | // XXX | ||||
// Is this correct? | // Is this correct? | ||||
@@ -201,7 +201,7 @@ public class JikesOutputParser implements ExecuteStreamHandler { | |||||
/** | /** | ||||
* Indicate if there were errors during the compile | * Indicate if there were errors during the compile | ||||
* @return if errors ocured | |||||
* @return if errors occurred | |||||
*/ | */ | ||||
protected boolean getErrorFlag() { | protected boolean getErrorFlag() { | ||||
return errorFlag; | return errorFlag; | ||||
@@ -87,7 +87,7 @@ public class KeySubst extends Task { | |||||
*/ | */ | ||||
public void execute() throws BuildException { | public void execute() throws BuildException { | ||||
log("!! KeySubst is deprecated. Use Filter + Copy instead. !!"); | log("!! KeySubst is deprecated. Use Filter + Copy instead. !!"); | ||||
log("Performing Substitions"); | |||||
log("Performing Substitutions"); | |||||
if (source == null || dest == null) { | if (source == null || dest == null) { | ||||
log("Source and destinations must not be null"); | log("Source and destinations must not be null"); | ||||
return; | return; | ||||
@@ -148,7 +148,7 @@ public class KeySubst extends Task { | |||||
} | } | ||||
/** | /** | ||||
Sets the seperator between name=value arguments | |||||
Sets the separator between name=value arguments | |||||
in setKeys(). By default it is "*". | in setKeys(). By default it is "*". | ||||
*/ | */ | ||||
public void setSep(String sep) { | public void setSep(String sep) { | ||||
@@ -171,7 +171,7 @@ public class LogOutputStream extends OutputStream { | |||||
/** | /** | ||||
* Write a block of characters to the output stream | * Write a block of characters to the output stream | ||||
* | * | ||||
* @param b the array containg the data | |||||
* @param b the array containing the data | |||||
* @param off the offset into the array where data starts | * @param off the offset into the array where data starts | ||||
* @param len the length of block | * @param len the length of block | ||||
* | * | ||||
@@ -168,7 +168,7 @@ public class Sync extends Task { | |||||
} | } | ||||
/** | /** | ||||
* Removes all files and folders not found as keyes of a table | |||||
* Removes all files and folders not found as keys of a table | |||||
* (used as a set!). | * (used as a set!). | ||||
* | * | ||||
* <p>If the provided file is a directory, it is recursively | * <p>If the provided file is a directory, it is recursively | ||||
@@ -172,7 +172,7 @@ public class Tar extends MatchingTask { | |||||
* Allowable values are | * Allowable values are | ||||
* <ul> | * <ul> | ||||
* <li> truncate - paths are truncated to the maximum length | * <li> truncate - paths are truncated to the maximum length | ||||
* <li> fail - paths greater than the maximim cause a build exception | |||||
* <li> fail - paths greater than the maximum cause a build exception | |||||
* <li> warn - paths greater than the maximum cause a warning and GNU is used | * <li> warn - paths greater than the maximum cause a warning and GNU is used | ||||
* <li> gnu - GNU extensions are used for any paths greater than the maximum. | * <li> gnu - GNU extensions are used for any paths greater than the maximum. | ||||
* <li> omit - paths greater than the maximum are omitted from the archive | * <li> omit - paths greater than the maximum are omitted from the archive | ||||
@@ -196,7 +196,7 @@ public class Tar extends MatchingTask { | |||||
* Allowable values are | * Allowable values are | ||||
* <ul> | * <ul> | ||||
* <li> truncate - paths are truncated to the maximum length | * <li> truncate - paths are truncated to the maximum length | ||||
* <li> fail - paths greater than the maximim cause a build exception | |||||
* <li> fail - paths greater than the maximum cause a build exception | |||||
* <li> warn - paths greater than the maximum cause a warning and GNU is used | * <li> warn - paths greater than the maximum cause a warning and GNU is used | ||||
* <li> gnu - GNU extensions are used for any paths greater than the maximum. | * <li> gnu - GNU extensions are used for any paths greater than the maximum. | ||||
* <li> omit - paths greater than the maximum are omitted from the archive | * <li> omit - paths greater than the maximum are omitted from the archive | ||||
@@ -596,7 +596,7 @@ public class Tar extends MatchingTask { | |||||
*/ | */ | ||||
public static class TarLongFileMode extends EnumeratedAttribute { | public static class TarLongFileMode extends EnumeratedAttribute { | ||||
// permissable values for longfile attribute | |||||
// permissible values for longfile attribute | |||||
public static final String WARN = "warn"; | public static final String WARN = "warn"; | ||||
public static final String FAIL = "fail"; | public static final String FAIL = "fail"; | ||||
public static final String TRUNCATE = "truncate"; | public static final String TRUNCATE = "truncate"; | ||||
@@ -641,7 +641,7 @@ public class Tar extends MatchingTask { | |||||
*/ | */ | ||||
public static final class TarCompressionMethod extends EnumeratedAttribute { | public static final class TarCompressionMethod extends EnumeratedAttribute { | ||||
// permissable values for compression attribute | |||||
// permissible values for compression attribute | |||||
/** | /** | ||||
* No compression | * No compression | ||||
*/ | */ | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2000,2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2000,2002-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -117,7 +117,7 @@ public class TaskOutputStream extends OutputStream { | |||||
} | } | ||||
/** | /** | ||||
* Processes a line of input and determines if an error occured. | |||||
* Processes a line of input and determines if an error occurred. | |||||
*/ | */ | ||||
private void processLine() { | private void processLine() { | ||||
@@ -76,7 +76,7 @@ import org.apache.tools.ant.TaskAdapter; | |||||
public class Taskdef extends Typedef { | public class Taskdef extends Typedef { | ||||
/** | /** | ||||
* Default constuctor. | |||||
* Default constructor. | |||||
* Creates a new Taskdef instance. | * Creates a new Taskdef instance. | ||||
* This sets the adapter and the adaptto classes to | * This sets the adapter and the adaptto classes to | ||||
* TaskAdapter and Task. | * TaskAdapter and Task. | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -101,7 +101,7 @@ public class Tstamp extends Task { | |||||
/** | /** | ||||
* create the timestamps. Custom ones are done before | * create the timestamps. Custom ones are done before | ||||
* the standard ones, to get their retalation in early. | |||||
* the standard ones, to get their retaliation in early. | |||||
* @throws BuildException | * @throws BuildException | ||||
*/ | */ | ||||
public void execute() throws BuildException { | public void execute() throws BuildException { | ||||
@@ -130,7 +130,7 @@ public class Tstamp extends Task { | |||||
} | } | ||||
/** | /** | ||||
* create a custom format with the the current prefix. | |||||
* create a custom format with the current prefix. | |||||
* @return a ready to fill-in format | * @return a ready to fill-in format | ||||
*/ | */ | ||||
public CustomFormat createFormat() { | public CustomFormat createFormat() { | ||||
@@ -77,7 +77,7 @@ import org.apache.tools.tar.TarInputStream; | |||||
* <p>PatternSets are used to select files to extract | * <p>PatternSets are used to select files to extract | ||||
* <I>from</I> the archive. If no patternset is used, all files are extracted. | * <I>from</I> the archive. If no patternset is used, all files are extracted. | ||||
* </p> | * </p> | ||||
* <p>FileSet>s may be used used to select archived files | |||||
* <p>FileSet>s may be used to select archived files | |||||
* to perform unarchival upon. | * to perform unarchival upon. | ||||
* </p> | * </p> | ||||
* <p>File permissions will not be restored on extracted files.</p> | * <p>File permissions will not be restored on extracted files.</p> | ||||
@@ -160,7 +160,7 @@ public class Untar extends Expand { | |||||
public static final class UntarCompressionMethod | public static final class UntarCompressionMethod | ||||
extends EnumeratedAttribute { | extends EnumeratedAttribute { | ||||
// permissable values for compression attribute | |||||
// permissible values for compression attribute | |||||
/** | /** | ||||
* No compression | * No compression | ||||
*/ | */ | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -65,7 +65,7 @@ import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
* | * | ||||
* Wait for an external process to start or to complete some | * Wait for an external process to start or to complete some | ||||
* task. This is useful with the <code>parallel</code> task to | * task. This is useful with the <code>parallel</code> task to | ||||
* syncronize the execution of tests with server startup. | |||||
* synchronize the execution of tests with server startup. | |||||
* | * | ||||
* The following attributes can be specified on a waitfor task: | * The following attributes can be specified on a waitfor task: | ||||
* <ul> | * <ul> | ||||
@@ -77,7 +77,7 @@ import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
* </ul> | * </ul> | ||||
* | * | ||||
* The maxwaitunit and checkeveryunit are allowed to have the following values: | * The maxwaitunit and checkeveryunit are allowed to have the following values: | ||||
* millesond, second, minute, hour, day and week. The default is millisecond. | |||||
* millisecond, second, minute, hour, day and week. The default is millisecond. | |||||
* | * | ||||
* @author <a href="mailto:denis@network365.com">Denis Hennessy</a> | * @author <a href="mailto:denis@network365.com">Denis Hennessy</a> | ||||
* @author Magesh Umasankar | * @author Magesh Umasankar | ||||
@@ -174,7 +174,7 @@ public class War extends Jar { | |||||
} | } | ||||
/** | /** | ||||
* Overriden from Zip class to deal with web.xml | |||||
* Overridden from Zip class to deal with web.xml | |||||
*/ | */ | ||||
protected void zipFile(File file, ZipOutputStream zOut, String vPath, | protected void zipFile(File file, ZipOutputStream zOut, String vPath, | ||||
int mode) | int mode) | ||||
@@ -509,7 +509,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { | |||||
* Process the input file to the output file with the given stylesheet. | * Process the input file to the output file with the given stylesheet. | ||||
* | * | ||||
* @param inFile the input file to process. | * @param inFile the input file to process. | ||||
* @param outFile the detination file. | |||||
* @param outFile the destination file. | |||||
* @param stylesheet the stylesheet to use. | * @param stylesheet the stylesheet to use. | ||||
* @exception BuildException if the processing fails. | * @exception BuildException if the processing fails. | ||||
*/ | */ | ||||
@@ -709,7 +709,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { | |||||
/** | /** | ||||
* Set whether this param should NOT be used. It | * Set whether this param should NOT be used. It | ||||
* will not be used if the property has been set, orthwise it | |||||
* will not be used if the property has been set, otherwise it | |||||
* will be used. | * will be used. | ||||
* @param unlessProperty name of property | * @param unlessProperty name of property | ||||
*/ | */ | ||||
@@ -899,7 +899,7 @@ public class Zip extends MatchingTask { | |||||
/** | /** | ||||
* Fetch all included and not excluded resources from the sets. | * Fetch all included and not excluded resources from the sets. | ||||
* | * | ||||
* <p>Included directories will preceede included files.</p> | |||||
* <p>Included directories will precede included files.</p> | |||||
* | * | ||||
* @since Ant 1.5.2 | * @since Ant 1.5.2 | ||||
*/ | */ | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -58,10 +58,10 @@ import org.apache.tools.ant.BuildException; | |||||
import org.apache.tools.ant.taskdefs.Javac; | import org.apache.tools.ant.taskdefs.Javac; | ||||
/** | /** | ||||
* The interface that all compiler adapters must adher to. | |||||
* The interface that all compiler adapters must adhere to. | |||||
* | * | ||||
* <p>A compiler adapter is an adapter that interprets the javac's | * <p>A compiler adapter is an adapter that interprets the javac's | ||||
* parameters in preperation to be passed off to the compier this | |||||
* parameters in preparation to be passed off to the compiler this | |||||
* adapter represents. As all the necessary values are stored in the | * adapter represents. As all the necessary values are stored in the | ||||
* Javac task itself, the only thing all adapters need is the javac | * Javac task itself, the only thing all adapters need is the javac | ||||
* task, the execute command and a parameterless constructor (for | * task, the execute command and a parameterless constructor (for | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -86,7 +86,7 @@ public class CompilerAdapterFactory { | |||||
* <li>kjc = the kopi compiler</li> | * <li>kjc = the kopi compiler</li> | ||||
* <li>gcj = the gcj compiler from gcc</li> | * <li>gcj = the gcj compiler from gcc</li> | ||||
* <li>sj, symantec = the Symantec Java compiler</li> | * <li>sj, symantec = the Symantec Java compiler</li> | ||||
* <li><i>a fully quallified classname</i> = the name of a compiler | |||||
* <li><i>a fully qualified classname</i> = the name of a compiler | |||||
* adapter | * adapter | ||||
* </ul> | * </ul> | ||||
* | * | ||||
@@ -167,7 +167,7 @@ public class CompilerAdapterFactory { | |||||
/** | /** | ||||
* query for the Modern compiler existing | * query for the Modern compiler existing | ||||
* @return true iff classic os on the classpath | |||||
* @return true if classic os on the classpath | |||||
*/ | */ | ||||
private static boolean doesModernCompilerExist() { | private static boolean doesModernCompilerExist() { | ||||
try { | try { | ||||
@@ -373,7 +373,7 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter { | |||||
/** | /** | ||||
* Logs the compilation parameters, adds the files to compile and logs the | * Logs the compilation parameters, adds the files to compile and logs the | ||||
* &qout;niceSourceList" | |||||
* "niceSourceList" | |||||
*/ | */ | ||||
protected void logAndAddFilesToCompile(Commandline cmd) { | protected void logAndAddFilesToCompile(Commandline cmd) { | ||||
attributes.log("Compilation " + cmd.describeArguments(), | attributes.log("Compilation " + cmd.describeArguments(), | ||||
@@ -503,7 +503,7 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter { | |||||
} | } | ||||
/** | /** | ||||
* Adds the command line arguments specifc to the current implementation. | |||||
* Adds the command line arguments specific to the current implementation. | |||||
*/ | */ | ||||
protected void addCurrentCompilerArgs(Commandline cmd) { | protected void addCurrentCompilerArgs(Commandline cmd) { | ||||
cmd.addArguments(getJavac().getCurrentCompilerArgs()); | cmd.addArguments(getJavac().getCurrentCompilerArgs()); | ||||
@@ -172,7 +172,7 @@ public class Jikes extends DefaultCompilerAdapter { | |||||
* Jikes has the nice feature to print error | * Jikes has the nice feature to print error | ||||
* messages in a form readable by emacs, so | * messages in a form readable by emacs, so | ||||
* that emacs can directly set the cursor | * that emacs can directly set the cursor | ||||
* to the place, where the error occured. | |||||
* to the place, where the error occurred. | |||||
*/ | */ | ||||
String emacsProperty = project.getProperty("build.compiler.emacs"); | String emacsProperty = project.getProperty("build.compiler.emacs"); | ||||
if (emacsProperty != null && Project.toBoolean(emacsProperty)) { | if (emacsProperty != null && Project.toBoolean(emacsProperty)) { | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* The Apache Software License, Version 1.1 | * The Apache Software License, Version 1.1 | ||||
* | * | ||||
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights | |||||
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights | |||||
* reserved. | * reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
@@ -111,7 +111,7 @@ public class Kjc extends DefaultCompilerAdapter { | |||||
protected Commandline setupKjcCommand() { | protected Commandline setupKjcCommand() { | ||||
Commandline cmd = new Commandline(); | Commandline cmd = new Commandline(); | ||||
// generate classpath, because kjc does't support sourcepath. | |||||
// generate classpath, because kjc doesn't support sourcepath. | |||||
Path classpath = getCompileClasspath(); | Path classpath = getCompileClasspath(); | ||||
if (deprecation == true) { | if (deprecation == true) { | ||||
@@ -253,7 +253,7 @@ public abstract class ConditionBase extends ProjectComponent { | |||||
} | } | ||||
/** | /** | ||||
* Add an arbitary condition | |||||
* Add an arbitrary condition | |||||
* @param c a condition | * @param c a condition | ||||
* @since Ant 1.6 | * @since Ant 1.6 | ||||
*/ | */ | ||||
@@ -98,7 +98,7 @@ public class Equals implements Condition { | |||||
/** | /** | ||||
* Should the comparison be case sensitive? | * Should the comparison be case sensitive? | ||||
* @param b if true use a case sensitive comparision (this is the | |||||
* @param b if true use a case sensitive comparison (this is the | |||||
* default) | * default) | ||||
* @since Ant 1.5 | * @since Ant 1.5 | ||||
*/ | */ | ||||