Hi,
I need to execute a command on Windows NT and the executable resides
in a directory that has spaces in it.
So, to run it from the command line I use quotes around the directory:
"c:\win32app\marimba\Castanet Tuner"\runchannel
I am using Ant version 1.3 beta 3
When I try to insert this command in Ant script's <exec> command,
it already has quotes around directory name.
So, I tried to do this:
<property name="marimbadir" value="c:\win32app\Marimba\Castanet
Tuner"/>
<exec dir="${marimbadir}" executable="runchannel">
This way, marimbadir does not get the quotes around it and the command
fails
So, next I tried to force quotes into marimbadir property.
I did the following and all of them did not compile in Ant:
double quotes
<property name="marimbadir" value=""c:\win32app\Marimba\Castanet
Tuner""/>
"
<property name="marimbadir" value="" c:\win32app\Marimba\Castanet
Tuner ""/>
"
<property name="marimbadir" value="" c:\win32app\Marimba\Castanet
Tuner ""/>
If anybody has dealt successfully with the spaces in the directory
name, please send me an e-mail directly (as well as to the mailing
list).
Thanks,
Dimitry Gupalo
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
|