ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nesbitt, Steve" <>
Subject apply behavior - values for srcfile and targetfile
Date Wed, 05 Sep 2001 00:36:10 GMT

Question of the day is - how does the apply task determine the values for
sourcefile and targetfile in Ant 1.3?

Here's a snippet of code:

        <apply executable="ln"
                failonerror="false" >
            <arg value="-s" />
            <fileset dir="${install.web-inf}" >
                <include name="*.tld" />
            <mapper type="flatten" />

My initial thought is that the value of srcfile is a directory structure
beginning at "${install.web-inf}"  - e.g if ${install.web-inf} is /foo and
/foo contains bar.tld then srcfile should set to bar.tld.

What I appear to be seeing however is srcfile set to /foo/bar.tld - i.e. the
full path.

Is this correct behavior? Or what am I missing?


Steve Nesbitt
Configuration Manager
The Cobalt Group, Inc.
2200 First Avenue South
Seattle, WA 98134 
If it's automotive and it's Internet, it's Cobalt. 

View raw message