Maybe it is a RC3 thing?  Seems to work fine on my build.
 
C:\>"C:\Program Files\nant\bin\NAnt.exe" -f:test.build junk
NAnt 0.85 (Build 0.85.1869.0; rc2; 2/12/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
 
Buildfile: file:///C:/test.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: junk
 
junk:
     [echo] this is not the default
BUILD SUCCEEDED
Total time: 0 seconds.
 

C:\>"C:\Program Files\nant\bin\NAnt.exe" -f:test.build test
NAnt 0.85 (Build 0.85.1869.0; rc2; 2/12/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
 
Buildfile: file:///C:/test.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: test
 
test:
     [echo] this is the default
BUILD SUCCEEDED
Total time: 0 seconds.
 
C:\>"C:\Program Files\nant\bin\NAnt.exe" -f:test.build
NAnt 0.85 (Build 0.85.1869.0; rc2; 2/12/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
 
Buildfile: file:///C:/test.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: test
 
test:
     [echo] this is the default
BUILD SUCCEEDED
Total time: 0 seconds.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of david m. chinn
Sent: Thursday, October 13, 2005 11:20 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] target execution probiem

This may be a newbie problem, but I am unable to specify the build target on the command line to nant.

 

Here is the build file:

 

<project name="test" default="test">

             <target name="junk">

                         <echo message="this is not the default" />

             </target>

             <target name="test">

                         <echo message="this is the default" />

             </target>

 </project>

 

‘nant’…. Runs the test target, as expected

‘nant junk’… also runs the test target!!

 

Running 0.85, rc3.

 

Thanks in advance.

Reply via email to