Permits a module to register special additional JARs (or directories)
to be added to Ant's primary classpath by default.
This should only be used to supply libraries needed by
standard "optional" tasks that ship with Ant - e.g. 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>
since: org.apache.tools.ant.module/3 3.8 author: Jesse Glick |