diff --git a/DataExtractionOSM/OsmAnd-core.jar b/DataExtractionOSM/OsmAnd-core.jar new file mode 100644 index 0000000000..17d021cd8e Binary files /dev/null and b/DataExtractionOSM/OsmAnd-core.jar differ diff --git a/DataExtractionOSM/ant-lib/ant-googlecode-0.0.2.jar b/DataExtractionOSM/ant-lib/ant-googlecode-0.0.2.jar deleted file mode 100644 index fa51d57c1c..0000000000 Binary files a/DataExtractionOSM/ant-lib/ant-googlecode-0.0.2.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/asm-3.2.jar b/DataExtractionOSM/ant-lib/asm-3.2.jar deleted file mode 100644 index 334e7fdc7f..0000000000 Binary files a/DataExtractionOSM/ant-lib/asm-3.2.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/ganymed.jar b/DataExtractionOSM/ant-lib/ganymed.jar deleted file mode 100644 index e3bde26c74..0000000000 Binary files a/DataExtractionOSM/ant-lib/ganymed.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/jaxen-1.1.1.jar b/DataExtractionOSM/ant-lib/jaxen-1.1.1.jar deleted file mode 100644 index b63363113f..0000000000 Binary files a/DataExtractionOSM/ant-lib/jaxen-1.1.1.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/pmd-4.2.6.jar b/DataExtractionOSM/ant-lib/pmd-4.2.6.jar deleted file mode 100644 index c727df16ce..0000000000 Binary files a/DataExtractionOSM/ant-lib/pmd-4.2.6.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/svnClientAdapter.jar b/DataExtractionOSM/ant-lib/svnClientAdapter.jar deleted file mode 100644 index ed37ba4671..0000000000 Binary files a/DataExtractionOSM/ant-lib/svnClientAdapter.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/svnant.jar b/DataExtractionOSM/ant-lib/svnant.jar deleted file mode 100644 index af52be0de6..0000000000 Binary files a/DataExtractionOSM/ant-lib/svnant.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/svnjavahl.jar b/DataExtractionOSM/ant-lib/svnjavahl.jar deleted file mode 100644 index 7187305786..0000000000 Binary files a/DataExtractionOSM/ant-lib/svnjavahl.jar and /dev/null differ diff --git a/DataExtractionOSM/ant-lib/svnkit.jar b/DataExtractionOSM/ant-lib/svnkit.jar deleted file mode 100644 index 8fe3f41497..0000000000 Binary files a/DataExtractionOSM/ant-lib/svnkit.jar and /dev/null differ diff --git a/DataExtractionOSM/build.xml b/DataExtractionOSM/build.xml index 6772ba4a37..965700248e 100644 --- a/DataExtractionOSM/build.xml +++ b/DataExtractionOSM/build.xml @@ -5,6 +5,8 @@ + + @@ -17,11 +19,10 @@ - - - - + + + @@ -40,6 +41,8 @@ + + @@ -63,9 +66,7 @@ classpathref="build.path" debug="on" source="1.6" - > - - + /> + + + @@ -101,7 +105,7 @@ - + @@ -144,6 +148,7 @@ + @@ -151,6 +156,11 @@ + + + + + @@ -158,13 +168,4 @@ - - - - - - - - diff --git a/DataExtractionOSM/lib/OsmAnd-core.jar b/DataExtractionOSM/lib/OsmAnd-core.jar new file mode 100644 index 0000000000..8a7b44b3f3 Binary files /dev/null and b/DataExtractionOSM/lib/OsmAnd-core.jar differ diff --git a/OsmAnd-java/src/net/osmand/map/RegionsRegistryConverter.java b/DataExtractionOSM/src/net/osmand/map/RegionsRegistryConverter.java similarity index 95% rename from OsmAnd-java/src/net/osmand/map/RegionsRegistryConverter.java rename to DataExtractionOSM/src/net/osmand/map/RegionsRegistryConverter.java index 6937209788..b7d5153072 100644 --- a/OsmAnd-java/src/net/osmand/map/RegionsRegistryConverter.java +++ b/DataExtractionOSM/src/net/osmand/map/RegionsRegistryConverter.java @@ -103,13 +103,13 @@ public class RegionsRegistryConverter { regions.addRegions(c.convert()); } - String filePath = "src/net/osmand/map/"+RegionRegistry.fileName; + String filePath = "../OsmAnd-java/src/net/osmand/map/"+RegionRegistry.fileName; long t = -System.currentTimeMillis(); FileOutputStream out = new FileOutputStream(filePath); OsmAndRegionInfo.newBuilder().setRegionInfo(regions) .build().writeTo(out); out.close(); - InputStream in = RegionsRegistryConverter.class.getResourceAsStream(RegionRegistry.fileName); + InputStream in = RegionRegistry.class.getResourceAsStream(RegionRegistry.fileName); OsmAndRegionInfo regInfo = OsmAndRegionInfo.newBuilder().mergeFrom(in).build(); t += System.currentTimeMillis(); for(int j = 0; j < regInfo.getRegionInfo().getRegionsCount(); j++) { diff --git a/OsmAnd-java/.gitignore b/OsmAnd-java/.gitignore index ba077a4031..93dbb11f5a 100644 --- a/OsmAnd-java/.gitignore +++ b/OsmAnd-java/.gitignore @@ -1 +1,3 @@ bin +OsmAnd-core.jar +build diff --git a/OsmAnd-java/build.xml b/OsmAnd-java/build.xml new file mode 100644 index 0000000000..abd875d809 --- /dev/null +++ b/OsmAnd-java/build.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + list is ${lib.list} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OsmAnd-java/src/net/osmand/map/RegionRegistry.java b/OsmAnd-java/src/net/osmand/map/RegionRegistry.java index 0320fbcfad..d41c6a99ac 100644 --- a/OsmAnd-java/src/net/osmand/map/RegionRegistry.java +++ b/OsmAnd-java/src/net/osmand/map/RegionRegistry.java @@ -22,7 +22,7 @@ public class RegionRegistry { try { long t = -System.currentTimeMillis(); r = new RegionRegistry(); - InputStream in = RegionsRegistryConverter.class.getResourceAsStream(RegionRegistry.fileName); + InputStream in = RegionRegistry.class.getResourceAsStream(RegionRegistry.fileName); OsmAndRegionInfo regInfo = OsmAndRegionInfo.newBuilder().mergeFrom(in).build(); for(int j = 0; j < regInfo.getRegionInfo().getRegionsCount(); j++) { r.countries.add(RegionCountry.construct(regInfo.getRegionInfo().getRegions(j)));