summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-03-02 22:17:17 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-03-02 22:17:17 +0000
commitea8efc9201e9e2c349b44598d49492d5f2a9c8cb (patch)
tree346e9a9e1b1fd14e443fa373c5a3118979b22072 /sca-java-2.x/trunk/modules/binding-atom-js-dojo/src
parent8444320b74276494d72ca81cf390b0bb2dc4d3b0 (diff)
Remove any leading slash from the service URI
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918221 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-atom-js-dojo/src')
-rw-r--r--sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java b/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java
index abc3c0c342..c758f78b4f 100644
--- a/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java
+++ b/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java
@@ -70,6 +70,9 @@ public class AtomBindingJavascriptProxyFactoryImpl implements JavascriptProxyFac
URI targetURI = URI.create(binding.getURI());
String targetPath = targetURI.getPath();
+ if (targetPath.startsWith("/")) {
+ targetPath = targetPath.substring(1);
+ }
return "tuscany.AtomService(\"" + targetPath + "\")";
}