vardars / ci-factory

Automatically exported from code.google.com/p/ci-factory
1 stars 2 forks source link

nant empty option #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. >nant -D:OPTION1=
CI Factory 1.0.0.76
http://www.cifactory.org

Invalid value 'OPTION1=' for command-line argument '-D'.
    Expected name/value pair (<name>=<value>).

Try 'nant -help' for more information

What is the expected output? What do you see instead?
>NAnt.exe -D:OPTION1=
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Documents and Settings/Administrator.CL/Desktop/Copy of bi
n/Copy of bin/test.build
Target framework: Microsoft .NET Framework 2.0

BUILD SUCCEEDED

Total time: 0 seconds.

What version of the product are you using? On what operating system?
Both 1.0 and latest branch are got the same error on window server 2003.

Please provide any additional information below.

Dear aLL,

I noticed that the nant in the CI project have some empty option issue compared 
to the nant in sourceforge.

For example, in the CI-factory

C:\Documents and Settings\Administrator.CL\Desktop\1.0>nant
CI Factory 1.0.0.76
http://www.cifactory.org

Buildfile: file:///C:/Documents and Settings/Administrator.CL/Desktop/1.0/test.b
uild
Target framework: Microsoft .NET Framework 2.0

BUILD SUCCEEDED

Total time: 0 seconds.

C:\Documents and Settings\Administrator.CL\Desktop\1.0>nant -D:OPTION1=
CI Factory 1.0.0.76
http://www.cifactory.org

Invalid value 'OPTION1=' for command-line argument '-D'.
    Expected name/value pair (<name>=<value>).

Try 'nant -help' for more information

============================
But in the normal nant, empty option will not raise error.

C:\Program Files\NAnt-Gui\bin>nant
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

BUILD FAILED

Could not find a '*.build' file in 'C:\Program Files\NAnt-Gui\bin'

For more information regarding the cause of the build failure, run the build aga
in in debug mode.

Try 'nant -help' for more information

C:\Program Files\NAnt-Gui\bin>nant -D:OPTION1=
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Documents and Settings/Administrator.CL/Desktop/Copy of bi
n/Copy of bin/test.build
Target framework: Microsoft .NET Framework 2.0

BUILD SUCCEEDED

Total time: 0 seconds.

Would that be fixed in your recently build?  Many thanks.

Best Regards,
Dan

Original issue reported on code.google.com by ideall...@gmail.com on 25 May 2011 at 9:39