Hi all,
is there a built-in property that contains the name
of the current target? In my projects, I use to
generate "gateway build files" like this:
<project
name="myProject"
default="recurse">
<target
name="recurse"
description="Builds recursively all subprojects">
<foreach
item="Folder"
property="foldername">
<in>
<items>
<includes name="*"/>
<excludes name="CVS"/>
</items>
</in>
<do>
<nant
buildfile="${foldername}/default.build"
target="${project.config} ${target}"/>
</do>
</foreach>
</target>
</project>
The purpose of such a build file is just to forward
a target from a build file in the parent directory to
the build files in all of the children directories.
To implement that, I define a property named "target"
in the parent build file that contains the name of
the target to execute...
I think it would be nice to have a built-in property
named nant.current.target that contains the name of
the executing target.
What's your opinion?
j3d.
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 91 604 67 65
mobile: +41 76 390 60 32
email: [EMAIL PROTECTED]
web: www.agamura.com
----------------------------------------
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers