You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by na...@apache.org on 2010/09/14 19:12:14 UTC

svn commit: r996994 - /tuscany/sca-java-1.x/branches/sca-java-1.6.1/samples/README

Author: nash
Date: Tue Sep 14 17:12:14 2010
New Revision: 996994

URL: http://svn.apache.org/viewvc?rev=996994&view=rev
Log:
Update instructions for using Eclipse with the samples in the source and binary distributions (TUSCANY-3676)

Modified:
    tuscany/sca-java-1.x/branches/sca-java-1.6.1/samples/README

Modified: tuscany/sca-java-1.x/branches/sca-java-1.6.1/samples/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/branches/sca-java-1.6.1/samples/README?rev=996994&r1=996993&r2=996994&view=diff
==============================================================================
--- tuscany/sca-java-1.x/branches/sca-java-1.6.1/samples/README (original)
+++ tuscany/sca-java-1.x/branches/sca-java-1.6.1/samples/README Tue Sep 14 17:12:14 2010
@@ -236,7 +236,7 @@ The Maven build process will work from b
 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 wit
 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=<path-to-eclipse-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