ant-user mailing list archives

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

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


Mime
View raw message