ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Poupaert" <erik.poupa...@chello.be>
Subject apply task target file
Date Mon, 16 Dec 2002 22:08:18 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message