org.apache.tools.ant.util.facade
Class FacadeTaskHelper
java.lang.Object
org.apache.tools.ant.util.facade.FacadeTaskHelper
public class FacadeTaskHelper
extends java.lang.Object
Helper class for facade implementations - encapsulates treatment of
explicit implementation choices, magic properties and
implementation specific command line arguments.
- Ant 1.5
FacadeTaskHelper
public FacadeTaskHelper(String defaultValue)
defaultValue
- The default value for the implementation.
Must not be null.
FacadeTaskHelper
public FacadeTaskHelper(String defaultValue,
String magicValue)
defaultValue
- The default value for the implementation.
Must not be null.magicValue
- the value of a magic property that may hold a user.
choice. May be null.
getArgs
public String[] getArgs()
Retrieves the command line arguments enabled for the current
facade implementation.
- an array of command line arguements.
getExplicitChoice
public String getExplicitChoice()
Retrieves the explicit user choice.
- the explicit user choice.
getImplementation
public String getImplementation()
Retrieves the implementation.
- the implementation.
hasBeenSet
public boolean hasBeenSet()
Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.
- true if magic or user choice has be set.
- Ant 1.5.2
setImplementation
public void setImplementation(String userChoice)
Used for explicit user choices.
userChoice
- the explicitly chosen implementation.
setMagicValue
public void setMagicValue(String magicValue)
Used to set the value of the magic property.
magicValue
- the value of a magic property that may hold a user.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.