You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Raja Nagendra Kumar <Na...@tejasoft.com> on 2008/02/20 11:02:27 UTC
How to append to target file name in apply with mapper.
Hi,
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"/>
</fileset>
<mapper type="glob" from="*.aidl" to="*.java"/>
<arg line="-I${android-aidls}"/>
<srcfile/>
${dest}/${glob.targetfile} etc..
</apply>
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.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
--
View this message in context: http://www.nabble.com/How-to-append-to-target-file-name-in-apply-with-mapper.-tp15585812p15585812.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org