diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 19:32:26 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 19:32:26 +0000 |
commit | 18d8aa3401326d927bbb0665e25dd0f2cdce92fd (patch) | |
tree | 0ae9e8d37b818600d4f7f3dcdf6a736f2060033d /sandbox/travelsample/launchers/databinding | |
parent | c258d9427a37bbd1f152483267920514ebb18e0a (diff) |
Introduce a LauncherUtil to locate contributions by name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/databinding')
-rw-r--r-- | sandbox/travelsample/launchers/databinding/pom.xml | 7 | ||||
-rw-r--r-- | sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/sandbox/travelsample/launchers/databinding/pom.xml b/sandbox/travelsample/launchers/databinding/pom.xml index 76a0d3524e..da2133dea0 100644 --- a/sandbox/travelsample/launchers/databinding/pom.xml +++ b/sandbox/travelsample/launchers/databinding/pom.xml @@ -30,6 +30,13 @@ <name>Apache Tuscany SCA Tours Databinding Launcher</name> <dependencies> + + <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>tuscany-node-api</artifactId> diff --git a/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java b/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java index 7128c966de..1ae22baca6 100644 --- a/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java +++ b/sandbox/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java @@ -19,19 +19,20 @@ package scatours; +import static scatours.launcher.LauncherUtil.locate; + import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; import org.apache.tuscany.sca.node.SCANode; import org.apache.tuscany.sca.node.SCANodeFactory; public class DatabindingLauncher { public static void main(String[] args) throws Exception { SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, - new SCAContribution("paymentjava", "../../contributions/payment-java/target/classes"), - new SCAContribution("client", "../../contributions/databinding-client/target/classes")); + locate("paymentjava"), + locate("client")); SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, - new SCAContribution("creditcardpaymentsdo", "../../contributions/creditcard-payment-sdo/target/classes")); + locate("creditcardpaymentsdo")); node1.start(); node2.start(); |