Well, your nant task is not in a target, so there is no current target.

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ken
Parrish
Sent: Thursday, February 21, 2008 11:32 AM
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

Reply via email to