Skip to main content

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


The script you save is not meant to be run from a standalone build. The script generated requires you to have the same workspace and more importantly to have the whole eclipse SDK around.
If you want to create a standalone build, you should look into http://www.eclipse.org/articles/Article-PDE-Automation/automation.html

PaScaL



Norbert Ploett <norbert.ploett@xxxxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

12/02/2005 04:46 AM

Please respond to
"Eclipse PDE Build developers list."

To
pde-build-dev@xxxxxxxxxxx
cc
Subject
[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

_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev

Attachment: build-org.eclipse.cdt.managedbuilder.ui.xml
Description: Binary data

Attachment: headless-ant-debug.launch
Description: Binary data

Attachment: headless-antRunner.sh
Description: Binary data


Back to the top