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 --- .../src/main/java/scatours/CurrencyConverterCORBALauncher.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sandbox/travelsample/launchers/currency-converter-corba/src/main/java') diff --git a/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java b/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java index f1bdbb852d..d18acc6df1 100644 --- a/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java +++ b/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java @@ -19,6 +19,8 @@ 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; @@ -30,11 +32,9 @@ public class CurrencyConverterCORBALauncher { public static void main(String[] args) throws Exception { SCAContribution currencyCORBAContribution = - new SCAContribution("currency-corba", - "../../contributions/currency-corba/target/classes"); + locate("currency-corba"); SCAContribution currencyContribution = - new SCAContribution("currency", - "../../contributions/currency/target/classes"); + locate("currency"); SCANode node = SCANodeFactory.newInstance().createSCANode( "currency-converter-corba.composite", currencyContribution, currencyCORBAContribution); -- cgit v1.2.3