Author: lresende
Date: Tue Jan 26 23:11:43 2010
New Revision: 903480
URL: http://svn.apache.org/viewvc?rev=903480&view=rev
Log:
TUSCANY-3434 - Applying the same fix from 1.5.1 (TUSCANY-3292) to fix how the
spring context path is calculated
Modified:
tuscany/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
Modified:
tuscany/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java?rev=903480&r1=903479&r2=903480&view=diff
==============================================================================
---
tuscany/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
(original)
+++
tuscany/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
Tue Jan 26 23:11:43 2010
@@ -738,7 +738,7 @@
// 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");