Browse Source

-breakiterator fixes by Jack Woehr

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276313 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
5ee9f7e6b5
27 changed files with 79 additions and 74 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/AntTypeDefinition.java
  2. +2
    -2
      src/main/org/apache/tools/ant/ComponentHelper.java
  3. +3
    -3
      src/main/org/apache/tools/ant/PropertyHelper.java
  4. +1
    -1
      src/main/org/apache/tools/ant/filters/EscapeUnicode.java
  5. +2
    -2
      src/main/org/apache/tools/ant/helper/ProjectHelper2.java
  6. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java
  7. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/ExecTask.java
  8. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java
  9. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/Redirector.java
  10. +8
    -6
      src/main/org/apache/tools/ant/taskdefs/SubAnt.java
  11. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Tar.java
  12. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
  13. +5
    -5
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java
  14. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetDefine.java
  15. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetResource.java
  16. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ildasm.java
  17. +7
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/ImportTypelib.java
  18. +1
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java
  19. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
  20. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
  21. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Labelsync.java
  22. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/starteam/TreeBasedTask.java
  23. +1
    -1
      src/main/org/apache/tools/ant/types/Assertions.java
  24. +2
    -2
      src/main/org/apache/tools/ant/types/Commandline.java
  25. +4
    -4
      src/main/org/apache/tools/ant/types/CommandlineJava.java
  26. +9
    -9
      src/main/org/apache/tools/ant/util/ClasspathUtils.java
  27. +6
    -6
      src/main/org/apache/tools/zip/ZipOutputStream.java

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

@@ -215,7 +215,7 @@ public class AntTypeDefinition {
}

/**
* check if the attributes are correct
* Checks if the attributes are correct.
* <dl>
* <li>if the class can be created.</li>
* <li>if an adapter class can be created</li>


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

@@ -235,9 +235,9 @@ public class ComponentHelper {
}

/**
* Initialization code - implementing the original ant component
* This method is initialization code implementing the original ant component
* loading from /org/apache/tools/ant/taskdefs/default.properties
* and .../types/default.properties
* and /org/apache/tools/ant/types/default.properties.
*/
public void initDefaultDefinitions() {
initTasks();


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

@@ -169,9 +169,9 @@ public class PropertyHelper {
/** Get a property. If all hooks return null, the default
* tables will be used.
*
* @param ns
* @param name
* @return
* @param ns namespace of the sought property
* @param name name of the sought property
* @return The property, if returned by a hook, or null if none.
*/
public Object getPropertyHook(String ns, String name, boolean user) {
if (getNext() != null) {


+ 1
- 1
src/main/org/apache/tools/ant/filters/EscapeUnicode.java View File

@@ -20,7 +20,7 @@ import java.io.IOException;
import java.io.Reader;

/**
* Converts non latin characters to unicode escapes
* This method converts non-latin characters to unicode escapes.
* Useful to load properties containing non latin
* Example:
*


+ 2
- 2
src/main/org/apache/tools/ant/helper/ProjectHelper2.java View File

@@ -317,8 +317,8 @@ public class ProjectHelper2 extends ProjectHelper {
}

/**
* Called when this element and all elements nested into it have been
* handled (i.e. at the </end_tag_of_the_element> ).
* This method is called when this element and all elements nested into it have been
* handled. I.e., this happens at the &lt;/end_tag_of_the_element&gt;.
* @param uri the namespace uri for this element
* @param tag the element name
* @param context the current context


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

@@ -599,7 +599,7 @@ public abstract class AbstractCvsTask extends Task {
}

/**
* add a command line argument to an external command
* This method adds a command line argument to an external command.
*
* I do not understand what this method does in this class ???
* particularly not why it is public ????


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

@@ -357,9 +357,9 @@ public class ExecTask extends Task {


/**
* Attempt to figure out where the executable is so that we can feed
* the full path - first try basedir, then the exec dir and then
* fallback to the straight executable name (i.e. on ther path)
* The method attempts to figure out where the executable is so that we can feed
* the full path. We first try basedir, then the exec dir, and then
* fallback to the straight executable name (i.e. on ther path).
*
* @param exec the name of the executable
* @param searchPath if true, the excutable will be looked up in


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

@@ -41,7 +41,7 @@ public class PumpStreamHandler implements ExecuteStreamHandler {
* Construct a new <CODE>PumpStreamHandler</CODE>.
* @param out the output <CODE>OutputStream</CODE>.
* @param err the error <CODE>OutputStream</CODE>.
* @param in the input <CODE>InputStream</CODE>.
* @param input the input <CODE>InputStream</CODE>.
*/
public PumpStreamHandler(OutputStream out, OutputStream err,
InputStream input) {


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

@@ -360,7 +360,7 @@ public class Redirector {
/**
* Set the input <CODE>FilterChain</CODE>s.
*
* @param <CODE>Vector</CODE> containing <CODE>FilterChain</CODE>.
* @param inputFilterChains <CODE>Vector</CODE> containing <CODE>FilterChain</CODE>.
*/
public synchronized void setInputFilterChains(Vector inputFilterChains) {
this.inputFilterChains = inputFilterChains;
@@ -369,7 +369,7 @@ public class Redirector {
/**
* Set the output <CODE>FilterChain</CODE>s.
*
* @param <CODE>Vector</CODE> containing <CODE>FilterChain</CODE>.
* @param outputFilterChains <CODE>Vector</CODE> containing <CODE>FilterChain</CODE>.
*/
public void setOutputFilterChains(Vector outputFilterChains) {
this.outputFilterChains = outputFilterChains;
@@ -378,7 +378,7 @@ public class Redirector {
/**
* Set the error <CODE>FilterChain</CODE>s.
*
* @param <CODE>Vector</CODE> containing <CODE>FilterChain</CODE>.
* @param errorFilterChains <CODE>Vector</CODE> containing <CODE>FilterChain</CODE>.
*/
public void setErrorFilterChains(Vector errorFilterChains) {
this.errorFilterChains = errorFilterChains;


+ 8
- 6
src/main/org/apache/tools/ant/taskdefs/SubAnt.java View File

@@ -197,9 +197,10 @@ public class SubAnt
}

/**
* Build file name, to use in conjunction with directories.<br/>
* Defaults to "build.xml".<br/>
* If <code>genericantfile</code> is set, this attribute is ignored.
* This method builds the file name to use in conjunction with directories.
*
* <p>Defaults to "build.xml".
* If <code>genericantfile</code> is set, this attribute is ignored.</p>
*
* @param antfile the short build file name. Defaults to "build.xml".
*/
@@ -208,9 +209,10 @@ public class SubAnt
}

/**
* Build file path, to use in conjunction with directories.<br/>
* Use <code>genericantfile</code>, in order to run the same build file
* with different basedirs.<br/>
* This method builds a file path to use in conjunction with directories.
*
* <p>Use <code>genericantfile</code>, in order to run the same build file
* with different basedirs.</p>
* If this attribute is set, <code>antfile</code> is ignored.
*
* @param afile (path of the generic ant file, absolute or relative to


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

@@ -540,7 +540,7 @@ public class Tar extends MatchingTask {
/**
* The uid for the tar entry
* This is not the same as the User name.
* @param userName the user name for the tar entry.
* @param uid the id of the user for the tar entry.
*/
public void setUid(int uid) {
this.uid = uid;
@@ -572,7 +572,7 @@ public class Tar extends MatchingTask {
/**
* The GID for the tar entry; optional, default="0"
* This is not the same as the group name.
* @param groupName the group name string.
* @param gid the group id.
*/
public void setGid(int gid) {
this.gid = gid;


+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java View File

@@ -361,7 +361,7 @@ public class CSharp extends DotnetCompile {
// end execute

/**
* how does C# separate references? with a semi colon
* Returns the delimiter which C# uses to separate references, i.e., a semi colon.
*/
public String getReferenceDelimiter() {
return ";";
@@ -369,8 +369,8 @@ public class CSharp extends DotnetCompile {


/**
* extension is '.cs'
* @return
* This method indicates the filename extension for C# files.
* @return the file extension for C#, i.e., "cs" (without the dot).
*/
public String getFileExtension() {
return "cs";


+ 5
- 5
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java View File

@@ -711,8 +711,8 @@ public abstract class DotnetCompile
}

/**
* what is the executable?
* @return
* This method gets the name of the executable.
* @return the name of the executable
*/
protected String getExecutable() {
return executable;
@@ -764,7 +764,7 @@ public abstract class DotnetCompile

/**
* getter for flag
* @return
* @return The flag indicating whether the compilation is using a response file.
*/
public boolean isUseResponseFile() {
return useResponseFile;
@@ -922,8 +922,8 @@ public abstract class DotnetCompile
protected abstract void addCompilerSpecificOptions(NetCommand command);

/**
* override point for delimiting definitions
* @return
* override point for delimiting definitions.
* @return The definitions limiter, i.e., ";"
*/
public String getDefinitionsDelimiter() {
return ";";


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetDefine.java View File

@@ -62,10 +62,10 @@ public class DotnetDefine {
}

/**
* get the value of this definition. Will be null if a condition
* This method gets the value of this definition. Will be null if a condition
* was declared and not met
* @param owner owning task
* @return
* @return The value of the definition.
* @throws BuildException
*/
public String getValue(Task owner) throws BuildException {


+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetResource.java View File

@@ -98,7 +98,7 @@ public class DotnetResource {

/**
* build the C# style parameter (which has no public/private option)
* @return
* @return the built C# style parameter
*/
public String getCSharpStyleParameter() {
StringBuffer buffer = new StringBuffer();
@@ -117,8 +117,8 @@ public class DotnetResource {
}

/**
* get the style of param used by VB and javascript
* @return
* This method gets the style of param used by VB and javascript
* @return The style VB parameter being used.
*/
public String getVbStyleParameter() {
StringBuffer buffer = new StringBuffer();


+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ildasm.java View File

@@ -280,7 +280,7 @@ public class Ildasm extends Task {
setSourceFile(sourceFile);
}
/**
* visibility options: one or more of the following, with + signs to
* This method sets the visibility options. It chooses one or more of the following, with + signs to
* concatenate them:
* <pre>
* pub : Public
@@ -425,9 +425,9 @@ public class Ildasm extends Task {
}

/**
* map from an encoding enum to an encoding option
* This method maps from an encoding enum to an encoding option.
* @param enumValue
* @return
* @return The encoding option indicated by the enum value.
*/
public static String getEncodingOption(String enumValue) {
if (UNICODE.equals(enumValue)) {


+ 7
- 3
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/ImportTypelib.java View File

@@ -76,7 +76,9 @@ public class ImportTypelib extends Task {
private String extraOptions = null;

/**
* name the output file. required
* This method names the output file.
*
* This is an operation which is required to have been performed.
* @param destFile
*/
public void setDestFile(File destFile) {
@@ -84,7 +86,8 @@ public class ImportTypelib extends Task {
}

/**
* what namespace is the typelib to be in. required
* This method sets what namespace the typelib is to be in.
* This is an operation which is required to have been performed.
* @param namespace
*/
public void setNamespace(String namespace) {
@@ -92,7 +95,8 @@ public class ImportTypelib extends Task {
}

/**
* what is the source .tlb file? required.
* This method sets which is the source .tlb file.
* This is an operation which is required to have been performed.
* @param srcFile
*/
public void setSrcFile(File srcFile) {


+ 1
- 2
src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java View File

@@ -292,8 +292,7 @@ public class IPlanetDeploymentTool extends GenericDeploymentTool {
*
* @param ejbFiles Hashtable of EJB class (and other) files to be added to
* the completed JAR file.
* @param baseName String name of the EJB JAR file to be written (without
* a filename extension).
* @param ddPrefix not used
*/
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix) {
ejbFiles.put(META_DIR + IAS_DD, new File(getConfig().descriptorDir,


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java View File

@@ -108,9 +108,9 @@ public final class Specification {
new Compatibility("REQUIRE_IMPLEMENTATION_CHANGE");

/**
* Enum indicating that extension is incompatible with
* This enum indicates that an extension is incompatible with
* other Package Specification in ways other than other enums
* indicate). ie For example the other Package Specification
* indicate. For example, the other Package Specification
* may have a different ID.
*/
public static final Compatibility INCOMPATIBLE =


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java View File

@@ -298,7 +298,7 @@ public class JspC extends MatchingTask {

/**
* Filename for web.xml.
* @return
* @return The filename for web.xml.
*/
public File getWebxml() {
return this.webxml;


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Labelsync.java View File

@@ -27,8 +27,8 @@ import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.StringUtils;

/**
* Syncs an existing Perforce label against the Perforce client
* or against a set of files/revisions
* This method syncs an existing Perforce label against the Perforce client
* or against a set of files/revisions.
*
*
* Example Usage:


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/starteam/TreeBasedTask.java View File

@@ -482,7 +482,7 @@ public abstract class TreeBasedTask extends StarTeamTask {
/**
* returns the label being used
*
* @return
* @return the label being used
*/
protected Label getLabelInUse() {
return this.labelInUse;


+ 1
- 1
src/main/org/apache/tools/ant/types/Assertions.java View File

@@ -277,7 +277,7 @@ public class Assertions extends DataType implements Cloneable {
/**
* create a full command string from this class
* @throws BuildException in case of trouble
* @return
* @return The command string
*/
public String toCommand() {
//catch invalidness


+ 2
- 2
src/main/org/apache/tools/ant/types/Commandline.java View File

@@ -452,8 +452,8 @@ public class Commandline implements Cloneable {
}

/**
* a deep clone of the contained object.
* @return
* Generate a deep clone of the contained object.
* @return a clone of the contained object
*/
public Object clone() {
try {


+ 4
- 4
src/main/org/apache/tools/ant/types/CommandlineJava.java View File

@@ -115,9 +115,9 @@ public class CommandlineJava implements Cloneable {
}

/**
* get the size of the sysproperties instance. This merges all
* This method gets the size of the sysproperties instance. This merges all
* property sets, so is not an O(1) operation.
* @return
* @return the size of the sysproperties instance
*/
public int size() {
Properties p = mergePropertySets();
@@ -458,7 +458,7 @@ public class CommandlineJava implements Cloneable {

/**
* Get the VM command parameters, including memory settings
* @return
* @return the VM command parameters
*/
protected Commandline getActualVMCommand() {
Commandline actualVMCommand = (Commandline) vmCommand.clone();
@@ -557,7 +557,7 @@ public class CommandlineJava implements Cloneable {

/**
* get the system properties object
* @return
* @return The system properties object
*/
public SysProperties getSystemProperties() {
return sysProperties;


+ 9
- 9
src/main/org/apache/tools/ant/util/ClasspathUtils.java View File

@@ -78,7 +78,7 @@ public class ClasspathUtils {
*
* @param p
* @param ref
* @return
* @return The class loader
*/
public static ClassLoader getClassLoaderForPath(
Project p, Reference ref) {
@@ -98,7 +98,7 @@ public class ClasspathUtils {
* @param reverseLoader if set to true this new loader will take
* precedence over it's parent (which is contra the regular
* classloader behaviour)
* @return
* @return The class loader
*/
public static ClassLoader getClassLoaderForPath(
Project p, Reference ref, boolean reverseLoader) {
@@ -123,7 +123,7 @@ public class ClasspathUtils {
*
* @param path
* @param loaderId
* @return
* @return The class loader
*/
public static ClassLoader getClassLoaderForPath(
Project p, Path path, String loaderId) {
@@ -140,7 +140,7 @@ public class ClasspathUtils {
*
* @param path
* @param loaderId
* @return
* @return The class loader
*/
public static ClassLoader getClassLoaderForPath(
Project p, Path path, String loaderId, boolean reverseLoader) {
@@ -199,7 +199,7 @@ public class ClasspathUtils {
* property and should be used with caution.</p>
* @param path the classpath for this loader
* @param reverseLoader
* @return
* @return The fresh, different, not used before class loader.
*/
public static ClassLoader getUniqueClassLoaderForPath(
Project p,
@@ -225,7 +225,7 @@ public class ClasspathUtils {
*
* @param className the full qualified class name to load.
* @param userDefinedLoader the classloader to use.
* @return
* @return The fresh object instance
* @throws BuildException when loading or instantiation failed.
*/
public static Object newInstance(
@@ -312,7 +312,7 @@ public class ClasspathUtils {
}

/**
* Delegate method handling the @classpath attribute
* This method is a Delegate method handling the @classpath attribute.
*
* <p>This attribute can set a path to add to the classpath</p>
*
@@ -332,7 +332,7 @@ public class ClasspathUtils {
* <p>This nested path-like structure can set a path to add to the
* classpath</p>
*
* @return
* @return the created path
*/
public Path createClasspath() {
if (this.classpath == null) {
@@ -396,7 +396,7 @@ public class ClasspathUtils {

/**
* Finds or creates the classloader for this
* @return
* @return The class loader
*/
public ClassLoader getClassLoader() {
ClassLoader cl;


+ 6
- 6
src/main/org/apache/tools/zip/ZipOutputStream.java View File

@@ -155,7 +155,7 @@ public class ZipOutputStream extends FilterOutputStream {
private static final byte[] LZERO = {0, 0, 0, 0};

/**
* Holds the offsets of the LFH starts for each entry
* Holds the offsets of the LFH starts for each entry.
*
* @since 1.1
*/
@@ -173,7 +173,7 @@ public class ZipOutputStream extends FilterOutputStream {
private String encoding = null;

/**
* Deflater object for output
* This Deflater object is used for output.
*
* <p>This attribute is only protected to provide a level of API
* backwards compatibility. This class used to extend {@link
@@ -185,7 +185,7 @@ public class ZipOutputStream extends FilterOutputStream {
protected Deflater def = new Deflater(Deflater.DEFAULT_COMPRESSION, true);

/**
* Deflater buffer
* This buffer servers as a Deflater.
*
* <p>This attribute is only protected to provide a level of API
* backwards compatibility. This class used to extend {@link
@@ -197,7 +197,7 @@ public class ZipOutputStream extends FilterOutputStream {
protected byte[] buf = new byte[512];

/**
* Optional random access output
* Optional random access output.
*
* @since 1.14
*/
@@ -252,8 +252,8 @@ public class ZipOutputStream extends FilterOutputStream {
}

/**
* Is this archive writing to a seekable stream (i.e. a random
* access file)?
* This method indicates whether this archive is writing to a seekable stream (i.e., to a random
* access file).
*
* <p>For seekable streams, you don't need to calculate the CRC or
* uncompressed size for {@link #STORED STORED} entries before


Loading…
Cancel
Save