From b44878d0bfe18ae31e6ac1f235e61a3cadd6fa99 Mon Sep 17 00:00:00 2001 From: nash Date: Fri, 22 Jan 2010 11:15:58 +0000 Subject: Make domain launchers run from the distribution (TUSCANY-3423) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902059 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/travelsample/build.xml | 1 + sandbox/travelsample/distribution/pom.xml | 38 +++++++- .../src/main/components/bin-modules.xml | 8 ++ sandbox/travelsample/domainconfig/build.xml | 45 +++++++++ .../travelsample/domainconfig/fullapp/build.xml | 22 +++++ sandbox/travelsample/domainconfig/fullapp/pom.xml | 79 +++++++++++++++ .../fullapp/src/main/resources/cloud.composite | 35 +++++++ .../resources/cloud/fullapp-bespoketrip.composite | 36 +++++++ .../resources/cloud/fullapp-coordination.composite | 36 +++++++ .../resources/cloud/fullapp-creditcard.composite | 36 +++++++ .../resources/cloud/fullapp-currency.composite | 36 +++++++ .../resources/cloud/fullapp-packagedtrip.composite | 35 +++++++ .../main/resources/cloud/fullapp-payment.composite | 36 +++++++ .../resources/cloud/fullapp-shoppingcart.composite | 36 +++++++ .../src/main/resources/cloud/fullapp-ui.composite | 33 +++++++ .../fullapp/src/main/resources/domain.composite | 35 +++++++ .../src/main/resources/workspace-distribution.xml | 41 ++++++++ .../fullapp/src/main/resources/workspace.xml | 41 ++++++++ .../domainconfig/introducing/build.xml | 22 +++++ .../travelsample/domainconfig/introducing/pom.xml | 79 +++++++++++++++ .../introducing/src/main/resources/cloud.composite | 26 +++++ .../src/main/resources/cloud/ClientNode.composite | 32 ++++++ .../src/main/resources/cloud/ToursNode.composite | 32 ++++++ .../src/main/resources/cloud/TripsNode.composite | 32 ++++++ .../src/main/resources/domain.composite | 26 +++++ .../src/main/resources/workspace-distribution.xml | 30 ++++++ .../introducing/src/main/resources/workspace.xml | 30 ++++++ sandbox/travelsample/domainconfig/pom.xml | 47 +++++++++ sandbox/travelsample/launchers/build.xml | 2 + .../launchers/fullapp-domain/build.xml | 4 +- .../travelsample/launchers/fullapp-domain/pom.xml | 107 +-------------------- .../java/scatours/FullAppDomainAPILauncher.java | 42 ++++++++ .../main/java/scatours/FullAppDomainLauncher.java | 18 +--- .../launchers/introducing-client/pom.xml | 14 +++ .../launchers/introducing-domain/build.xml | 25 ++++- .../launchers/introducing-domain/pom.xml | 12 ++- .../scatours/IntroducingDomainAPILauncher.java | 42 ++++++++ .../java/scatours/IntroducingDomainLauncher.java | 30 ++++++ .../launchers/introducing-tours/build.xml | 2 +- .../launchers/introducing-tours/pom.xml | 58 +++++++++++ .../java/scatours/IntroducingToursLauncher.java | 30 ++++++ .../launchers/introducing-trips/build.xml | 2 +- .../launchers/introducing-trips/pom.xml | 58 +++++++++++ .../java/scatours/IntroducingTripsLauncher.java | 30 ++++++ sandbox/travelsample/launchers/pom.xml | 2 + sandbox/travelsample/pom.xml | 1 + 46 files changed, 1338 insertions(+), 126 deletions(-) create mode 100644 sandbox/travelsample/domainconfig/build.xml create mode 100644 sandbox/travelsample/domainconfig/fullapp/build.xml create mode 100644 sandbox/travelsample/domainconfig/fullapp/pom.xml create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml create mode 100644 sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml create mode 100644 sandbox/travelsample/domainconfig/introducing/build.xml create mode 100644 sandbox/travelsample/domainconfig/introducing/pom.xml create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml create mode 100644 sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml create mode 100644 sandbox/travelsample/domainconfig/pom.xml create mode 100644 sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java create mode 100644 sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java create mode 100644 sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java create mode 100644 sandbox/travelsample/launchers/introducing-tours/pom.xml create mode 100644 sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java create mode 100644 sandbox/travelsample/launchers/introducing-trips/pom.xml create mode 100644 sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java diff --git a/sandbox/travelsample/build.xml b/sandbox/travelsample/build.xml index 70a4dc0876..f74b4cb2a8 100644 --- a/sandbox/travelsample/build.xml +++ b/sandbox/travelsample/build.xml @@ -40,6 +40,7 @@ + diff --git a/sandbox/travelsample/distribution/pom.xml b/sandbox/travelsample/distribution/pom.xml index 210fc426a9..fd35ffc986 100644 --- a/sandbox/travelsample/distribution/pom.xml +++ b/sandbox/travelsample/distribution/pom.xml @@ -396,6 +396,16 @@ scatours-launcher-introducing-domain ${pom.version} + + org.apache.tuscany.sca + scatours-launcher-introducing-tours + ${pom.version} + + + org.apache.tuscany.sca + scatours-launcher-introducing-trips + ${pom.version} + org.apache.tuscany.sca scatours-launcher-jumpstart @@ -466,7 +476,16 @@ scatours-util-launcher-common ${pom.version} - + + org.apache.tuscany.sca + scatours-domainconfig-fullapp + ${pom.version} + + + org.apache.tuscany.sca + scatours-domainconfig-introducing + ${pom.version} + org.apache.geronimo.specs geronimo-jms_1.1_spec @@ -513,6 +532,23 @@ + + maven-antrun-plugin + + + package + + + + + + + run + + + + diff --git a/sandbox/travelsample/distribution/src/main/components/bin-modules.xml b/sandbox/travelsample/distribution/src/main/components/bin-modules.xml index e50b056eb4..b08d7beab4 100644 --- a/sandbox/travelsample/distribution/src/main/components/bin-modules.xml +++ b/sandbox/travelsample/distribution/src/main/components/bin-modules.xml @@ -89,6 +89,14 @@ runtime + + domainconfig + true + + org.apache.tuscany.sca:scatours-domainconfig-* + + runtime + diff --git a/sandbox/travelsample/domainconfig/build.xml b/sandbox/travelsample/domainconfig/build.xml new file mode 100644 index 0000000000..04219dd032 --- /dev/null +++ b/sandbox/travelsample/domainconfig/build.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/build.xml b/sandbox/travelsample/domainconfig/fullapp/build.xml new file mode 100644 index 0000000000..3fd52446fc --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/build.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/pom.xml b/sandbox/travelsample/domainconfig/fullapp/pom.xml new file mode 100644 index 0000000000..94802269bb --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/pom.xml @@ -0,0 +1,79 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + 1.0-SNAPSHOT + scatours-domainconfig-fullapp + Apache Tuscany SCA Tours Full App Domain Configuration + + + ${artifactId} + + + src/main/resources + + workspace-distribution.xml + + + + + + maven-antrun-plugin + + + process-resources + + + + + + + + + + + + + + + + + + run + + + + + + org.apache.maven.plugins + maven-jar-plugin + + target/jar-classes + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite new file mode 100644 index 0000000000..284376538a --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite new file mode 100644 index 0000000000..b6d9d51cbc --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite new file mode 100644 index 0000000000..b42457154f --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite new file mode 100644 index 0000000000..5c66ff2796 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite new file mode 100644 index 0000000000..185112122c --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite new file mode 100644 index 0000000000..323700b4a0 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite new file mode 100644 index 0000000000..b27b57fad5 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite new file mode 100644 index 0000000000..7bec251965 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite new file mode 100644 index 0000000000..e86bef1c56 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite new file mode 100644 index 0000000000..b26f71aa94 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/domain.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml new file mode 100644 index 0000000000..948308ed8e --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml new file mode 100644 index 0000000000..95eca56958 --- /dev/null +++ b/sandbox/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/domainconfig/introducing/build.xml b/sandbox/travelsample/domainconfig/introducing/build.xml new file mode 100644 index 0000000000..5ce51edcce --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/build.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/sandbox/travelsample/domainconfig/introducing/pom.xml b/sandbox/travelsample/domainconfig/introducing/pom.xml new file mode 100644 index 0000000000..9cc529cd90 --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/pom.xml @@ -0,0 +1,79 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + 1.0-SNAPSHOT + scatours-domainconfig-introducing + Apache Tuscany SCA Tours Introducing Domain Configuration + + + ${artifactId} + + + src/main/resources + + workspace-distribution.xml + + + + + + maven-antrun-plugin + + + process-resources + + + + + + + + + + + + + + + + + + run + + + + + + org.apache.maven.plugins + maven-jar-plugin + + target/jar-classes + + + + + + diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite new file mode 100644 index 0000000000..5d400e1be8 --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud.composite @@ -0,0 +1,26 @@ + + + + + + + diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite new file mode 100644 index 0000000000..adf8f0e9cb --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite new file mode 100644 index 0000000000..6e8f7fadb6 --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite new file mode 100644 index 0000000000..9e4b454941 --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite b/sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite new file mode 100644 index 0000000000..ec0f71484b --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/domain.composite @@ -0,0 +1,26 @@ + + + + + + + diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml new file mode 100644 index 0000000000..5c058ee325 --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml new file mode 100644 index 0000000000..59468135c1 --- /dev/null +++ b/sandbox/travelsample/domainconfig/introducing/src/main/resources/workspace.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/sandbox/travelsample/domainconfig/pom.xml b/sandbox/travelsample/domainconfig/pom.xml new file mode 100644 index 0000000000..41f75d3068 --- /dev/null +++ b/sandbox/travelsample/domainconfig/pom.xml @@ -0,0 +1,47 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../pom.xml + + 1.0-SNAPSHOT + scatours-domainconfig + pom + Apache Tuscany SCA Tours Domain Configurations + + + + default + + true + + + fullapp + introducing + + + + + + diff --git a/sandbox/travelsample/launchers/build.xml b/sandbox/travelsample/launchers/build.xml index e396700052..fd11d4c28a 100644 --- a/sandbox/travelsample/launchers/build.xml +++ b/sandbox/travelsample/launchers/build.xml @@ -55,6 +55,8 @@ + + diff --git a/sandbox/travelsample/launchers/fullapp-domain/build.xml b/sandbox/travelsample/launchers/fullapp-domain/build.xml index 1befc6413f..d294dc664a 100644 --- a/sandbox/travelsample/launchers/fullapp-domain/build.xml +++ b/sandbox/travelsample/launchers/fullapp-domain/build.xml @@ -26,7 +26,7 @@ manager API. Note that the classpath only includes the node launcher jar which will bootstrap the rest of the Tuscany runtime. --> - + @@ -48,7 +48,7 @@ - + diff --git a/sandbox/travelsample/launchers/fullapp-domain/pom.xml b/sandbox/travelsample/launchers/fullapp-domain/pom.xml index c0dcf5e00c..ae69ddd348 100644 --- a/sandbox/travelsample/launchers/fullapp-domain/pom.xml +++ b/sandbox/travelsample/launchers/fullapp-domain/pom.xml @@ -29,113 +29,12 @@ Apache Tuscany SCA Tours Full App Domain Launcher - - org.apache.tuscany.sca - tuscany-assembly - ${tuscany.version} - - - - org.apache.tuscany.sca - tuscany-core - ${tuscany.version} - - - - org.apache.tuscany.sca - tuscany-assembly-xml - ${tuscany.version} - - - - org.apache.tuscany.sca - tuscany-node-api - ${tuscany.version} - - org.apache.tuscany.sca tuscany-node-launcher ${tuscany.version} - - org.apache.tuscany.sca - tuscany-domain-manager - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime-tuscany - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-js - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - ${tuscany.version} - runtime - - org.apache.tuscany.sca scatours-contribution-fullapp-bespoketrip @@ -202,7 +101,11 @@ 2.2 - META-INF/MANIFEST.MF + + true + ../lib/ + scatours.FullAppDomainLauncher + diff --git a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java new file mode 100644 index 0000000000..4f8d564eac --- /dev/null +++ b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package scatours; + +import java.io.IOException; +import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher; + +public class FullAppDomainAPILauncher { + + public static void main(String[] args) throws Exception { + DomainManagerLauncher dml = DomainManagerLauncher.newInstance(); + Object dm = dml.createDomainManager("../../domainconfig/fullapp/target/classes"); + dm.getClass().getMethod("start").invoke(dm); + + System.out.println("Point your browser at - http://localhost:9990/ui/home/ "); + System.out.println("Domain started - Press enter to shutdown."); + + try { + System.in.read(); + } catch (IOException e) { + } + + dm.getClass().getMethod("stop").invoke(dm); + } +} diff --git a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java index 21b0ae4cb3..599ca75e24 100644 --- a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java +++ b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java @@ -19,26 +19,12 @@ package scatours; -import java.io.IOException; -import java.util.logging.Level; - import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher; public class FullAppDomainLauncher { public static void main(String[] args) throws Exception { - DomainManagerLauncher dml = DomainManagerLauncher.newInstance(); - Object dm = dml.createDomainManager("./target/classes"); - dm.getClass().getMethod("start").invoke(dm); - - System.out.println("Point your browser at - http://localhost:9990/ui/home/ "); - System.out.println("Domain started - Press enter to shutdown."); - - try { - System.in.read(); - } catch (IOException e) { - } - - dm.getClass().getMethod("stop").invoke(dm); + String[] dmArgs = {"../domainconfig/fullapp"}; + DomainManagerLauncher.main(dmArgs); } } diff --git a/sandbox/travelsample/launchers/introducing-client/pom.xml b/sandbox/travelsample/launchers/introducing-client/pom.xml index 3d13092101..f348ea9456 100644 --- a/sandbox/travelsample/launchers/introducing-client/pom.xml +++ b/sandbox/travelsample/launchers/introducing-client/pom.xml @@ -49,6 +49,20 @@ runtime + + org.apache.tuscany.sca + tuscany-binding-sca-axis2 + ${tuscany.version} + runtime + + + + org.apache.tuscany.sca + tuscany-host-jetty + ${tuscany.version} + runtime + + junit junit diff --git a/sandbox/travelsample/launchers/introducing-domain/build.xml b/sandbox/travelsample/launchers/introducing-domain/build.xml index 67d5fab24c..700515a791 100644 --- a/sandbox/travelsample/launchers/introducing-domain/build.xml +++ b/sandbox/travelsample/launchers/introducing-domain/build.xml @@ -20,14 +20,35 @@ - + + + + + + + + + + + + + + + dir="." fork="true"> + diff --git a/sandbox/travelsample/launchers/introducing-domain/pom.xml b/sandbox/travelsample/launchers/introducing-domain/pom.xml index 1c2f21bac7..2a9f3e53fb 100644 --- a/sandbox/travelsample/launchers/introducing-domain/pom.xml +++ b/sandbox/travelsample/launchers/introducing-domain/pom.xml @@ -29,6 +29,12 @@ Apache Tuscany SCA Tours Introducing Domain Launcher + + org.apache.tuscany.sca + tuscany-node-launcher + ${tuscany.version} + + org.apache.tuscany.sca scatours-contribution-introducing-tours @@ -60,7 +66,11 @@ 2.2 - META-INF/MANIFEST.MF + + true + ../lib/ + scatours.IntroducingDomainLauncher + diff --git a/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java new file mode 100644 index 0000000000..06c5597327 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package scatours; + +import java.io.IOException; +import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher; + +public class IntroducingDomainAPILauncher { + + public static void main(String[] args) throws Exception { + DomainManagerLauncher dml = DomainManagerLauncher.newInstance(); + Object dm = dml.createDomainManager("../../domainconfig/introducing/target/classes"); + dm.getClass().getMethod("start").invoke(dm); + + System.out.println("Point your browser at - http://localhost:9990/ui/home/ "); + System.out.println("Domain started - Press enter to shutdown."); + + try { + System.in.read(); + } catch (IOException e) { + } + + dm.getClass().getMethod("stop").invoke(dm); + } +} diff --git a/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java new file mode 100644 index 0000000000..b9f7fe040f --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package scatours; + +import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher; + +public class IntroducingDomainLauncher { + + public static void main(String[] args) throws Exception { + String[] dmArgs = {"../domainconfig/introducing"}; + DomainManagerLauncher.main(dmArgs); + } +} diff --git a/sandbox/travelsample/launchers/introducing-tours/build.xml b/sandbox/travelsample/launchers/introducing-tours/build.xml index 12482cf7b8..3df9db154f 100644 --- a/sandbox/travelsample/launchers/introducing-tours/build.xml +++ b/sandbox/travelsample/launchers/introducing-tours/build.xml @@ -18,7 +18,7 @@ --> - + diff --git a/sandbox/travelsample/launchers/introducing-tours/pom.xml b/sandbox/travelsample/launchers/introducing-tours/pom.xml new file mode 100644 index 0000000000..0391994557 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-tours/pom.xml @@ -0,0 +1,58 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + 1.0-SNAPSHOT + scatours-launcher-introducing-tours + Apache Tuscany SCA Tours Introducing Tours Launcher + + + + org.apache.tuscany.sca + tuscany-node-launcher + ${tuscany.version} + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + true + ../lib/ + scatours.IntroducingToursLauncher + + + + + + + diff --git a/sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java b/sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java new file mode 100644 index 0000000000..7a1dd79890 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package scatours; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class IntroducingToursLauncher { + + public static void main(String[] args) throws Exception { + String[] dmArgs = {"http://localhost:9990/node-config/ToursNode"}; + NodeLauncher.main(dmArgs); + } +} diff --git a/sandbox/travelsample/launchers/introducing-trips/build.xml b/sandbox/travelsample/launchers/introducing-trips/build.xml index 463831c948..ce9973e395 100644 --- a/sandbox/travelsample/launchers/introducing-trips/build.xml +++ b/sandbox/travelsample/launchers/introducing-trips/build.xml @@ -18,7 +18,7 @@ --> - + diff --git a/sandbox/travelsample/launchers/introducing-trips/pom.xml b/sandbox/travelsample/launchers/introducing-trips/pom.xml new file mode 100644 index 0000000000..1ef9d06774 --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-trips/pom.xml @@ -0,0 +1,58 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + 1.0-SNAPSHOT + scatours-launcher-introducing-trips + Apache Tuscany SCA Tours Introducing Trips Launcher + + + + org.apache.tuscany.sca + tuscany-node-launcher + ${tuscany.version} + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + true + ../lib/ + scatours.IntroducingTripsLauncher + + + + + + + diff --git a/sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java b/sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java new file mode 100644 index 0000000000..781949940c --- /dev/null +++ b/sandbox/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package scatours; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class IntroducingTripsLauncher { + + public static void main(String[] args) throws Exception { + String[] dmArgs = {"http://localhost:9990/node-config/TripsNode"}; + NodeLauncher.main(dmArgs); + } +} diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml index 40ad7a1696..3d8738dc86 100644 --- a/sandbox/travelsample/launchers/pom.xml +++ b/sandbox/travelsample/launchers/pom.xml @@ -50,6 +50,8 @@ introducing introducing-client introducing-domain + introducing-tours + introducing-trips jumpstart fullapp fullapp-domain diff --git a/sandbox/travelsample/pom.xml b/sandbox/travelsample/pom.xml index 3c72711f20..bfb2eb83df 100644 --- a/sandbox/travelsample/pom.xml +++ b/sandbox/travelsample/pom.xml @@ -93,6 +93,7 @@ util contributions + domainconfig launchers services clients -- cgit v1.2.3