Batch files from an Ant Task
Can anyone tell me whyI cannot havemy Ant Task run a batch file? Or atleast how to fix it so I can. I recently switched to Vista for development and we use a batch file to copy over some files when we are doing a certain build, whenI go to run this build, and this build only I get the following failure: Execute failed: java.io.IOException: CreateProcess: refresh-local-helper C:\jboss-4.0.3SP1\server\irs pps.ear-contents error=2 It appears to be a permissions problem and I've tried everything that I an think of to try to get it to work including disabling UAC entirely, escalating all the privleges on the batch file, ant, and Java installs, changing the UAC configurations,and running the console that I start the ant task in as a Admin. Nothing seems to work. When I run the batch file outside of the build there appears to be no problem. I just want to authorize an application I explicitly call to be able to run a batch file that I know what it does. Can anyone help me out or explain why this is not possible?
August 9th, 2007 7:47pm

I'm sure you've figured this out by now, but for any other's reading this...Try something like this<exec os="Windows XP" dir="path/to/batch/file" executable="cmd"><arg value="/c"/><arg value="something.bat"/></exec>
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2009 5:08am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics