Bugs item #1170238, was opened at 2005-03-24 14: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=1170238&group_id=31650

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ray Johnson (rjontilt)
Assigned to: Nobody/Anonymous (nobody)
Summary: $(TargetPath) in Nant produces invalid path

Initial Comment:

I have a Post-Event step that looks something like this:
copy /Y $(TargetPath)  ..\Bin\FTC\

Which works great within VS.Net 2003 - but breaks 
under Nant.

The reason is that Nant creates a path for $(TargetPath 
that looks something like this:
C:\src\devtrunk\testApplication\Release_Pro/testApp.ex
e

As you can see it is adding a / instead of a \ which 
makes for an invalid Windows path - which the copy 
command can not handle.

So in the end this must be a bug in how Nant is putting 
together paths.

There is a work around for this particular case.  I can 
change the command to:
copy /Y $(TargetDir)/$(TargetFileName) 
$(InputDir)..\..\Bin\FTC\



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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to