Bug 211420 - Provide "Headless" update site
Summary: Provide "Headless" update site
Status: RESOLVED FIXED
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Alexander Gurov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-29 04:35 EST by Alexander Gurov CLA
Modified: 2008-07-31 06:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Gurov CLA 2007-11-29 04:35:33 EST
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
Comment 1 Alexander Gurov CLA 2008-07-31 06:54:31 EDT
Done.
Comment 2 Alexander Gurov CLA 2008-07-31 06:55:10 EDT
Will be published with the next weekly build.