Compiling multiple --resource files
Øyvind Harboe
oyvind.harboe@zylin.com
Fri Nov 7 09:13:00 GMT 2003
I'm trying to put together something that can take .jar files and
compile non-class files with the --resource option.
Does anyone have have a piece of ant that can do the trick?
Other tips?
The feeble beginnings of something that could do this is below, but I'm
beginning to think that Ant isn't the way to go. Or at least an ant task
is in order.
<target name="foo" >
<apply failonerror='true' executable="${gcc}/gcj.exe"
parallel="false" dest='${output}/'>
"..\extractddir" is where the .jar was extracted
<fileset dir='..\extracteddir' excludes='**/*.class'/>
<arg value='-c'/>
<arg value='--resource'/>
what to put here??
<arg value='xxx'/>
<arg value='-o'/>
<targetfile/>
<srcfile/>
this is broken for files in the root of the jar
<mapper type="regexp" from="^.*\\(.*)$$" to="1円.o"/>
</apply>
</target>
More information about the Java
mailing list