summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/binding-ws-calculator
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-09-18 16:32:34 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-09-18 16:32:34 +0000
commitf92b34e113981f791d2b5c5004991d3f90ec5276 (patch)
treeefd7d5ba2e5395f7a632f3241dce76f81c3746bd /java/sca/samples/binding-ws-calculator
parentdb06a8d9de25db76909ba5806e4e93eaee4556ed (diff)
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
Diffstat (limited to 'java/sca/samples/binding-ws-calculator')
-rw-r--r--java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java5
1 files changed, 4 insertions, 1 deletions
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();