Package org.apache.tools.ant.util.facade
Class FacadeTaskHelper
java.lang.Object
org.apache.tools.ant.util.facade.FacadeTaskHelper
Helper class for facade implementations - encapsulates treatment of
 explicit implementation choices, magic properties and
 implementation specific command line arguments.
- Since:
- Ant 1.5
- 
Constructor SummaryConstructorsConstructorDescriptionFacadeTaskHelper(String defaultValue) FacadeTaskHelper(String defaultValue, String magicValue) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidCommand line argument.String[]getArgs()Retrieves the command line arguments enabled for the current facade implementation.Retrieves the explicit user choice.Retrieves the implementation.getImplementationClasspath(Project project) The classpath to use when loading the implementation.booleanTests whether the implementation has been chosen by the user (either via a magic property or explicitly.voidsetImplementation(String userChoice) Used for explicit user choices.voidsetMagicValue(String magicValue) Used to set the value of the magic property.
- 
Constructor Details- 
FacadeTaskHelper- Parameters:
- defaultValue- The default value for the implementation. Must not be null.
 
- 
FacadeTaskHelper
 
- 
- 
Method Details- 
setMagicValueUsed to set the value of the magic property.- Parameters:
- magicValue- the value of a magic property that may hold a user.
 
- 
setImplementationUsed for explicit user choices.- Parameters:
- userChoice- the explicitly chosen implementation.
 
- 
getImplementation
- 
getExplicitChoiceRetrieves the explicit user choice.- Returns:
- the explicit user choice.
 
- 
addImplementationArgumentCommand line argument.- Parameters:
- arg- an argument to add.
 
- 
getArgsRetrieves the command line arguments enabled for the current facade implementation.- Returns:
- an array of command line arguments.
 
- 
hasBeenSetpublic boolean hasBeenSet()Tests whether the implementation has been chosen by the user (either via a magic property or explicitly.- Returns:
- true if magic or user choice has be set.
- Since:
- Ant 1.5.2
 
- 
getImplementationClasspath
 
-