Bugs item #1736526, was opened at 2007-06-13 10:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1736526&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Richard J Foster (richardjfoster)
Assigned to: Nobody/Anonymous (nobody)
Summary: Valid setting from command line not valid in response file

Initial Comment:
It is possible to put an item in a response file (the @<file> operation) which 
does not work, but the same setting does work from the command line.

Given the following build file:

<?xml version="1.0"?>
<project name="PropertyTest" default="test" basedir=".">
    <description>A test of the command file handling.</description>

        <target name="test">
                <echo message="Item = ${variable}"/>
        </target>
</project>

>From the command line, the following works as expected:

nant "-D:variable=Some Variable With Spaces"

I.e. the output reads as follows:

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

Buildfile: file:///D:/NextGenSvn/tools/nant/bin/test.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test


test:

     [echo] Item = Some Variable With Spaces

BUILD SUCCEEDED

Putting the same string ("-D:variable=Some Variable With Spaces") into a 
response file, and invoking Nant using nant @responsefile.txt, results in the 
following output:

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

Buildfile: file:///D:/NextGenSvn/tools/nant/bin/test.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: "-D:variable=Some Variable With Spaces"


BUILD FAILED

Target '"-D:variable=Some' does not exist in this project.

Total time: 0 seconds.

The expected result is that either mechanism to set the variable is valid.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1736526&group_id=31650

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to