upgrade build mechanism
git-svn-id: https://osmand.googlecode.com/svn/trunk@69 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
3b107a479c
commit
02663a32ee
5 changed files with 41 additions and 22 deletions
|
@ -7,12 +7,12 @@
|
||||||
<include name="*.jar"/>
|
<include name="*.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</path>
|
</path>
|
||||||
<manifestclasspath property="lib.list" jarfile="DataExtractionOSM.jar">
|
<manifestclasspath property="lib.list" jarfile="OsmAndMapCreator.jar">
|
||||||
<classpath refid="build-classpath"/>
|
<classpath refid="build-classpath"/>
|
||||||
</manifestclasspath>
|
</manifestclasspath>
|
||||||
<echo>list is ${lib.list}</echo>
|
<echo>list is ${lib.list}</echo>
|
||||||
|
|
||||||
<delete file="DataExtractionOSM.jar" />
|
<delete file="OsmAndMapCreator.jar" />
|
||||||
<delete file="MANIFEST.MF" />
|
<delete file="MANIFEST.MF" />
|
||||||
<manifest file="MANIFEST.MF">
|
<manifest file="MANIFEST.MF">
|
||||||
<attribute name="Built-By" value="${user.name}" />
|
<attribute name="Built-By" value="${user.name}" />
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<attribute name="Class-Path" value="${lib.list}"/>
|
<attribute name="Class-Path" value="${lib.list}"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
||||||
<jar destfile="DataExtractionOSM.jar" manifest="MANIFEST.MF">
|
<jar destfile="OsmAndMapCreator.jar" manifest="MANIFEST.MF">
|
||||||
<fileset dir="bin">
|
<fileset dir="bin">
|
||||||
<include name="**/*.class" />
|
<include name="**/*.class" />
|
||||||
</fileset>
|
</fileset>
|
||||||
|
@ -28,10 +28,22 @@
|
||||||
<include name="**/*.java" />
|
<include name="**/*.java" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</jar>
|
</jar>
|
||||||
|
|
||||||
<delete file="MANIFEST.MF" />
|
<delete file="MANIFEST.MF" />
|
||||||
</target>
|
</target>
|
||||||
<target name="build" depends="jar" />
|
|
||||||
|
|
||||||
|
<target name="build" depends="jar">
|
||||||
|
<delete dir="build"/>
|
||||||
|
<copy todir="build">
|
||||||
|
<fileset dir=".">
|
||||||
|
<include name="OsmAndMapCreator.jar"/>
|
||||||
|
<include name="lib/**"/>
|
||||||
|
<include name="run.bat"/>
|
||||||
|
<include name="run.sh"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
<delete file="OsmAndMapCreator.jar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
java -jar DataExtractionOSM.jar
|
REM the JVM. With the below settings the heap size (Available memory for the application)
|
||||||
|
REM will range from 64 megabyte up to 512 megabyte.
|
||||||
|
|
||||||
|
start javaw.exe -jar OsmAndMapCreator.jar -Xms64M -Xmx512M
|
7
DataExtractionOSM/run.sh
Normal file
7
DataExtractionOSM/run.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This file will start the Osm Extraction UI with custom memory settings for
|
||||||
|
# the JVM. With the below settings the heap size (Available memory for the application)
|
||||||
|
# will range from 64 megabyte up to 512 megabyte.
|
||||||
|
|
||||||
|
java -jar OsmAndMapCreator.jar -Xms64M -Xmx512M
|
|
@ -14,9 +14,6 @@ public class ToDoConstants {
|
||||||
// it is not editable in editor ?
|
// it is not editable in editor ?
|
||||||
public int MAKE_MAP_PANEL_EDITABLE_IN_EDITOR = 4;
|
public int MAKE_MAP_PANEL_EDITABLE_IN_EDITOR = 4;
|
||||||
|
|
||||||
// common parts : work with cache on file system & in memory
|
|
||||||
public int EXTRACT_COMMON_PARTS_FROM_MAPPANEL_AND_OSMMAPVIEW = 5;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write activity to show something about authors / donation ....
|
* Write activity to show something about authors / donation ....
|
||||||
*/
|
*/
|
||||||
|
@ -32,12 +29,13 @@ public class ToDoConstants {
|
||||||
// 5. Enable city/streets/buildings index
|
// 5. Enable city/streets/buildings index
|
||||||
// 7. Search for city/streets/buildings!
|
// 7. Search for city/streets/buildings!
|
||||||
// 8. Enable change POI directly on map
|
// 8. Enable change POI directly on map
|
||||||
// 9. Log to see when exception occured(android)
|
// 9. Log to see when exception occurred (android)
|
||||||
// 10. Specify auto-rotating map (compass).
|
// 10. Specify auto-rotating map (compass).
|
||||||
// 11. Print out additional info speed, altitude, number of satellites
|
// 11. Print out additional info speed, altitude, number of satellites
|
||||||
// 12. Show point where are you going (the arrow not the point)
|
// 12. Show point where are you going (the arrow not the point)
|
||||||
// 13. Save point as favourit
|
// 13. Save point as favorite
|
||||||
// 14. Show zoom level directly on map
|
// 14. Show zoom level directly on map
|
||||||
|
// 15. Investigate interruption of progress (is it available & how to support it)
|
||||||
// -------------------
|
// -------------------
|
||||||
|
|
||||||
// BUGS Androd :
|
// BUGS Androd :
|
||||||
|
@ -47,14 +45,15 @@ public class ToDoConstants {
|
||||||
|
|
||||||
/// SWING version :
|
/// SWING version :
|
||||||
// TODO :
|
// TODO :
|
||||||
// 1. Add preferences dialog (use internet, )
|
// 0. Create build.xml & build product for release purposes
|
||||||
// 3. download tiles without using dir tiles
|
// 1. Add preferences dialog (use internet, Normalizing streets) !!!
|
||||||
// 4. Config file log & see log from file
|
// 2. Predefine before file loading what should be extracted from osm (building, poi or roads) !
|
||||||
// 6. Predefine before file loading what should be extracted from osm (building, poi or roads)
|
// 3. Fix TODO in files (accept amenity - way)
|
||||||
// 7. Fix TODO in files (accept amenity - way)
|
// 4. Interrupt thread when progress dialog is closed
|
||||||
// 9. Normalizing streets
|
|
||||||
// 10. Reinvent index mechanism (save in zip file with tile indexes, save city/town addresses separately, read partially !)
|
// 5. download tiles without using dir tiles
|
||||||
// 11. Street setName() change in city index!
|
// 6. Config file log & see log from file
|
||||||
// 12. Invent different file extensions for poi.index, address.index,...
|
// 7. Reinvent index mechanism (save in zip file with tile indexes, save city/town addresses separately, read partially !)
|
||||||
|
// 8. Invent different file extensions for poi.index, address.index,...
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -248,9 +248,7 @@ public class MapPanel extends JPanel implements IMapDownloaderCallback {
|
||||||
int[] yPoints = new int[4];
|
int[] yPoints = new int[4];
|
||||||
for (Line2D p : linesToDraw) {
|
for (Line2D p : linesToDraw) {
|
||||||
AffineTransform transform = new AffineTransform();
|
AffineTransform transform = new AffineTransform();
|
||||||
|
|
||||||
transform.translate(p.getX1(), p.getY1());
|
transform.translate(p.getX1(), p.getY1());
|
||||||
// transform.scale(p.getX2() - p.getX1(), p.getY2() - p.getY1());
|
|
||||||
transform.rotate(p.getX2() - p.getX1(), p.getY2() - p.getY1());
|
transform.rotate(p.getX2() - p.getX1(), p.getY2() - p.getY1());
|
||||||
xPoints[1] = xPoints[0] = 0;
|
xPoints[1] = xPoints[0] = 0;
|
||||||
xPoints[2] = xPoints[3] = (int) Math.sqrt((p.getX2() - p.getX1())*(p.getX2() - p.getX1()) +
|
xPoints[2] = xPoints[3] = (int) Math.sqrt((p.getX2() - p.getX1())*(p.getX2() - p.getX1()) +
|
||||||
|
|
Loading…
Reference in a new issue