summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-01-13 10:12:36 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-01-13 10:12:36 +0000
commit054ba1cb6fc276ebc1702254d45281889f2fb8ef (patch)
tree5fb7156d42cb870eba6b4cfe929fb542686e4064 /sandbox/travelsample
parentfe906367674a2161597678c364b9feea4c44ef23 (diff)
Move the travel sample launchers/common module to util/launcher-common (TUSCANY-3422)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@898694 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample')
-rw-r--r--sandbox/travelsample/build.xml1
-rw-r--r--sandbox/travelsample/distribution/pom.xml10
-rw-r--r--sandbox/travelsample/distribution/src/main/components/bin-modules.xml9
-rw-r--r--sandbox/travelsample/launchers/blog-feed/build.xml2
-rw-r--r--sandbox/travelsample/launchers/blog-feed/pom.xml12
-rw-r--r--sandbox/travelsample/launchers/build.xml1
-rw-r--r--sandbox/travelsample/launchers/currency-converter-corba/build.xml2
-rw-r--r--sandbox/travelsample/launchers/currency-converter-corba/pom.xml8
-rw-r--r--sandbox/travelsample/launchers/currency-converter-jms/build.xml2
-rw-r--r--sandbox/travelsample/launchers/currency-converter-jms/pom.xml8
-rw-r--r--sandbox/travelsample/launchers/currency-converter-rmi/build.xml2
-rw-r--r--sandbox/travelsample/launchers/currency-converter-rmi/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/currency-converter-ws/build.xml2
-rw-r--r--sandbox/travelsample/launchers/currency-converter-ws/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/currency-converter/build.xml2
-rw-r--r--sandbox/travelsample/launchers/currency-converter/pom.xml8
-rw-r--r--sandbox/travelsample/launchers/databinding/build.xml2
-rw-r--r--sandbox/travelsample/launchers/databinding/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/feed-logger/build.xml2
-rw-r--r--sandbox/travelsample/launchers/feed-logger/pom.xml12
-rw-r--r--sandbox/travelsample/launchers/fullapp/build.xml2
-rw-r--r--sandbox/travelsample/launchers/fullapp/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/help-pages/build.xml2
-rw-r--r--sandbox/travelsample/launchers/help-pages/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/interaction/build.xml2
-rw-r--r--sandbox/travelsample/launchers/interaction/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/introducing/build.xml2
-rw-r--r--sandbox/travelsample/launchers/introducing/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/jumpstart/build.xml2
-rw-r--r--sandbox/travelsample/launchers/jumpstart/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/notification-corba/build.xml2
-rw-r--r--sandbox/travelsample/launchers/notification-corba/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/notification-ejb/build.xml2
-rw-r--r--sandbox/travelsample/launchers/notification-ejb/pom.xml8
-rw-r--r--sandbox/travelsample/launchers/notification-jms/build.xml2
-rw-r--r--sandbox/travelsample/launchers/notification-jms/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/notification-rmi/build.xml2
-rw-r--r--sandbox/travelsample/launchers/notification-rmi/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/notification-ws/build.xml2
-rw-r--r--sandbox/travelsample/launchers/notification-ws/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/policy/build.xml2
-rw-r--r--sandbox/travelsample/launchers/policy/pom.xml6
-rw-r--r--sandbox/travelsample/launchers/pom.xml1
-rw-r--r--sandbox/travelsample/pom.xml1
-rw-r--r--sandbox/travelsample/util/build.xml44
-rw-r--r--sandbox/travelsample/util/launcher-common/build.xml (renamed from sandbox/travelsample/launchers/common/build.xml)2
-rw-r--r--sandbox/travelsample/util/launcher-common/pom.xml (renamed from sandbox/travelsample/launchers/common/pom.xml)23
-rw-r--r--sandbox/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java82
-rw-r--r--sandbox/travelsample/util/pom.xml45
49 files changed, 333 insertions, 58 deletions
diff --git a/sandbox/travelsample/build.xml b/sandbox/travelsample/build.xml
index b55d96d5e8..70a4dc0876 100644
--- a/sandbox/travelsample/build.xml
+++ b/sandbox/travelsample/build.xml
@@ -38,6 +38,7 @@
</target>
<target name="allsubdirs">
+ <ant dir="util" target="${target}"/> <!--needed by launchers-->
<ant dir="contributions" target="${target}"/> <!--needed by launchers-->
<ant dir="services" target="${target}"/> <!--needed by launchers-->
<ant dir="launchers" target="${target}"/> <!--needed by clients-->
diff --git a/sandbox/travelsample/distribution/pom.xml b/sandbox/travelsample/distribution/pom.xml
index 614f49b958..cb4f8adaaf 100644
--- a/sandbox/travelsample/distribution/pom.xml
+++ b/sandbox/travelsample/distribution/pom.xml
@@ -301,11 +301,6 @@
<artifactId>scatours-contribution-tripbooking</artifactId>
<version>${pom.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
- <version>${pom.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>scatours-launcher-blog-feed</artifactId>
@@ -451,6 +446,11 @@
<artifactId>scatours-service-smsgateway-rmi</artifactId>
<version>${pom.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-util-launcher-common</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
diff --git a/sandbox/travelsample/distribution/src/main/components/bin-modules.xml b/sandbox/travelsample/distribution/src/main/components/bin-modules.xml
index 33f0459982..e50b056eb4 100644
--- a/sandbox/travelsample/distribution/src/main/components/bin-modules.xml
+++ b/sandbox/travelsample/distribution/src/main/components/bin-modules.xml
@@ -45,14 +45,14 @@
</dependencySet>
<dependencySet>
- <outputDirectory>lib</outputDirectory>
+ <outputDirectory>util</outputDirectory>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
<unpack>false</unpack>
<includes>
- <include>org.apache.tuscany.sca:scatours-launcher-common</include>
+ <include>org.apache.tuscany.sca:scatours-util-*</include>
</includes>
<scope>runtime</scope>
</dependencySet>
-
<dependencySet>
<outputDirectory>contributions</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
@@ -69,9 +69,6 @@
<includes>
<include>org.apache.tuscany.sca:scatours-launcher-*</include>
</includes>
- <excludes>
- <exclude>org.apache.tuscany.sca:scatours-launcher-common</exclude>
- </excludes>
<scope>runtime</scope>
</dependencySet>
<dependencySet>
diff --git a/sandbox/travelsample/launchers/blog-feed/build.xml b/sandbox/travelsample/launchers/blog-feed/build.xml
index c425c33580..c708dabbe5 100644
--- a/sandbox/travelsample/launchers/blog-feed/build.xml
+++ b/sandbox/travelsample/launchers/blog-feed/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-blog-feed" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/blog-feed/pom.xml b/sandbox/travelsample/launchers/blog-feed/pom.xml
index 11d1c186fa..7df381d2e1 100644
--- a/sandbox/travelsample/launchers/blog-feed/pom.xml
+++ b/sandbox/travelsample/launchers/blog-feed/pom.xml
@@ -32,8 +32,15 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-api</artifactId>
+ <version>${tuscany.version}</version>
</dependency>
<dependency>
@@ -87,6 +94,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/build.xml b/sandbox/travelsample/launchers/build.xml
index b080b2c473..a391f8e0cc 100644
--- a/sandbox/travelsample/launchers/build.xml
+++ b/sandbox/travelsample/launchers/build.xml
@@ -38,7 +38,6 @@
</target>
<target name="allsubdirs">
- <ant dir="common" target="${target}"/> <!--needed by blog-feed-->
<ant dir="blog-feed" target="${target}"/>
<ant dir="currency-converter" target="${target}"/>
<ant dir="currency-converter-corba" target="${target}"/>
diff --git a/sandbox/travelsample/launchers/currency-converter-corba/build.xml b/sandbox/travelsample/launchers/currency-converter-corba/build.xml
index 0e51e79bca..20c4a3c11c 100644
--- a/sandbox/travelsample/launchers/currency-converter-corba/build.xml
+++ b/sandbox/travelsample/launchers/currency-converter-corba/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-currency-converter-corba" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- After starting the SCA CORBA service by invoking the "run" target below,
diff --git a/sandbox/travelsample/launchers/currency-converter-corba/pom.xml b/sandbox/travelsample/launchers/currency-converter-corba/pom.xml
index 43fc75d156..bf82181763 100644
--- a/sandbox/travelsample/launchers/currency-converter-corba/pom.xml
+++ b/sandbox/travelsample/launchers/currency-converter-corba/pom.xml
@@ -32,10 +32,11 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
-
+
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-api</artifactId>
@@ -87,6 +88,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/currency-converter-jms/build.xml b/sandbox/travelsample/launchers/currency-converter-jms/build.xml
index f67a8fd907..470e28bbf9 100644
--- a/sandbox/travelsample/launchers/currency-converter-jms/build.xml
+++ b/sandbox/travelsample/launchers/currency-converter-jms/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-currency-converter-jms" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- Before invoking the "run" target, the JMS broker needs to be
diff --git a/sandbox/travelsample/launchers/currency-converter-jms/pom.xml b/sandbox/travelsample/launchers/currency-converter-jms/pom.xml
index 674944efb7..d69d8a5cb1 100644
--- a/sandbox/travelsample/launchers/currency-converter-jms/pom.xml
+++ b/sandbox/travelsample/launchers/currency-converter-jms/pom.xml
@@ -32,10 +32,11 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
-
+
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-api</artifactId>
@@ -98,6 +99,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/currency-converter-rmi/build.xml b/sandbox/travelsample/launchers/currency-converter-rmi/build.xml
index ff42ceac1c..e61222505e 100644
--- a/sandbox/travelsample/launchers/currency-converter-rmi/build.xml
+++ b/sandbox/travelsample/launchers/currency-converter-rmi/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-currency-converter-rmi" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- After starting the SCA RMI service by invoking the "run" target below,
diff --git a/sandbox/travelsample/launchers/currency-converter-rmi/pom.xml b/sandbox/travelsample/launchers/currency-converter-rmi/pom.xml
index 954b82fc8e..2782f72a76 100644
--- a/sandbox/travelsample/launchers/currency-converter-rmi/pom.xml
+++ b/sandbox/travelsample/launchers/currency-converter-rmi/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -94,6 +95,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/currency-converter-ws/build.xml b/sandbox/travelsample/launchers/currency-converter-ws/build.xml
index c7ffc87570..be278c5c24 100644
--- a/sandbox/travelsample/launchers/currency-converter-ws/build.xml
+++ b/sandbox/travelsample/launchers/currency-converter-ws/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-currency-converter-ws" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- After starting the SCA Web service by invoking the "run" target below,
diff --git a/sandbox/travelsample/launchers/currency-converter-ws/pom.xml b/sandbox/travelsample/launchers/currency-converter-ws/pom.xml
index fc4d563480..cc57ab3c9e 100644
--- a/sandbox/travelsample/launchers/currency-converter-ws/pom.xml
+++ b/sandbox/travelsample/launchers/currency-converter-ws/pom.xml
@@ -33,8 +33,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -88,6 +89,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/currency-converter/build.xml b/sandbox/travelsample/launchers/currency-converter/build.xml
index 87d27f555f..2771b47262 100644
--- a/sandbox/travelsample/launchers/currency-converter/build.xml
+++ b/sandbox/travelsample/launchers/currency-converter/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-currency-converter" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/currency-converter/pom.xml b/sandbox/travelsample/launchers/currency-converter/pom.xml
index 1569625eac..e2dd7cf85b 100644
--- a/sandbox/travelsample/launchers/currency-converter/pom.xml
+++ b/sandbox/travelsample/launchers/currency-converter/pom.xml
@@ -32,10 +32,11 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
-
+
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-api</artifactId>
@@ -73,6 +74,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/databinding/build.xml b/sandbox/travelsample/launchers/databinding/build.xml
index 810d656642..32756dad73 100644
--- a/sandbox/travelsample/launchers/databinding/build.xml
+++ b/sandbox/travelsample/launchers/databinding/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-databinding" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/databinding/pom.xml b/sandbox/travelsample/launchers/databinding/pom.xml
index 517b3e23c3..8ebfef67af 100644
--- a/sandbox/travelsample/launchers/databinding/pom.xml
+++ b/sandbox/travelsample/launchers/databinding/pom.xml
@@ -33,8 +33,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -152,6 +153,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/feed-logger/build.xml b/sandbox/travelsample/launchers/feed-logger/build.xml
index 5823cf2be3..26031f3686 100644
--- a/sandbox/travelsample/launchers/feed-logger/build.xml
+++ b/sandbox/travelsample/launchers/feed-logger/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-feed-logger" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/feed-logger/pom.xml b/sandbox/travelsample/launchers/feed-logger/pom.xml
index c05ec8d13c..5b8a188592 100644
--- a/sandbox/travelsample/launchers/feed-logger/pom.xml
+++ b/sandbox/travelsample/launchers/feed-logger/pom.xml
@@ -33,8 +33,15 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-api</artifactId>
+ <version>${tuscany.version}</version>
</dependency>
<dependency>
@@ -88,6 +95,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/fullapp/build.xml b/sandbox/travelsample/launchers/fullapp/build.xml
index 9db479d923..977dd2710c 100644
--- a/sandbox/travelsample/launchers/fullapp/build.xml
+++ b/sandbox/travelsample/launchers/fullapp/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-fullapp" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/fullapp/pom.xml b/sandbox/travelsample/launchers/fullapp/pom.xml
index 9d9784758b..7ece4347be 100644
--- a/sandbox/travelsample/launchers/fullapp/pom.xml
+++ b/sandbox/travelsample/launchers/fullapp/pom.xml
@@ -33,8 +33,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -191,6 +192,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/help-pages/build.xml b/sandbox/travelsample/launchers/help-pages/build.xml
index 0a3ecdde0c..6488677cb9 100644
--- a/sandbox/travelsample/launchers/help-pages/build.xml
+++ b/sandbox/travelsample/launchers/help-pages/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-help-pages" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/help-pages/pom.xml b/sandbox/travelsample/launchers/help-pages/pom.xml
index 4b86ae3ec4..a501b7849c 100644
--- a/sandbox/travelsample/launchers/help-pages/pom.xml
+++ b/sandbox/travelsample/launchers/help-pages/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -87,6 +88,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/interaction/build.xml b/sandbox/travelsample/launchers/interaction/build.xml
index 981bf34176..28d3c93d61 100644
--- a/sandbox/travelsample/launchers/interaction/build.xml
+++ b/sandbox/travelsample/launchers/interaction/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-interaction" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/interaction/pom.xml b/sandbox/travelsample/launchers/interaction/pom.xml
index 76869a5a8c..7cff4aaea7 100644
--- a/sandbox/travelsample/launchers/interaction/pom.xml
+++ b/sandbox/travelsample/launchers/interaction/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -87,6 +88,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/introducing/build.xml b/sandbox/travelsample/launchers/introducing/build.xml
index 8ee16e40b2..2da6f00d28 100644
--- a/sandbox/travelsample/launchers/introducing/build.xml
+++ b/sandbox/travelsample/launchers/introducing/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-introducing" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/introducing/pom.xml b/sandbox/travelsample/launchers/introducing/pom.xml
index 9ae1f95069..5ded853c2a 100644
--- a/sandbox/travelsample/launchers/introducing/pom.xml
+++ b/sandbox/travelsample/launchers/introducing/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -73,6 +74,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/jumpstart/build.xml b/sandbox/travelsample/launchers/jumpstart/build.xml
index 5b58c98eb8..1ae0e6133e 100644
--- a/sandbox/travelsample/launchers/jumpstart/build.xml
+++ b/sandbox/travelsample/launchers/jumpstart/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-jumpstart" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/jumpstart/pom.xml b/sandbox/travelsample/launchers/jumpstart/pom.xml
index c13d37281b..1f3722d993 100644
--- a/sandbox/travelsample/launchers/jumpstart/pom.xml
+++ b/sandbox/travelsample/launchers/jumpstart/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -73,6 +74,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/notification-corba/build.xml b/sandbox/travelsample/launchers/notification-corba/build.xml
index d4d1af0e76..10146b8500 100644
--- a/sandbox/travelsample/launchers/notification-corba/build.xml
+++ b/sandbox/travelsample/launchers/notification-corba/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-notification-corba" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- Before invoking the "run" target, both the CORBA nameserver and
diff --git a/sandbox/travelsample/launchers/notification-corba/pom.xml b/sandbox/travelsample/launchers/notification-corba/pom.xml
index ec157517e0..b99b64b0cf 100644
--- a/sandbox/travelsample/launchers/notification-corba/pom.xml
+++ b/sandbox/travelsample/launchers/notification-corba/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -87,6 +88,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/notification-ejb/build.xml b/sandbox/travelsample/launchers/notification-ejb/build.xml
index edf78c4773..f9dbaeb246 100644
--- a/sandbox/travelsample/launchers/notification-ejb/build.xml
+++ b/sandbox/travelsample/launchers/notification-ejb/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-notification-ejb" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- Before invoking the "run" target, the EJB server for the SMS Gateway EJB
diff --git a/sandbox/travelsample/launchers/notification-ejb/pom.xml b/sandbox/travelsample/launchers/notification-ejb/pom.xml
index d04c99c36d..06cd88f2fd 100644
--- a/sandbox/travelsample/launchers/notification-ejb/pom.xml
+++ b/sandbox/travelsample/launchers/notification-ejb/pom.xml
@@ -32,10 +32,11 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
-
+
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-api</artifactId>
@@ -93,6 +94,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/notification-jms/build.xml b/sandbox/travelsample/launchers/notification-jms/build.xml
index 829fbcfdf8..3d20022d2e 100644
--- a/sandbox/travelsample/launchers/notification-jms/build.xml
+++ b/sandbox/travelsample/launchers/notification-jms/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-notification-jms" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- Before invoking the "run" target, both the JMS broker and the
diff --git a/sandbox/travelsample/launchers/notification-jms/pom.xml b/sandbox/travelsample/launchers/notification-jms/pom.xml
index e39f7b6691..0441ba9cff 100644
--- a/sandbox/travelsample/launchers/notification-jms/pom.xml
+++ b/sandbox/travelsample/launchers/notification-jms/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -131,6 +132,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/notification-rmi/build.xml b/sandbox/travelsample/launchers/notification-rmi/build.xml
index 7d544378be..c21d30071d 100644
--- a/sandbox/travelsample/launchers/notification-rmi/build.xml
+++ b/sandbox/travelsample/launchers/notification-rmi/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-notification-rmi" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- Before invoking the "run" target, the RMI server for the SMS Gateway
diff --git a/sandbox/travelsample/launchers/notification-rmi/pom.xml b/sandbox/travelsample/launchers/notification-rmi/pom.xml
index 7b41496c9f..ecac2d2d18 100644
--- a/sandbox/travelsample/launchers/notification-rmi/pom.xml
+++ b/sandbox/travelsample/launchers/notification-rmi/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -87,6 +88,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/notification-ws/build.xml b/sandbox/travelsample/launchers/notification-ws/build.xml
index cc9e73890c..7f8e3bc917 100644
--- a/sandbox/travelsample/launchers/notification-ws/build.xml
+++ b/sandbox/travelsample/launchers/notification-ws/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-notification-ws" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<!-- Before invoking the "run" target, the JAX-WS server for the SMS Gateway
diff --git a/sandbox/travelsample/launchers/notification-ws/pom.xml b/sandbox/travelsample/launchers/notification-ws/pom.xml
index 9a31916603..19669752cb 100644
--- a/sandbox/travelsample/launchers/notification-ws/pom.xml
+++ b/sandbox/travelsample/launchers/notification-ws/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -87,6 +88,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/policy/build.xml b/sandbox/travelsample/launchers/policy/build.xml
index 376a1830bc..57001f70e3 100644
--- a/sandbox/travelsample/launchers/policy/build.xml
+++ b/sandbox/travelsample/launchers/policy/build.xml
@@ -20,7 +20,7 @@
<project name="scatours-launcher-policy" default="compile">
<import file="../../antdefs.xml"/>
<path id="compile-path">
- <pathelement path="../common/target/scatours-launcher-common.jar"/>
+ <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
</path>
<target name="run">
diff --git a/sandbox/travelsample/launchers/policy/pom.xml b/sandbox/travelsample/launchers/policy/pom.xml
index 292ad75c00..bb2c34a4fb 100644
--- a/sandbox/travelsample/launchers/policy/pom.xml
+++ b/sandbox/travelsample/launchers/policy/pom.xml
@@ -32,8 +32,9 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<version>${pom.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -94,6 +95,9 @@
<version>2.2</version>
<configuration>
<archive>
+ <manifestEntries>
+ <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+ </manifestEntries>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>../lib/</classpathPrefix>
diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml
index 2e23f03b30..2bb2e8a31b 100644
--- a/sandbox/travelsample/launchers/pom.xml
+++ b/sandbox/travelsample/launchers/pom.xml
@@ -37,7 +37,6 @@
<activeByDefault>true</activeByDefault>
</activation>
<modules>
- <module>common</module>
<module>blog-feed</module>
<module>currency-converter</module>
<module>currency-converter-corba</module>
diff --git a/sandbox/travelsample/pom.xml b/sandbox/travelsample/pom.xml
index 35a63d0929..3c72711f20 100644
--- a/sandbox/travelsample/pom.xml
+++ b/sandbox/travelsample/pom.xml
@@ -91,6 +91,7 @@
<tuscany.version>1.6-SNAPSHOT</tuscany.version>
</properties>
<modules>
+ <module>util</module>
<module>contributions</module>
<module>launchers</module>
<module>services</module>
diff --git a/sandbox/travelsample/util/build.xml b/sandbox/travelsample/util/build.xml
new file mode 100644
index 0000000000..3ab8df5da3
--- /dev/null
+++ b/sandbox/travelsample/util/build.xml
@@ -0,0 +1,44 @@
+<!--
+ * 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.
+-->
+
+<project name="scatours-util" default="compile">
+
+ <target name="compile">
+ <antcall target="allsubdirs">
+ <param name="target" value="compile"/>
+ </antcall>
+ </target>
+
+ <target name="test">
+ <antcall target="allsubdirs">
+ <param name="target" value="test"/>
+ </antcall>
+ </target>
+
+ <target name="clean">
+ <antcall target="allsubdirs">
+ <param name="target" value="clean"/>
+ </antcall>
+ </target>
+
+ <target name="allsubdirs">
+ <ant dir="launcher-common" target="${target}"/>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/launchers/common/build.xml b/sandbox/travelsample/util/launcher-common/build.xml
index c56323c786..a8fe5faff0 100644
--- a/sandbox/travelsample/launchers/common/build.xml
+++ b/sandbox/travelsample/util/launcher-common/build.xml
@@ -17,6 +17,6 @@
* under the License.
-->
-<project name="scatours-launcher-common" default="compile">
+<project name="scatours-util-launcher-common" default="compile">
<import file="../../antdefs.xml"/>
</project>
diff --git a/sandbox/travelsample/launchers/common/pom.xml b/sandbox/travelsample/util/launcher-common/pom.xml
index 9424fd13d9..29ee3edf1e 100644
--- a/sandbox/travelsample/launchers/common/pom.xml
+++ b/sandbox/travelsample/util/launcher-common/pom.xml
@@ -25,7 +25,7 @@
<version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent><version>1.0-SNAPSHOT</version>
- <artifactId>scatours-launcher-common</artifactId>
+ <artifactId>scatours-util-launcher-common</artifactId>
<name>Apache Tuscany SCA Tours Common Utility for Launchers</name>
<dependencies>
@@ -35,5 +35,24 @@
<version>${tuscany.version}</version>
</dependency>
</dependencies>
-
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/sandbox/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java b/sandbox/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java
new file mode 100644
index 0000000000..828ee58bf3
--- /dev/null
+++ b/sandbox/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java
@@ -0,0 +1,82 @@
+/*
+ * 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.launcher;
+
+import java.io.File;
+
+import org.apache.tuscany.sca.node.SCAContribution;
+import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+
+/**
+ * This utility locates SCA contributions by name so that the launcher can work with various environments where
+ * contributions are stored differently.
+ */
+public class LauncherUtil {
+
+ /**
+ * Locate an SCA contribution by name
+ * @param name The name of the SCA contribution archive
+ * @return The SCAContribution
+ */
+ public static SCAContribution locate(String name) {
+ // Try to use the target/classes directory inside Eclipse/Maven
+ File file = new File("../../contributions/" + name + "/target/classes");
+ if (!file.exists()) {
+ // Try to use the target/<contribution>.jar that is generated by maven build
+ file = new File("../../contributions/" + name + "/target/scatours-contribution-" + name + ".jar");
+ if (!file.exists()) {
+ // Try to use the contribution jar under the contributions folder of the distribution
+ file = new File("../contributions/scatours-contribution-" + name + ".jar");
+ if (!file.exists()) {
+ throw new IllegalArgumentException("Contribution " + name + " cannot be located.");
+ }
+ }
+ }
+ return new SCAContribution(name, file.toURI().toString());
+ }
+
+ /**
+ * Locate an SCA contribution by replacing the ${name} in the pattern
+ * @param urlPattern The url pattern that contains ${name}
+ * @param name The name of the contribution archive
+ * @return The SCAContribution
+ */
+ public static SCAContribution locate(String urlPattern, String name) {
+ String url = urlPattern.replace("${name}", name);
+ return new SCAContribution(name, url);
+ }
+
+ /**
+ * Create an SCA node from a list of contribution names
+ * @param composite
+ * @param contributionNames
+ * @return
+ */
+ public static SCANode createNode(String composite, String... contributionNames) {
+ SCAContribution[] contributions = new SCAContribution[contributionNames.length];
+ int index = 0;
+ for (String name : contributionNames) {
+ contributions[index++] = locate(name);
+ }
+ SCANode node = SCANodeFactory.newInstance().createSCANode(composite, contributions);
+ return node;
+ }
+}
diff --git a/sandbox/travelsample/util/pom.xml b/sandbox/travelsample/util/pom.xml
new file mode 100644
index 0000000000..265803644c
--- /dev/null
+++ b/sandbox/travelsample/util/pom.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-util</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache Tuscany SCA Tours Utilities</name>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>launcher-common</module>
+ </modules>
+ </profile>
+ </profiles>
+
+</project>