Headless Eclipse Workspace Configurator
To develop Tuscany SCA using Eclipse, you 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:\temp\trunk -target.definition C:\tuscany\sca-java-2.x\trunk\distribution\all\target\features\tuscany-distribution-all\tuscany-pde35.target
- -data
- -application org.apache.tuscany.eclipse.workspace.WorkspaceConfigurator
- -source.root
- -target.definition