Accepted answer

one workaround that i found is running the command through ant exec instead of calling directly from batch file. it reports all the errors.

<exec executable="eclipse.exe" failonerror="true">
  <arg value="-nosplash"/>
  <arg value="-application"/>
  <arg value="org.eclipse.equinox.p2.director"/>
  <arg value="-repository"/>
  <arg value="file:c:/repo,"/>
  <arg value="-installiu"/>
  <arg value=""/>


there was a bug in equinox 3.6.0 (which was fixed in 3.6.1) that caused failing applications to return an exit code 0. unless you are using that equinox version, the p2 director application has a correct exit code.

i suppose the problem lies in how you checked the exit code in the batch script. you can check for non-zero exit codes with if errorlevel 1 goto labeloferrorhandling.

Related Query

More Query from same tag