ant <exec> with ( ) in location folder

R

rynox

hi everyone

i have a questiong, i have a problem running ant's <exec>.
<exec dir="${DATA.DIR}/registry/java" executable="addregistry.bat"
os="${os.name}">
<arg line="addregistry.bat"/>
</exec>

this is the command i use , however , location of ${DATA.DIR} is
D:\Deployer(Full) , i think the ( ) is disabling it to run . does
anyone have a solution or suggestion ?

thanks
 
J

jfbriere

Try this instead:

<exec dir="${DATA.DIR}/registry/java"
executable="cmd.exe"
os="${os.name}">
<arg line="/c addregistry.bat" />
</exec>

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,470
Messages
2,571,807
Members
48,797
Latest member
PeterSimpson
Top