Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Headless build [was Re: [cdt-dev] RIP Wascana, Build System]

> From: James Blackburn <jamesblackburn@xxxxxxxxx>
> > 2009/5/22 Elena Laskavaia <elaskavaia@xxxxxxx>:
> > Implementing headless builder from CDT is pretty straight
> > forward. It is
> > like 100 lines of code
>
> Indeed, that's been my experience, though I haven't before now needed
> to implement my own IApplication target instead using the one provided
> by the platform as worked fine:
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jd
t.doc.isv/guide/jdt_apt_building_with_apt.htm
>

For us the headless build (for managed projects) works without the jdt_apt_building (avoids jdt dependencies in cdt).
org.eclipse.ant.core.antRunner and a simple build-script is enough. The command looks like this:
"
...\eclipse.exe -data <path to Workspace> -console -noSplash -application  org.eclipse.ant.core.antRunner -buildfile build.xml -logfile build.log -vmargs -Dorg.eclipse.cdt.core.console=org.eclipse.cdt.core.systemConsole
"

There is a UI-Error in the .log-File that could be solved (cdt 5.0.2.200902130801):
"
!ENTRY org.eclipse.osgi 4 0 2009-05-25 09:20:09.119
!MESSAGE An error occurred while automatically activating bundle org.eclipse.debug.ui (75).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.debug.internal.ui.DebugUIPlugin.start() of bundle org.eclipse.debug.ui.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028)
...
Root exception:
java.lang.ExceptionInInitializerError
        at org.eclipse.debug.internal.ui.DebugUIPreferenceInitializer.setDefault(DebugUIPreferenceInitializer.java:174)
...
"

Just my 2 cent ;)

--Harald


Back to the top