Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

How to append to target file name in apply with mapper.

Raja Nagendra Kumar

2008-02-20


Author LoginPost Reply

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

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.