From bf1f6b4f6cc4150a449b12a25256d2f8b3f803fb Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Tue, 29 Mar 2011 16:17:28 +0000 Subject: [PATCH] Iprove GIS Fix support JUnit git-svn-id: https://svn.argeo.org/commons/trunk@4392 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- basic/runtime/org.argeo.support.junit/.classpath | 2 +- basic/runtime/org.argeo.support.junit/.project | 9 +++++++-- basic/runtime/org.argeo.support.junit/pom.xml | 4 +++- .../main/java/org/argeo/geotools/jcr/GeoJcrIndex.java | 7 +++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/basic/runtime/org.argeo.support.junit/.classpath b/basic/runtime/org.argeo.support.junit/.classpath index 16f01e2ee..b9f9fd2f3 100644 --- a/basic/runtime/org.argeo.support.junit/.classpath +++ b/basic/runtime/org.argeo.support.junit/.classpath @@ -2,6 +2,6 @@ - + diff --git a/basic/runtime/org.argeo.support.junit/.project b/basic/runtime/org.argeo.support.junit/.project index 9b9565dee..cc37598f2 100644 --- a/basic/runtime/org.argeo.support.junit/.project +++ b/basic/runtime/org.argeo.support.junit/.project @@ -11,13 +11,18 @@ - org.maven.ide.eclipse.maven2Builder + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder - org.maven.ide.eclipse.maven2Nature + org.eclipse.pde.PluginNature org.eclipse.jdt.core.javanature diff --git a/basic/runtime/org.argeo.support.junit/pom.xml b/basic/runtime/org.argeo.support.junit/pom.xml index 57922940b..e9b1653ac 100644 --- a/basic/runtime/org.argeo.support.junit/pom.xml +++ b/basic/runtime/org.argeo.support.junit/pom.xml @@ -1,4 +1,5 @@ - + 4.0.0 org.argeo.commons.basic @@ -31,6 +32,7 @@ org.argeo.support.junit.* + org.springframework.core.io,* diff --git a/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java b/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java index 75c1b81ad..b384eb3b6 100644 --- a/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java +++ b/gis/runtime/org.argeo.gis.geotools/src/main/java/org/argeo/geotools/jcr/GeoJcrIndex.java @@ -26,7 +26,6 @@ import org.argeo.jcr.JcrUtils; import org.argeo.jcr.gis.GisNames; import org.argeo.jcr.gis.GisTypes; import org.argeo.jts.jcr.JtsJcrUtils; -import org.argeo.security.SystemExecutionService; import org.geotools.data.DataStore; import org.geotools.data.DefaultTransaction; import org.geotools.data.FeatureStore; @@ -201,7 +200,7 @@ public class GeoJcrIndex implements EventListener, GisNames, GisTypes { if (node.isNodeType(GIS_LOCATED)) { locatedNode = node; } else if (node.isNodeType(GIS_INDEXED)) { - locatedNode = findLocatedparent(node); + locatedNode = findLocatedParent(node); } else { throw new ArgeoException("Unsupported node " + node); } @@ -231,12 +230,12 @@ public class GeoJcrIndex implements EventListener, GisNames, GisTypes { } } - protected Node findLocatedparent(Node child) { + protected Node findLocatedParent(Node child) { try { if (child.getParent().isNodeType(GIS_LOCATED)) return child.getParent(); else - return findLocatedparent(child.getParent()); + return findLocatedParent(child.getParent()); } catch (Exception e) { // also if child is root node throw new ArgeoException("Cannot find located parent", e); -- 2.30.2