Methods Summary |
---|
public void | addExtension(ExtensionAdapter extensionAdapter)Adds an extension that this library requires.
extensions.add(extensionAdapter);
|
public void | addFileset(org.apache.tools.ant.types.FileSet fileSet)Adds a set of files about which extensions data will be extracted.
extensionsFilesets.add(fileSet);
|
public void | addLibfileset(LibFileSet fileSet)Adds a set of files about which extensions data will be extracted.
extensionsFilesets.add(fileSet);
|
public void | setRefid(org.apache.tools.ant.types.Reference reference)Makes this instance in effect a reference to another ExtensionSet
instance.
You must not set another attribute or nest elements inside
this element if you make it a reference.
if (!extensions.isEmpty() || !extensionsFilesets.isEmpty()) {
throw tooManyAttributes();
}
// change this to get the objects from the other reference
final Object object =
reference.getReferencedObject(getProject());
if (object instanceof ExtensionSet) {
final ExtensionSet other = (ExtensionSet) object;
extensions.addAll(other.extensions);
extensionsFilesets.addAll(other.extensionsFilesets);
} else {
final String message =
reference.getRefId() + " doesn\'t refer to a ExtensionSet";
throw new BuildException(message);
}
super.setRefid(reference);
|
public Extension[] | toExtensions(org.apache.tools.ant.Project proj)Extract a set of Extension objects from the ExtensionSet.
final ArrayList extensionsList = ExtensionUtil.toExtensions(extensions);
ExtensionUtil.extractExtensions(proj, extensionsList, extensionsFilesets);
return (Extension[]) extensionsList.toArray(new Extension[extensionsList.size()]);
|
public java.lang.String | toString()
return "ExtensionSet" + Arrays.asList(toExtensions(getProject()));
|