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:
Cloneable
- Direct Known Subclasses:
ImplementationSpecificArgument
- Enclosing class:
Commandline
Used for nested xml command line definitions.
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(Commandline.Argument other) Copies settings from a different argument.String[]
getParts()
Return the constituent parts of this Argument.void
Set a single commandline argument to the absolute filename of the given file.void
Set the line to split into several commandline arguments.void
Set a single commandline argument and treats it like a PATH--ensuring the right separator for the local platform is used.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.void
Set the prefix to be placed in front of every part of the argument.void
Set the suffix to be placed at the end of every part of the argument.void
Set a single commandline argument.Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
Argument
public Argument()
-
-
Method Details
-
setValue
Set a single commandline argument.- Parameters:
value
- a single commandline argument.
-
setLine
Set the line to split into several commandline arguments.- Parameters:
line
- line to split into several commandline arguments.
-
setPath
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.
-
setPathref
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.
-
setFile
Set a single commandline argument to the absolute filename of the given file.- Parameters:
value
- a single commandline argument.
-
setPrefix
Set the prefix to be placed in front of every part of the argument.- Parameters:
prefix
- fixed prefix string.- Since:
- Ant 1.8.0
-
setSuffix
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
-
copyFrom
Copies settings from a different argument.- Parameters:
other
- the argument to copy setting from- Since:
- Ant 1.10.6
-
getParts
Return the constituent parts of this Argument.- Returns:
- an array of strings.
-