Hi, I am getting the error "Execute failed: java.io.IOException: CreateProcess: error=2", I know that it is usually related to wrong path and this kind of thing. But this is not the case, I think :). I have an ant script that reads a txt file and executes the programs it finds in this file. The first program it executes OK the second one no. For example if I put two calls for the notepad.exe in the txt the script executes the first but not the second one. The messages I get from the script are :
readFile: showFile: [echo] src.file.head = notepad.exe; [echo] notepad.exe main: doExec: [echo] notepad.exe doExec: [echo] notepad.exe [exec] Execute failed: java.io.IOException: CreateProcess: [exec] notepad.exe [exec] error=2 BUILD SUCCESSFUL Total time: 3 seconds I put the ant file below and the content of the test12.txt is // test exec file notepad.exe; notepad.exe Any one knows what it is happening? Best regards... Daniel Camara ---- <?xml version="1.0"?> <project name="test" basedir="." default="main"> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> <target name="main" depends="showFile"> <property file="test12.txt"/> <foreach list="${src.file.head}" delimiter=";" param="src.file" target="doExec" inheritall="true"/> </target> <target name="doExec"> <echo message=" ${src.file}"/> <exec executable="${src.file}" failonerror="true" failifexecutionfails="false"> </exec> </target> <property name="src.file" value="test12.txt"/> <property name="src.dir" value="."/> <target name="readFile" > <loadfile srcfile="${src.file}" property="src.file.head"> <filterchain> <striplinecomments> <comment value="//"/> </striplinecomments> </filterchain> </loadfile> </target> <target name="showFile" depends="readFile"> <echo message="src.file.head = ${src.file.head}"/> </target> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]