Question

I have a .bat file that runs an ANT command like

ant "clean" "debug" "compress" "buildnumber" -f C:\Users\cm\WebstormProjects\GAME\build\build.xml

After this ant command I have this

start run_vbs.bat

and this command is not executed.

What am I doing wrong?

Was it helpful?

Solution

Use this to start the ant batch file:

call ant_batch.bat

It's likely that you aren't using the call keyword and so the batch file doesn't return control, it just ends.

OTHER TIPS

I had to call ant from my ant_batch.bat like this

call ant "clean" "debug" "compress" "buildnumber" -f C:\Users\cm\WebstormProjects\GAME\build\build.xml

So it is necessary to use the keyword "call" while calling ant because the other commands that are after the ant-call will not be executed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top