This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling multiple --resource files


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>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]