FileDocCategorySizeDatePackage
ImplementationSpecificArgument.javaAPI DocApache Ant 1.702089Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.util.facade

ImplementationSpecificArgument

public class ImplementationSpecificArgument extends Commandline.Argument
Extension of Commandline.Argument with a new attribute that choses a specific implementation of the facade.
since
Ant 1.5

Fields Summary
private String
impl
Constructors Summary
public ImplementationSpecificArgument()
Constructor for ImplementationSpecificArgument.

        super();
    
Methods Summary
public final java.lang.String[]getParts(java.lang.String chosenImpl)
Return the parts this Argument consists of, if the implementation matches the chosen implementation.

see
org.apache.tools.ant.types.Commandline.Argument#getParts()
param
chosenImpl the implementation to check against.
return
the parts if the implemention matches or an zero length array if not.

        if (impl == null || impl.equals(chosenImpl)) {
            return super.getParts();
        } else {
            return new String[0];
        }
    
public voidsetImplementation(java.lang.String impl)
Set the implementation this argument is for.

param
impl the implementation this command line argument is for.

        this.impl = impl;