2010-05-19 10:30:08 +02:00
|
|
|
<!-- build JAR libraty -->
|
|
|
|
<project name="DataExtractionOSM" default="build" basedir=".">
|
|
|
|
|
|
|
|
<target name="jar">
|
|
|
|
<path id="build-classpath">
|
|
|
|
<fileset dir="lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
2010-05-19 13:24:08 +02:00
|
|
|
<manifestclasspath property="lib.list" jarfile="OsmAndMapCreator.jar">
|
2010-05-19 10:30:08 +02:00
|
|
|
<classpath refid="build-classpath"/>
|
|
|
|
</manifestclasspath>
|
|
|
|
<echo>list is ${lib.list}</echo>
|
|
|
|
|
2010-05-19 13:24:08 +02:00
|
|
|
<delete file="OsmAndMapCreator.jar" />
|
2010-05-19 10:30:08 +02:00
|
|
|
<delete file="MANIFEST.MF" />
|
|
|
|
<manifest file="MANIFEST.MF">
|
|
|
|
<attribute name="Built-By" value="${user.name}" />
|
2010-08-17 00:36:24 +02:00
|
|
|
<attribute name="Main-Class" value="net.osmand.swing.OsmExtractionUI" />
|
2010-05-19 10:30:08 +02:00
|
|
|
<attribute name="Class-Path" value="${lib.list}"/>
|
|
|
|
</manifest>
|
|
|
|
|
2010-05-19 13:24:08 +02:00
|
|
|
<jar destfile="OsmAndMapCreator.jar" manifest="MANIFEST.MF">
|
2010-05-19 10:30:08 +02:00
|
|
|
<fileset dir="bin">
|
|
|
|
<include name="**/*.class" />
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="src">
|
|
|
|
<include name="**/*.java" />
|
|
|
|
</fileset>
|
|
|
|
</jar>
|
2010-05-19 13:24:08 +02:00
|
|
|
|
2010-05-19 10:30:08 +02:00
|
|
|
<delete file="MANIFEST.MF" />
|
|
|
|
</target>
|
2010-05-19 13:24:08 +02:00
|
|
|
|
|
|
|
<target name="build" depends="jar">
|
|
|
|
<delete dir="build"/>
|
|
|
|
<copy todir="build">
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="OsmAndMapCreator.jar"/>
|
|
|
|
<include name="lib/**"/>
|
2010-10-25 17:21:43 +02:00
|
|
|
<include name="logging.properties"/>
|
|
|
|
<include name="OsmAndMapCreator.bat"/>
|
|
|
|
<include name="OsmAndMapCreator.sh"/>
|
2010-05-19 13:24:08 +02:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2010-07-19 23:11:57 +02:00
|
|
|
<zip destfile="build.zip">
|
|
|
|
<fileset dir="build">
|
|
|
|
</fileset>
|
|
|
|
</zip>
|
2010-05-19 13:24:08 +02:00
|
|
|
<delete file="OsmAndMapCreator.jar" />
|
|
|
|
</target>
|
2010-05-19 10:30:08 +02:00
|
|
|
|
|
|
|
</project>
|
|
|
|
|