net.sf.antcontrib.cpptasks.types

Class CommandLineArgument

public class CommandLineArgument extends Object

An compiler/linker command line flag.
Nested Class Summary
static classCommandLineArgument.LocationEnum
Enumerated attribute with the values "start", "mid" and "end",
Constructor Summary
CommandLineArgument()
Method Summary
intgetLocation()
StringgetValue()
booleanisActive(Project p)
Returns true if the define's if and unless conditions (if any) are satisfied.
voidsetIf(String propName)
Sets the property name for the 'if' condition.
voidsetLocation(CommandLineArgument.LocationEnum location)
Specifies relative location of argument on command line.
voidsetUnless(String propName)
Set the property name for the 'unless' condition.
voidsetValue(String value)
Specifies the string that should appear on the command line.

Constructor Detail

CommandLineArgument

public CommandLineArgument()

Method Detail

getLocation

public int getLocation()

getValue

public String getValue()

isActive

public boolean isActive(Project p)
Returns true if the define's if and unless conditions (if any) are satisfied.

setIf

public void setIf(String propName)
Sets the property name for the 'if' condition. The argument will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated.

setLocation

public void setLocation(CommandLineArgument.LocationEnum location)
Specifies relative location of argument on command line. "start" will place argument at start of command line, "mid" will place argument after all "start" arguments but before filenames, "end" will place argument after filenames.

setUnless

public void setUnless(String propName)
Set the property name for the 'unless' condition. If named property is set, the argument will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated.

Parameters: propName name of property

setValue

public void setValue(String value)
Specifies the string that should appear on the command line. The argument will be quoted if it contains embedded blanks. Use multiple arguments to avoid quoting.
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.