You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Erik Poupaert <er...@chello.be> on 2002/12/16 23:08:18 UTC
apply task target file
Hi
I've got this small problem with Ant.
The following runs properly:
<apply failonerror='true' executable='gcj' dest='res'>
<arg value='--resource/'/>
<arg value='XXXXXXX'/>
<arg value='-o'/>
<targetfile/>
<arg value='-c'/>
<srcfile/>
<fileset dir='localroot/'>
</fileset>
<mapper type='package' from='*.java' to='res/*.o'/>
</apply>
The results are:
gcj --resource XXXXXXX -o res/localroot.AARecords.java.o -c
localroot/AARecords.java
gcj --resource XXXXXXX -o res/localroot.AASqlFormatter.java.o -c
localroot/AASqlFormatter.java
But I actually need:
gcj --resource localroot.AARecords.java -o res/localroot.AARecords.java.o -c
localroot/AARecords.java
gcj --resource localroot.AASqlFormatter.java -o
res/localroot.AASqlFormatter.java.o -c localroot/AASqlFormatter.java
XXXXXXX should be a transformation from localroot/AARecords.java to
localroot.AARecords.java
Is it feasible?
By the way, is it possible to optionally log the transformation applied by
the Apply-task to some log file, to see what Ant attempts. That would help a
lot.
Greetings
Erik
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>