[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [pde-dev] AntRunner and detecting build script failure | 
I did some digging and it appears it's a regression in Helios
   https://bugs.eclipse.org/bugs/show_bug.cgi?id=299327#c5
What I can' figure out is how this hasn't broken a lot of people.
John
At 04:00 PM 8/25/2010, John Cortell wrote:
How does one go about detecting that an Ant script executed by 
AntRunner has failed? The following Windows cmd file always prints 
out zero. I'm pretty sure in Ganymede, it prints out a non-zero 
value, thus allowing the cmd file to detect the failure.
test.cmd
==============
"C:\Program Files\Java\jdk1.6.0_16\jre\bin\java.exe" ^
   -cp ^
   C:\eclipse_3.6\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar ^
   org.eclipse.core.launcher.Main ^
   -application ^
   org.eclipse.ant.core.antRunner ^
   -buildfile ^
   c:\temp\test.xml
echo %ERRORLEVEL%
c:\temp\test.xml
=================
<project name="test" default="alwaysFail">
        <target name="alwaysFail">
                <fail message="no chance"/>
        </target>
</project>
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev