Try to use quotes. Hope
this helps. "${buildlog.dir}\${source.changes.log.filename}" From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kedziora, Rebecca A bug or not with nant .85 rc 3? I am executing a program using the exec task as shown below:
<exec
program="${tools.bin.path}\changes.cmd" As you can see I am piping my output to
a file using >. The problem I am having is if the directory has spaces
that is being piped too it will not create the
${source.changes.log.filename}. For example if my ${buildlog.dir}
directory is c:\builds\smc management center\logfiles it will not
work. If I use c:\builds\smc\logfiles it will work. The work around I did was to move the
file after it was created.
<move
file="${project.workingdir}\${source.changes.log.filename}"
todir="${buildlog.dir}" overwrite="true"
failonerror="false"/> Is this a bug? -Rebecca |
Title: Exec program can't handle dir name with spaces
- [Nant-users] Exec program can't handle dir name with spa... Kedziora, Rebecca
- RE: [Nant-users] Exec program can't handle dir name... Ryan Davis
- RE: [Nant-users] Exec program can't handle dir name... Stephen Tunney
- RE: [Nant-users] Exec program can't handle dir name... Robert Schneider
- RE: [Nant-users] Exec program can't handle dir name... Kedziora, Rebecca
- Re: [Nant-users] Exec program can't handle dir ... Gary Feldman
- RE: [Nant-users] Exec program can't handle dir name... Stephen Tunney