diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-26 23:09:47 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-26 23:09:47 +0000 |
commit | b3b51ca45fd68619d630287341694f5e92d9e7fd (patch) | |
tree | 881b1e824615166b5b15d6624e68bfd13fbbf06f /sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src | |
parent | 019246f0026d992e7409827de8e4d13cd59e5f04 (diff) |
TUSCANY-3434 - Applying the same fix from 1.5.1 (TUSCANY-3292) to fix how the spring context path is calculated
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@903478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src')
-rw-r--r-- | sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java index 3b73ba00c1..581cf5d330 100644 --- a/sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java +++ b/sca-java-1.x/branches/sca-java-1.6/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java @@ -738,7 +738,7 @@ public class SpringXMLComponentTypeLoader { // Deal with the directory inside a jar file, in case the contribution itself is a JAR file.
try {
if (locationFile.getPath().indexOf(".jar") > 0) {
- String jarPath = url.getPath().substring(6, url.getPath().indexOf("!"));
+ String jarPath = url.getPath().substring(5, url.getPath().indexOf("!"));
JarFile jf = new JarFile(jarPath);
JarEntry je = jf.getJarEntry(url.getPath().substring(url.getPath().indexOf("!/")+2)
+ "/" + "META-INF" + "/" + "MANIFEST.MF");
|