org.apache.tools.ant.types

Class Commandline.Argument

public static class Commandline.Argument extends ProjectComponent

Used for nested xml command line definitions.
Method Summary
String[]getParts()
Return the constituent parts of this Argument.
voidsetFile(File value)
Set a single commandline argument to the absolute filename of the given file.
voidsetLine(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(String prefix)
Set the prefix to be placed in front of every part of the argument.
voidsetSuffix(String suffix)
Set the suffix to be placed at the end of every part of the argument.
voidsetValue(String value)
Set a single commandline argument.

Method Detail

getParts

public String[] getParts()
Return the constituent parts of this Argument.

Returns: an array of strings.

setFile

public void setFile(File value)
Set a single commandline argument to the absolute filename of the given file.

Parameters: value a single commandline argument.

setLine

public void setLine(String line)
Set the line to split into several commandline arguments.

Parameters: line line to split into several commandline arguments.

setPath

public 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.

setPathref

public 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.

setPrefix

public void setPrefix(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

setSuffix

public void setSuffix(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

setValue

public void setValue(String value)
Set a single commandline argument.

Parameters: value a single commandline argument.