From: <svn...@os...> - 2012-04-18 13:42:49
|
Author: jdeolive Date: 2012-04-18 06:42:37 -0700 (Wed, 18 Apr 2012) New Revision: 38675 Modified: branches/2.7.x/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java Log: GEOT-4111, fixing issue with schema path containing space, patch supplied by Brett Walker Modified: branches/2.7.x/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java =================================================================== --- branches/2.7.x/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java 2012-04-16 03:06:37 UTC (rev 38674) +++ branches/2.7.x/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java 2012-04-18 13:42:37 UTC (rev 38675) @@ -115,8 +115,8 @@ return; } - String schemaLocation = new File(TestConfiguration.class.getResource("test.xsd").getFile()) - .getAbsolutePath(); + // The schema location needs to be a well formed URI/URL, a file path is not sufficient. + String schemaLocation = TestConfiguration.class.getResource("test.xsd").toString(); ApplicationSchemaConfiguration configuration = new ApplicationSchemaConfiguration(TEST.NAMESPACE, schemaLocation); |