Package org.apache.tools.ant.types
Class Commandline.Argument
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.types.Commandline.Argument
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 - Direct Known Subclasses:
- ImplementationSpecificArgument
 - Enclosing class:
- Commandline
 
 public static class Commandline.Argument extends ProjectComponent Used for nested xml command line definitions.
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Argument()
 - 
Method SummaryModifier and Type Method Description voidcopyFrom(Commandline.Argument other)Copies settings from a different argument.java.lang.String[]getParts()Return the constituent parts of this Argument.voidsetFile(java.io.File value)Set a single commandline argument to the absolute filename of the given file.voidsetLine(java.lang.String line)Set the line to split into several commandline arguments.voidsetPath(Path value)Set a single commandline argument and treats it like a PATH--ensuring the right separator for the local platform is used.voidsetPathref(Reference value)Set a single commandline argument from a reference to a path--ensuring the right separator for the local platform is used.voidsetPrefix(java.lang.String prefix)Set the prefix to be placed in front of every part of the argument.voidsetSuffix(java.lang.String suffix)Set the suffix to be placed at the end of every part of the argument.voidsetValue(java.lang.String value)Set a single commandline argument.- 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setValuepublic void setValue(java.lang.String value) Set a single commandline argument.- Parameters:
- value- a single commandline argument.
 
 - 
setLinepublic void setLine(java.lang.String line) Set the line to split into several commandline arguments.- Parameters:
- line- line to split into several commandline arguments.
 
 - 
setPathpublic void setPath(Path value) Set a single commandline argument and treats it like a PATH--ensuring the right separator for the local platform is used.- Parameters:
- value- a single commandline argument.
 
 - 
setPathrefpublic void setPathref(Reference value) Set a single commandline argument from a reference to a path--ensuring the right separator for the local platform is used.- Parameters:
- value- a single commandline argument.
 
 - 
setFilepublic void setFile(java.io.File value) Set a single commandline argument to the absolute filename of the given file.- Parameters:
- value- a single commandline argument.
 
 - 
setPrefixpublic void setPrefix(java.lang.String prefix) Set the prefix to be placed in front of every part of the argument.- Parameters:
- prefix- fixed prefix string.
- Since:
- Ant 1.8.0
 
 - 
setSuffixpublic void setSuffix(java.lang.String suffix) Set the suffix to be placed at the end of every part of the argument.- Parameters:
- suffix- fixed suffix string.
- Since:
- Ant 1.8.0
 
 - 
copyFrompublic void copyFrom(Commandline.Argument other) Copies settings from a different argument.- Parameters:
- other- the argument to copy setting from
- Since:
- Ant 1.10.6
 
 - 
getPartspublic java.lang.String[] getParts() Return the constituent parts of this Argument.- Returns:
- an array of strings.
 
 
- 
 
-