| Summary: | Equinox returning EXIT Code 0 on unsuccessful run | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Missing name <parigian> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | remy.suen, tjbishop |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This bug was marked as stalebug a while ago. Marking as worksforme. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag. |
Build Identifier: 3.6 We are using an Eclipse adopter product that runs workspace builds in a headless mode (no GUI). The run is successful but the return code at the end by equinox is 13 instead of being 0. At the end of org.eclipse.core.runtime.adaptor.EclipseStarter#run(String[], Runnable) is this code: // we only get here if an error happened if (FrameworkProperties.getProperty(PROP_EXITCODE) == null) { FrameworkProperties.setProperty(PROP_EXITCODE, "13"); //$NON-NLS-1$ FrameworkProperties.setProperty(PROP_EXITDATA, NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_CHECK_LOG, log == null ? null : log.getFile().getPath())); } this is suppose to set the property PROP_EXITCODE (eclipse.exitcode) to 13 in the system properties. Then in org.eclipse.equinox.launcher.Main#run(String[]) it does the following: String exitCode = System.getProperty(PROP_EXITCODE); The problem is that exitCode is null for some reason... it doesn't get the value "13" set in the code I pasted above from org.eclipse.core.runtime.adaptor.EclipseStarter#run(String[], Runnable). As a result the JVM is terminated with an exit code of 0. Reproducible: Always