Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 65146 - Headless Ant Build of RCP fails
Summary: Headless Ant Build of RCP fails
Status: RESOLVED DUPLICATE of bug 58413
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-01 16:08 EDT by Chris Longfield CLA
Modified: 2004-10-06 12:52 EDT (History)
3 users (show)

See Also:


Attachments
Headless build output (29.32 KB, application/octet-stream)
2004-06-01 16:12 EDT, Chris Longfield CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Longfield CLA 2004-06-01 16:08:14 EDT
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
Comment 1 Chris Longfield CLA 2004-06-01 16:12:14 EDT
Created attachment 11420 [details]
Headless build output

Build output showing failure for headless build (gzipped tar)
Comment 2 Pascal Rapicault CLA 2004-06-01 17:44:39 EDT
Some confuses me. If this is a headless process, why is the ui triggered?
You should try with a clean install.
Comment 3 Chris Longfield CLA 2004-06-01 18:02:44 EDT
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)
Comment 4 Darin Swanson CLA 2004-06-02 16:38:40 EDT
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 :-)
Comment 5 Pascal Rapicault CLA 2004-06-03 15:57:12 EDT
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.
Comment 6 Darin Swanson CLA 2004-06-03 16:05:59 EDT
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)
Comment 7 Pascal Rapicault CLA 2004-06-03 16:14:06 EDT
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...
Comment 8 Chris Longfield CLA 2004-06-07 15:00:39 EDT
The Task I was using is:

 <pde.exportPlugins exportSource="false" destination="build"
exportType="directory" plugins="com.internap.miro.mc3.ui.eclipse" />

Comment 9 Wassim Melhem CLA 2004-06-07 15:45:47 EDT
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.
Comment 10 Pascal Rapicault CLA 2004-06-07 15:49:40 EDT
Given your last comment I'm moving it back to you wassim ;-)
Comment 11 Wassim Melhem CLA 2004-06-07 22:17:23 EDT

*** This bug has been marked as a duplicate of 58413 ***