ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary.Kr...@walgreens.com
Subject Using target properties in tasks
Date Thu, 11 Sep 2008 21:51:07 GMT
Is it possible to use the name of the target in the tasks for that target?

Below is an example of what I would like to do.  The first target spells 
everything out, but since I have named the target the same as the 
directory I want to work on I want to make that a part of the tasks. 

        <target name="WHSWMAIN">
 
                <copy todir="${destdir}\WHSWMAIN">
                        <fileset dir="${srcdir}\WHSWMAIN\Target"/>
                </copy>
        </target>

        <target name="WHSWEGRT">
 
                <copy todir="${destdir}\${target.name}">
                        <fileset dir="${srcdir}\${target.name}\Target"/>
                </copy>
        </target>


Thanks,

Gary Krone
Senior Programmer/Analyst

AC006299
EAMUS CATULI
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message