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.
Version:
- 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.
getExplicitChoice
public String getExplicitChoice()
Retrieves the explicit user choice
getImplementation
public String getImplementation()
Retrieves the implementation.
hasBeenSet
public boolean hasBeenSet()
Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.
- Ant 1.5.2
setImplementation
public void setImplementation(String userChoice)
Used for explicit user choices.
setMagicValue
public void setMagicValue(String magicValue)
Used to set the value of the magic property.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.