Bugs item #1432746, was opened at 2006-02-16 10:13
Message generated for change (Settings changed) made by barnson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1432746&group_id=105970

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: None
Group: v2.0
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Leon Zandman (lzandman)
Assigned to: Rob Mensching (robmen)
>Summary: Attribute \"locfile\" of NAntTasks\'s LightTask needs quoting

Initial Comment:
I've found a bug in the LightTask of the WiX NAntTasks.
If you specify a "locfile" attribute in a LightTask and
set the value to a path containing spaces the build
will fail. This happens because the value of the
"locfile" attribute is injected wrongly into the
light.exe command-line. So if you specify the following
in your NAnt build file (only relevant portions included):

<light ... locfile="My Project\test.wxl" ... />

it will translate to:

light.exe -loc My Project\test.wxl ...

This will ofcourse fail, because "My Project" contains
a space character and Light will see "My" and
"Project\test.wxl" as two separate parameters. The -loc
value has to be quoted, like this:

light.exe -loc "My Project\test.wxl" ...

The solution is a minor change in "LightTask.cs". In
the WriteOptions() method the line:

writer.WriteLine("-loc {0}", this.LocFile);

has to be replaced by:

writer.WriteLine("-loc \"{0}\"", this.LocFile);


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1432746&group_id=105970

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to