Community
Participate
Working Groups
I am trying to execute eclipse in headless mode to perform builds using an automated build server like cruise control. When I do this i get subversive related errors like the following: Exception in thread "Thread-31" java.lang.IllegalStateException: Workbench has not been created yet. at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92) at org.polarion.team.svn.ui.utility.UIMonitorUtility.getDisplay(UIMonitorUtility.java:46) at org.polarion.team.svn.ui.utility.UIMonitorUtility.getShell(UIMonitorUtility.java:51) at org.polarion.team.svn.ui.operation.UILoggedOperation$1.run(UILoggedOperation.java:63) I am using the eclipse headless ant runner with the following command: java -cp org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar org.eclipse.core.launcher.Main -noupdate -application org.eclipse.ant.core.antRunner -data . -buildfile build.xml The ant file is refreshing the eclipse workspace and the triggers an incremental build using the following build file: <project name="test" default="build" basedir="."> <target name="build" depends=""> <echo>Refreshing workspace...</echo> <eclipse.refreshLocal resource="/" depth="infinite"/> <echo>Building workspace...</echo> <eclipse.incrementalBuild /> <echo>Build done.</echo> </target> </project> Panagiotis Korros
Done.
Will be published with the next weekly build.