i trying implement alternative ant type works zipgroupfileset accepts classpath-like string input.
my problem is: when downloading source of apache ant, cannot find code or implementation-specific info it, no typedef , no extended class. zipgroupfileset doesn't seem documented. main documentation type seems short paragraph in zip task documentation:
zipgroupfileset
a zipgroupfileset allows multiple zip files merged archive. each file found in fileset added archive same way zipfileset src files added.
zipgroupfileset fileset , supports of attributes , nested elements.
where mistake?
i need evaluate variable
libs/a.jar;libs/b.jar;bin/c.jar, include contents new jar using<jar>task
you can using <archives> resource collection type, available since ant 1.8
<property name="jars.to.include" value="libs/a.jar;libs/b.jar;bin/c.jar" /> <jar destfile="dest.jar"> <archives> <zips> <path path="${jars.to.include}" /> </zips> </archives> </jar> regarding zipgroupfileset itself:
i cannot find code or implementation-specific info it, no typedef , no extended class.
there no specific class represents zipgroupfileset, logic embedded in zip task implementation. zip task has a
public void addzipgroupfileset(fileset set) so tag <zipgroupfileset> in xml treated defining normal fileset - legally do
<fileset id="lib.jars" dir="lib" includes="*.jar" /> <jar destfile="dest.jar"> <zipgroupfileset refid="lib.jars" /> </jar> when zip (or jar) task executed, each "group" fileset examined in turn , each zip/jar file set contains new zipfileset generated read file, , contents of generated zipfileset added destination archive.
Comments
Post a Comment