This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Compiling multiple --resource files
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 07 Nov 2003 10:13:40 +0100
- Subject: Compiling multiple --resource files
- Organization: Zylin AS
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>