From: Mathieu Baudier Date: Thu, 2 Oct 2008 07:46:27 +0000 (+0000) Subject: Integrate detached with standard SLC X-Git-Tag: argeo-slc-2.1.7~2516 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=c95d1a745fc431cdf7455a0e679516d537593a21;p=gpl%2Fargeo-slc.git Integrate detached with standard SLC git-svn-id: https://svn.argeo.org/slc/trunk@1675 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.slc.core/pom.xml b/org.argeo.slc.core/pom.xml index 2fd411994..61da5f740 100644 --- a/org.argeo.slc.core/pom.xml +++ b/org.argeo.slc.core/pom.xml @@ -1,74 +1,81 @@ - - 4.0.0 - - org.argeo.slc - argeo-slc - 0.11.1-SNAPSHOT - ../org.argeo.slc - - argeo-slc-core - Argeo SLC Core - SLC Core - - scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core - https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - org.apache.maven.plugins - maven-source-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - - - - - - log4j - log4j - + + 4.0.0 + + org.argeo.slc + argeo-slc + 0.11.1-SNAPSHOT + ../org.argeo.slc + + argeo-slc-core + Argeo SLC Core + SLC Core + + + scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core + + + https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-source-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + + log4j + log4j + - - org.springframework - spring-context - - - org.springframework.ws - spring-oxm - + + org.springframework + spring-context + 2.0.8 + + + org.springframework.ws + spring-oxm + - - org.codehaus.castor - castor - - - xerces - xercesImpl - - - xalan - xalan - + + org.codehaus.castor + castor + + + xerces + xercesImpl + + + xalan + xalan + - - commons-io - commons-io - - - org.dbunit - dbunit - - - junit - junit - - + + commons-io + commons-io + + + org.dbunit + dbunit + + + junit + junit + + \ No newline at end of file diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/spring/SpringUtils.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/spring/SpringUtils.java index 2b7569f88..798b5648e 100644 --- a/org.argeo.slc.core/src/main/java/org/argeo/slc/spring/SpringUtils.java +++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/spring/SpringUtils.java @@ -55,9 +55,9 @@ public class SpringUtils { public static String extractRelativePath(Resource ancestor, Resource child) { try { - return ancestor.getURI().relativize(child.getURI()).normalize() - .toString(); - } catch (IOException e) { + return ancestor.getURL().toURI().relativize(child.getURL().toURI()) + .normalize().toString(); + } catch (Exception e) { throw new SlcException("Cannot extract relative path of " + child + " based on " + ancestor, e); }