From 4d1554e69df7875d3cdf195d82e5cfedb3ce1f51 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 14 Sep 2010 17:12:14 +0000 Subject: Update instructions for using Eclipse with the samples in the source and binary distributions (TUSCANY-3676) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@996994 13f79535-47bb-0310-9956-ffa450edef68 --- .../branches/sca-java-1.6.1/samples/README | 37 +++++++++++++--------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'sca-java-1.x') diff --git a/sca-java-1.x/branches/sca-java-1.6.1/samples/README b/sca-java-1.x/branches/sca-java-1.6.1/samples/README index 9d4bad1fc4..cad1130d2d 100644 --- a/sca-java-1.x/branches/sca-java-1.6.1/samples/README +++ b/sca-java-1.x/branches/sca-java-1.6.1/samples/README @@ -236,7 +236,7 @@ The Maven build process will work from both source and binary distributions. To build and test all of the Apache Tuscany SCA sources, including the samples, do the following. -cd sca +cd samples mvn This will take a little while to complete. Experience with Maven tells us that @@ -254,31 +254,38 @@ When using Maven the samples are run within JUnit test cases and so you will sometimes not see any test output. You will always see an indication of test success or failure. + Using The Samples In An IDE ---------------------------------------------- +--------------------------- The easiest way to use the samples in an IDE is to use Maven to generate all -of the IDE project files for you automatically. This works best if you -generate IDE projects for all of the Apache Tuscany modules. You can then -include the ones you are interested in working with in you IDE. +of the IDE project files for you automatically. + +If you are using the Apache Tuscany SCA source distribution, you can find +details of how to generate IDE project files (including IDE project files +for the samples) in the "Using an IDE" section of the BUILDING file. -To build IDE project files for all of the modules in Apache Tuscany SCA; +If you are using the Apache Tuscany SCA binary distribution, follow these +steps to generate IDE project files for all of the samples; -cd sca +cd samples If you are an Eclipse user do the following -mvn -Peclipse eclipse:eclipse +mvn eclipse:eclipse +mvn -Declipse.workspace= eclipse:add-maven-repo If you are an IDEA user do the following mvn idea:idea -These commands generate project files for each module in Apache Tuscany SCA. -The modules you are interested in can now be included in your IDE, for example, -in Eclipse, if you create a new Java project and use the option to "create a -new project from existing source" you can specify an SCA module directory, -which includes the generated project files, and Eclipse will treat it like any -other Java project. +These commands generate project files for each module in the samples directory. +The modules you are interested in can now be included in your IDE. + +For example, in Eclipse, if you create a new Java project and use the option +to "create a new project from existing source" you can specify an SCA module +directory, which includes the generated project files, and Eclipse will treat +it like any other Java project. + Using The Samples In An IDE Without Maven ----------------------------------------- @@ -290,7 +297,7 @@ In a new or existing workspace Create a new java project to represent the sample you want to work on, e.g. calculator Import all of the sample code and resources into this project, e.g. - File, Import and then select tuscany-sca-1.0-incubating\samples\calculator from the filesystem + File, Import and then select samples/calculator from the filesystem Configure the source path to include src/main/java src/main/resources -- cgit v1.2.3