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}" />
|
|
|
|
<attribute name="Main-Class" value="com.osmand.swing.OsmExtractionUI" />
|
|
|
|
<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/**"/>
|
|
|
|
<include name="run.bat"/>
|
|
|
|
<include name="run.sh"/>
|
|
|
|
</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>
|
|
|
|
|