public interface AutomaticExtraClasspathProvider
junit.jar
as needed by the <junit>
task.
Register instances to default lookup.
Since version org.apache.tools.ant.module/3 3.26
there is a
way to register a library declaratively. Just put fragment like this into
your layer file:
<filesystem> <folder name="Services"> <folder name="Hidden"> <file name="org-your-lib-ant-registration.instance"> <attr name="instanceCreate" methodvalue="org.apache.tools.ant.module.spi.AutomaticExtraClasspath.url"/> <attr name="url" urlvalue="nbinst://org.your.module.name/modules/ext/org-your-lib.jar"/> <attr name="instanceOf" stringvalue="org.apache.tools.ant.module.spi.AutomaticExtraClasspathProvider"/> </file> </folder> </folder> </filesystem>
Modifier and Type | Method and Description |
---|---|
File[] |
getClasspathItems()
Return a (possibly empty) list of items to add to the
automatic classpath used by default when running Ant.
|
File[] getClasspathItems()
The user may be able to override this path, so there is no firm guarantee that the items will be available when Ant is run. However by default they will be.
InstalledFileLocator