From 4100cfc367e2825b82065c87cd4771ce2dcfbc4c Mon Sep 17 00:00:00 2001 From: nash Date: Thu, 16 Sep 2010 20:13:11 +0000 Subject: Merge commits r996988, r996991, r996994, r996998, r997259 and r997886 from 1.6.1 branch (TUSCANY-3676) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@997908 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/distribution/src/main/assembly/bin.xml | 16 ++- .../distribution/src/main/release/src/BUILDING | 32 +++++ sca-java-1.x/trunk/samples/README | 55 ++++---- sca-java-1.x/trunk/samples/pom-distribution.xml | 145 +++++++++++++++++++++ sca-java-1.x/trunk/samples/pom.xml | 28 +++- 5 files changed, 249 insertions(+), 27 deletions(-) create mode 100644 sca-java-1.x/trunk/samples/pom-distribution.xml (limited to 'sca-java-1.x') diff --git a/sca-java-1.x/trunk/distribution/src/main/assembly/bin.xml b/sca-java-1.x/trunk/distribution/src/main/assembly/bin.xml index 9e959d4bf1..71fc5a86f1 100644 --- a/sca-java-1.x/trunk/distribution/src/main/assembly/bin.xml +++ b/sca-java-1.x/trunk/distribution/src/main/assembly/bin.xml @@ -101,6 +101,7 @@ */**/*.svg pom.xml + pom-distribution.xml calculator-distributed/work calculator-distributed/work/**/* calculator-webapp/target/sample-calculator-webapp @@ -123,8 +124,6 @@ feed-aggregator-webapp/target/sample-feed-aggregator-webapp feed-aggregator-webapp/target/sample-feed-aggregator-webapp/**/* feed-aggregator-webapp/target/war - store-dojo - store-dojo/**/* store-webapp/target store-webapp/target/**/* helloworld-dojo-webapp/src/main/webapp/dojo @@ -227,6 +226,10 @@ helloworld-ws-deep-webapp/work/**/* helloworld-ws-service-webapp helloworld-ws-service-webapp/**/* + store-dojo + store-dojo/**/* + zipcode-jaxws/ + zipcode-jaxws/**/* @@ -375,6 +378,15 @@ + + + + ../samples/pom-distribution.xml + tuscany-sca-${tuscany.version}/samples + pom.xml + + + diff --git a/sca-java-1.x/trunk/distribution/src/main/release/src/BUILDING b/sca-java-1.x/trunk/distribution/src/main/release/src/BUILDING index 15ff808720..2a0730ad13 100644 --- a/sca-java-1.x/trunk/distribution/src/main/release/src/BUILDING +++ b/sca-java-1.x/trunk/distribution/src/main/release/src/BUILDING @@ -57,3 +57,35 @@ Building the distributions This will build the binary and source distributions with .zip and .gz formats in the distribution/target directory. + +Using an IDE +------------ + +The easiest way to work with Apache Tuscany SCA 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 your IDE. + +To build IDE project files for all of the modules in Apache Tuscany SCA; + +cd + +where is the top-level directory containing the all the +Apache Tuscany SCA source code. + +If you are an Eclipse user do the following + +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. diff --git a/sca-java-1.x/trunk/samples/README b/sca-java-1.x/trunk/samples/README index 9d4bad1fc4..9fdbd78fdc 100644 --- a/sca-java-1.x/trunk/samples/README +++ b/sca-java-1.x/trunk/samples/README @@ -138,9 +138,9 @@ Getting Ready To Build ---------------------- You will need to install the following software before you start. -J2SE Development Kit (JDK) 5.0 -Apache Ant 1.7.0 - if you are going to use Ant -Apache Maven 2.0.6 - if you are going to use Maven +J2SE Development Kit (JDK) 5.0 or higher +Apache Ant 1.7.1 or higher - if you are going to use Ant +Apache Maven 2.0.10 or higher - if you are going to use Maven Java and Ant and/or Maven binary directories must be present in your PATH so that their executable programs are available in your environment. You may @@ -148,15 +148,15 @@ find it useful to use a script to set up your environment, for example; For UNIX: JAVA_HOME=/ - ANT_HOME=//apache-ant-1.7.0 - MAVEN_HOME=//maven-2.0.6 - export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$MAVEN_HOME/bin:$PATH + ANT_HOME=//apache-ant-1.7.1 + M2_HOME=//maven-2.0.10 + export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$M2_HOME/bin:$PATH For Windows: set JAVA_HOME=C:\ - set ANT_HOME=C:\\apache-ant-1.7.0 - set MAVEN_HOME=C:\\maven-2.0.6 - set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%MAVEN_HOME%\bin;%PATH% + set ANT_HOME=C:\\apache-ant-1.7.1 + set M2_HOME=C:\\maven-2.0.10 + set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%M2_HOME%\bin;%PATH% Building And Running The SCA Samples Using Ant @@ -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 diff --git a/sca-java-1.x/trunk/samples/pom-distribution.xml b/sca-java-1.x/trunk/samples/pom-distribution.xml new file mode 100644 index 0000000000..4b6665e98d --- /dev/null +++ b/sca-java-1.x/trunk/samples/pom-distribution.xml @@ -0,0 +1,145 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1-SNAPSHOT + + tuscany-samples-distribution + pom + Apache Tuscany SCA Samples in Binary Distribution + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + default + + true + + + binding-echo + binding-echo-extension + binding-notification-broker + binding-notification-consumer + binding-notification-producer + calculator + calculator-corba-reference + calculator-corba-service + + calculator-distributed + calculator-implementation-policies + calculator-rmi-reference + calculator-rmi-service + calculator-script + calculator-webapp + + calculator-ws-webapp + callback-ws-client + callback-ws-service + callbacks-jms + chat-webapp + + + databinding-echo + + domain-management + feed-aggregator + feed-aggregator-webapp + helloworld-bpel + helloworld-dojo-webapp + + + + helloworld-jsonrpc-webapp + helloworld-reference-jms + helloworld-service-jms + helloworld-ws-service + helloworld-ws-service-jms + helloworld-ws-service-secure + helloworld-ws-reference + + helloworld-ws-reference-jms + helloworld-ws-reference-secure + helloworld-ws-sdo + helloworld-ws-sdo-webapp + holder-ws-service + implementation-composite + implementation-crud + implementation-crud-extension + implementation-notification + implementation-pojo-extension + + osgi-supplychain + photo-gallery + quote-xquery + simple-bigbank + simple-bigbank-spring + spring-bigbank-checkaccount + spring-bigbank-calculator + spring-bigbank-stockquote + simple-callback + simple-callback-ws + store + + store-webapp + store-secure + supplychain + web-resource + + + + + + diff --git a/sca-java-1.x/trunk/samples/pom.xml b/sca-java-1.x/trunk/samples/pom.xml index 57851bdfa3..7825f293d9 100644 --- a/sca-java-1.x/trunk/samples/pom.xml +++ b/sca-java-1.x/trunk/samples/pom.xml @@ -18,6 +18,22 @@ * under the License. --> + 4.0.0 org.apache.tuscany.sca @@ -51,6 +67,7 @@ calculator calculator-corba-reference calculator-corba-service + calculator-lean calculator-distributed calculator-implementation-policies @@ -58,13 +75,16 @@ calculator-rmi-service calculator-script calculator-webapp + calculator-ws-secure-webapp calculator-ws-webapp callback-ws-client callback-ws-service callbacks-jms chat-webapp + customer-dojo + customer-dojo-webapp databinding-echo @@ -73,8 +93,11 @@ feed-aggregator-webapp helloworld-bpel helloworld-dojo-webapp + helloworld-erlang-reference - helloworld-erlang-service + + helloworld-erlang-service + helloworld-jms-webapp helloworld-jsonrpc-webapp helloworld-reference-jms @@ -83,6 +106,7 @@ helloworld-ws-service-jms helloworld-ws-service-secure helloworld-ws-reference + helloworld-ws-reference-lean helloworld-ws-reference-jms helloworld-ws-reference-secure @@ -94,6 +118,7 @@ implementation-crud-extension implementation-notification implementation-pojo-extension + loanapplication osgi-supplychain photo-gallery @@ -106,6 +131,7 @@ simple-callback simple-callback-ws store + store-dojo store-webapp store-secure -- cgit v1.2.3