FileDocCategorySizeDatePackage
Provider.javaAPI DocApache Ant 1.702056Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.types.spi

Provider

public class Provider extends org.apache.tools.ant.ProjectComponent
ANT Jar-Task SPI extension This class corresponds to the nested element <provider type="type"> in the <service type=""> nested element of the jar task.
see
http://issues.apache.org/bugzilla/show_bug.cgi?id=31520

Fields Summary
private String
type
Constructors Summary
Methods Summary
public voidcheck()
Check if the component has been configured correctly.

        if (type == null) {
            throw new BuildException(
                "classname attribute must be set for provider element",
                getLocation());
        }
        if (type.length() == 0) {
            throw new BuildException(
                "Invalid empty classname", getLocation());
        }
    
public java.lang.StringgetClassName()

return
the class name for

        return type;
    
public voidsetClassName(java.lang.String type)
Set the provider classname.

param
type the value to set.

        this.type = type;