Community
Participate
Working Groups
I am trying to kick off a headless build for our RCP UI we have built as a front end to our system. Darin Swanson gave me a script to run a headless build that basically calls: java -cp ${CLASSPATH} -Xmx650m -Xms400m org.eclipse.core.launcher.Main -noupdate -application org.eclipse.ant.core.antRunner -data ${WORKSPACE} -buildfile build-ui.xml -debug -consoleLog but I get the attached errors, due it seems to ClassDefNotFound and CircularityError(s) for org/eclipse/swt/widgets/Listener
Created attachment 11420 [details] Headless build output Build output showing failure for headless build (gzipped tar)
Some confuses me. If this is a headless process, why is the ui triggered? You should try with a clean install.
I am not trying to invoke the UI (as far as I know). I was also confused that swt/widgets would be used. I have gotten these results with M8 and M9. What would constitute a clean install? If you are referring to the fact that the build file is called build-ui.xml, that's just a different name I gave it to build my RCP because of the problem I reported in 61798 (I see now that there is a workaround)
If I remember correctly the problem here is that the pde task that Chris is trying to use is contributed by a UI plugin (PDE UI) thus I do not believe it will be possible to use in a headless build. Attaching the buildfile would help refresh my memory :-)
Given Darin's last comment, this does not sounds like a pde build bug, but more like a misusage of a script that works with PDE UI.
I think resolved invalid is a little harsh. Likely it should be moved to PDE UI or PDE Build should work to provide Ant tasks that export plugins in a headless manner (post 3.0)
Ok, I'm reopening and moving then :-) Note that PDE Build already provides tasks supporting the generation of build scripts and also infrastructure to use those scripts. It is not as simple as exporting "headless" but close. Those script generators and the infrastructure is currently used to do the releng style build of eclipse, gef, emf, etc...
The Task I was using is: <pde.exportPlugins exportSource="false" destination="build" exportType="directory" plugins="com.internap.miro.mc3.ui.eclipse" />
Just to clarify, the task in question requires UI classes and was not originally intended to be run in headless mode. Nor was it intended to be run as part of a bigger Ant script. It was only intended to allow you to run the export operation quickly without having to go through the wizard again. Having seen how quickly this task became popular, we will work to make it headless-friendly and execute sequentially. This requires a lot of work though and would have to be addressed post-3.0.
Given your last comment I'm moving it back to you wassim ;-)
*** This bug has been marked as a duplicate of 58413 ***