Hi,

This is all about automation in a batch mode. Sure, we can always start Eclipse, configure, refresh and rebuild manually. But that need "clicks" from a human:-). This plugin allows the configuration of an Eclipse workspace for Tuscany in a command line so that it be integrated with the build or a cron job. For example, I can do the following now:

1. Update from svn, run maven build and refresh/rebuild my Eclipse workspace during the midnight while I'm sleeping. 2. Produce an Eclipse workspace for a subset of Tuscany (such as the travelsample) or most of the open source projects that I can use for source code reviewing or debugging.

Thanks,
Raymond

--------------------------------------------------
From: "Simon Laws" <[email protected]>
Sent: Wednesday, March 24, 2010 7:54 AM
To: <[email protected]>
Subject: Re: Automation of Eclipse workspace configuration for Tuscany SCA Java

On Tue, Mar 23, 2010 at 10:52 PM, Raymond Feng <[email protected]> wrote:
Hi,

I prototyped an Eclipse plugin that can be run in command line (headless
mode) to automate the configuration of Eclipse workspace for Tuscany SCA
Java development. Potentially, it can be integrated with some scripts to
produce the workspace after the maven build.

You can install it from:

http://people.apache.org/~rfeng/tuscany/eclipse-workspace-updatesite/

To develop Tuscany SCA using Eclipse, we are required to configure the
workspace as follows:

  * Create a classpath variable M2_REPO that points to the maven local
repository
  * Set the target platform from the target definition file generated by
Tuscany distribution
  * Import the projects from the directory where Tuscany source code is
checked out and built
  * Refresh and build the Eclipse workspace

All these steps only work manually with Eclipse UI. It's time consuming and
error-prone.

With this tiny Eclipse application, we can now confiure an Eclipse workspace
on a command line. For example, you can run the following command:

On Windows:
eclipsec -nosplash -data c:\workspace\tuscany -application
org.apache.tuscany.eclipse.workspace.WorkspaceConfigurator -source.root
C:\tuscany\sca-java-2.x\trunk -target.definition
C:\tuscany\sca-java-2.x\trunk\distribution\all\target\features\tuscany-distribution-all\tuscany-pde35.target

On Linux:
eclipse -nosplash -data /workspace/tuscany -application
org.apache.tuscany.eclipse.workspace.WorkspaceConfigurator -source.root
/tuscany/sca-java-2.x/trunk -target.definition
/tuscany/sca-java-2.x/trunk/distribution/all/target/features/tuscany-distribution-all/tuscany-pde35.target

Feedbacks are welcome.

Thanks,
Raymond
---
Raymond Feng
Apache Tuscany PMC Member: http://tuscany.apache.org
Co-author of Tuscany In Action (A book on Tuscany SCA):
http://tuscanyinaction.com/
Web: http://www.enjoyjava.com
Twitter: http://twitter.com/raymondfeng





Hi Raymond

Couple of questions...

Why do you need to refresh/build from the command line?
Is it mandatory to have this function be part of Eclipse.

Simon

Reply via email to