From f92b34e113981f791d2b5c5004991d3f90ec5276 Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 18 Sep 2009 16:32:34 +0000 Subject: Use the explicit contribution location to avoid conflicts inside Eclipse as the test dependencies are on the classpath git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@816705 13f79535-47bb-0310-9956-ffa450edef68 --- .../binding-ws-calculator/src/main/java/sample/SampleClientImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'java/sca/samples/binding-ws-calculator') diff --git a/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java b/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java index 3f6ecfdb03..000c108934 100644 --- a/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java +++ b/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java @@ -19,6 +19,8 @@ package sample; +import org.apache.tuscany.sca.node.Contribution; +import org.apache.tuscany.sca.node.ContributionLocationHelper; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; @@ -28,7 +30,8 @@ import org.apache.tuscany.sca.node.NodeFactory; */ public class SampleClientImpl { public static void main(String[] args) throws Exception { - Node node = NodeFactory.newInstance().createNode(); + String location = ContributionLocationHelper.getContributionLocation(SampleClient.class); + Node node = NodeFactory.newInstance().createNode(new Contribution("c1", location)); node.start(); -- cgit v1.2.3