From 18d8aa3401326d927bbb0665e25dd0f2cdce92fd Mon Sep 17 00:00:00 2001 From: rfeng Date: Thu, 5 Nov 2009 19:32:26 +0000 Subject: 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 --- sandbox/travelsample/launchers/blog-feed/pom.xml | 7 +++++++ .../blog-feed/src/main/java/scatours/BlogFeedLauncher.java | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'sandbox/travelsample/launchers/blog-feed') diff --git a/sandbox/travelsample/launchers/blog-feed/pom.xml b/sandbox/travelsample/launchers/blog-feed/pom.xml index b2a49570d9..de942815c6 100644 --- a/sandbox/travelsample/launchers/blog-feed/pom.xml +++ b/sandbox/travelsample/launchers/blog-feed/pom.xml @@ -29,6 +29,13 @@ Apache Tuscany SCA Tours Blog Feed Launcher + + + org.apache.tuscany.sca + scatours-launcher-common + ${pom.version} + + org.apache.tuscany.sca tuscany-node-impl diff --git a/sandbox/travelsample/launchers/blog-feed/src/main/java/scatours/BlogFeedLauncher.java b/sandbox/travelsample/launchers/blog-feed/src/main/java/scatours/BlogFeedLauncher.java index f6712dc00e..54d94ec046 100644 --- a/sandbox/travelsample/launchers/blog-feed/src/main/java/scatours/BlogFeedLauncher.java +++ b/sandbox/travelsample/launchers/blog-feed/src/main/java/scatours/BlogFeedLauncher.java @@ -19,6 +19,8 @@ package scatours; +import static scatours.launcher.LauncherUtil.locate; + import org.apache.tuscany.sca.node.SCAContribution; import org.apache.tuscany.sca.node.SCANode; import org.apache.tuscany.sca.node.SCANodeFactory; @@ -27,8 +29,7 @@ public class BlogFeedLauncher { public static void main(String[] args) throws Exception { SCAContribution feedContribution = - new SCAContribution("blog-feed", - "../../contributions/blog-feed/target/classes"); + locate("blog-feed"); SCANode node = SCANodeFactory.newInstance().createSCANode( "blog-feed.composite", feedContribution); -- cgit v1.2.3