Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-build-dev] Headless build fails ... silently

Hello folks,

after successfully exporting plug-ins manually, and saving the export as an 
ant script I would like to do it automatically, as part of a batch operation. 
Alas, this fails silently, without any problem notification. Is it a bug? Am 
I missing something. Here are the details:

- Using eclipse 3.1.0 Release on Linux (SuSE 10.0, Java 1.4.2_06)
- I picked an arbitrary plug-in to export. In my case it's from the CDT 
project. 
- Manual export works well, I also create an ant script, which is attached.
- Running the ant script as external tool works well, output is simply:

================================
Buildfile: /home/pn3484/ws-ant-debug/org.eclipse.cdt.managedbuilder.ui/build-org.eclipse.cdt.managedbuilder.ui.xml

plugin_export:
BUILD SUCCESSFUL
Total time: 1 second
================================

The output contains a lie, however: All the text above comes to the console 
rather quickly and then the launch continues to run in the background for 
another 30 seconds or so. But the build results are OK.

- Now I want to run the build headless so that no more manual interaction will 
be necessary. I do this by starting eclipse specifying -application 
org.eclipse.pde.build.Build and some other parameters (details in attached 
launch configuration)

The output from this is nearly identical to the above:

====================================
Unknown argument: -pdelaunch
Buildfile: /home/pn3484/ws-ant-debug/org.eclipse.cdt.managedbuilder.ui/build-org.eclipse.cdt.managedbuilder.ui.xml

plugin_export:
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 2 seconds
====================================

but at this time the launch is soon finished - and nothing is built. No 
messages, no hint that anything went wrong. Can anybody point me to log 
information or documentation on this.

- The same failure if I start the build directly from the shell (see attached 
script). Eclipse succeeds in building nothing even faster (only 1 second)

===============================
Buildfile: /home/pn3484/ws-ant-debug/org.eclipse.cdt.managedbuilder.ui/build-org.eclipse.cdt.managedbuilder.ui.xml

plugin_export:
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 1 second
===============================

So, can anybody give me a hand with this? It's pretty strange that it should 
not work and I don't believe that I am alone on the planet doing this :-)

Thanks a lot ...


Norbert

<?xml version="1.0" encoding="UTF-8"?>
<project name="build" default="plugin_export">
	<target name="plugin_export">
		<pde.exportPlugins plugins="org.eclipse.cdt.managedbuilder.ui" destination="/home/pn3484/ant-export" exportType="directory" useJARFormat="true" exportSource="false" source="1.3" target="1.2"/>
	</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
<booleanAttribute key="usefeatures" value="false"/>
<stringAttribute key="bootstrap" value=""/>
<booleanAttribute key="useProduct" value="true"/>
<booleanAttribute key="tracing" value="false"/>
<stringAttribute key="location2" value="/home/pn3484/runtime-workspace"/>
<booleanAttribute key="automaticAdd" value="true"/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="includeFragments" value="false"/>
<stringAttribute key="configLocation" value=""/>
<stringAttribute key="application" value="org.eclipse.pde.build.Build"/>
<booleanAttribute key="clearws" value="false"/>
<stringAttribute key="location1" value="/home/pn3484/ws-ant-debug"/>
<stringAttribute key="templateConfig" value=""/>
<booleanAttribute key="default" value="true"/>
<stringAttribute key="vmargs" value=""/>
<booleanAttribute key="clearConfig" value="false"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>
<stringAttribute key="progargs" value="-application org.eclipse.pde.build.Build -buildfile /home/pn3484/ws-ant-debug/org.eclipse.cdt.managedbuilder.ui/build-org.eclipse.cdt.managedbuilder.ui.xml"/>
<booleanAttribute key="useDefaultConfig" value="true"/>
<booleanAttribute key="askclear" value="true"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location0" value="/home/pn3484/ws-ant-debug"/>
</launchConfiguration>

Attachment: headless-antRunner.sh
Description: application/shellscript


Back to the top