Gert, Exactly what I needed. Works as I had intended.
Thanks, Ken Parrish Gert Driesen wrote: > Ken, > > You need to use a "wild" target: > http://nant.sourceforge.net/release/latest/help/fundamentals/targets.html > > For example: > > <project name="test" default="rebuild"> > <target name="*"> > <nant target="${target::get-current-target()}"> > <buildfiles> > <include name="*/default.build" /> > <exclude name="default.build" /> > </buildfiles> > </nant> > </target> > </project> > > Hope this helps, > > Gert > ________________________________ > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ken Parrish > Sent: donderdag 21 februari 2008 17:32 > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] Command line target name ... > > > I am trying to construct a 'master' build script, and example of which is > below. > > <?xml version="1.0"?> > <project name="MyMasterBuildScript" default="default" basedir="."> > <nant > buildfile="MyProject/MyBuildScript.build" > target="${target::get-current-target()}" > inheritall="true" > failonerror="false" /> > </project> > > If I execute these script with the following command line: > > nant build > > I would like the subordinate <nant> task to be executed and supplied the > target what is on the command line, in this case 'build'. > > Doesn't work. I get an error indicating that there is no a 'current' build > target. > > How do I fetch the target specified on the command line and pass it to the > <nant> task? > > Ken Parrish > Gomez, Inc. > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users