ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <>
Subject How to append to target file name in apply with mapper.
Date Wed, 20 Feb 2008 10:02:27 GMT


I want to use apply with a different destination directory and target file
name. To this regard could any tell me how to access the targetfile and
source file as property after the following mapping happen

	    <mapper type="glob" from="*.aidl" to="*.java"/>

e.g if a.exe takes src and dst file then I would like to have some thing
like this

<apply executable="a.exe">	     
	    <fileset dir="${android-aidls}">
		<include name="**/*.aidl"/>
	    <mapper type="glob" from="*.aidl" to="*.java"/>
	    <arg line="-I${android-aidls}"/>
${dest}/${glob.targetfile} etc..

I am aware of using <targetfile> to the mapped value however I need to
prefix some other dest directory to the targetfile as this help the exe to
use another directory as dest.

Raja Nagendra Kumar,

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message