2010-05-19 10:30:08 +02:00
|
|
|
<!-- build JAR libraty -->
|
|
|
|
<project name="DataExtractionOSM" default="build" basedir=".">
|
|
|
|
|
2010-12-17 12:53:05 +01:00
|
|
|
<property name="file.to.upload" value="OsmAndMapCreator-nightbuild.zip"/>
|
|
|
|
<property name="src.dir" value="src"/>
|
|
|
|
<property name="src.absolute.dir" location="${src.dir}" />
|
|
|
|
<property name="bin.dir" value="bin"/>
|
|
|
|
<property name="bin.absolute.dir" location="${bin.dir}" />
|
|
|
|
<property name="lib.dir" value="lib"/>
|
|
|
|
<property name="lib.absolute.dir" location="${lib.dir}" />
|
|
|
|
|
|
|
|
<path id="ant.lib.path">
|
|
|
|
<fileset dir="ant-lib" includes="*.jar" />
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="build.path">
|
|
|
|
<fileset dir="${lib.absolute.dir}">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<property file="local.properties" />
|
|
|
|
|
|
|
|
<target name="-dirs">
|
|
|
|
<mkdir dir="${bin.absolute.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${bin.absolute.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="-dirs">
|
|
|
|
<javac srcdir="${src.absolute.dir}"
|
|
|
|
destdir="${bin.absolute.dir}"
|
|
|
|
classpathref="build.path"
|
|
|
|
debug="on"
|
|
|
|
source="1.6"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="-dirs">
|
2010-05-19 13:24:08 +02:00
|
|
|
<manifestclasspath property="lib.list" jarfile="OsmAndMapCreator.jar">
|
2010-12-17 12:53:05 +01:00
|
|
|
<classpath refid="build.path"/>
|
2010-05-19 10:30:08 +02:00
|
|
|
</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-12-17 12:53:05 +01:00
|
|
|
<fileset dir="${bin.absolute.dir}">
|
2010-11-15 00:33:50 +01:00
|
|
|
<include name="**/*" />
|
2010-05-19 10:30:08 +02:00
|
|
|
</fileset>
|
2010-12-17 12:53:05 +01:00
|
|
|
<fileset dir="${src.absolute.dir}">
|
2010-05-19 10:30:08 +02:00
|
|
|
<include name="**/*.java" />
|
|
|
|
</fileset>
|
|
|
|
</jar>
|
2010-12-01 23:22:20 +01:00
|
|
|
|
2010-05-19 10:30:08 +02:00
|
|
|
<delete file="MANIFEST.MF" />
|
|
|
|
</target>
|
2010-12-01 23:22:20 +01:00
|
|
|
|
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-11-12 17:32:31 +01:00
|
|
|
<include name="inspector.bat"/>
|
|
|
|
<include name="inspector.sh"/>
|
|
|
|
<exclude name="lib/h2*"/>
|
2010-05-19 13:24:08 +02:00
|
|
|
</fileset>
|
2010-12-01 23:22:20 +01:00
|
|
|
<fileset dir="src/net/osmand/osm/">
|
|
|
|
<include name="rendering_types.xml"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="batch_indexing.bat"/>
|
|
|
|
<include name="batch_indexing.sh"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="src/net/osmand/data/index">
|
|
|
|
<include name="batch.xml" />
|
|
|
|
</fileset>
|
2010-05-19 13:24:08 +02:00
|
|
|
</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
|
|
|
|
2010-12-17 12:53:05 +01:00
|
|
|
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="ant.lib.path" />
|
|
|
|
|
|
|
|
<target name="update">
|
|
|
|
<svn svnkit="true">
|
|
|
|
<update dir="." revision="HEAD" />
|
|
|
|
<info target="." />
|
|
|
|
</svn>
|
|
|
|
<echo>Updated to revision: ${svn.info.rev}</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="nightbuild" depends="clean,update,compile,build">
|
|
|
|
<move file="build.zip" tofile="${file.to.upload}"/>
|
|
|
|
<ftp action="del" server="download.osmand.net" userid="${ftp.user}" password="${ftp.password}">
|
|
|
|
<fileset>
|
|
|
|
<include name="night-builds/${file.to.upload}" />
|
|
|
|
</fileset>
|
|
|
|
</ftp>
|
2010-05-19 10:30:08 +02:00
|
|
|
|
2010-12-17 12:53:05 +01:00
|
|
|
|
|
|
|
<ftp server="download.osmand.net" remotedir="night-builds" userid="${ftp.user}" password="${ftp.password}" depends="yes">
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="${file.to.upload}" />
|
|
|
|
</fileset>
|
|
|
|
</ftp>
|
|
|
|
</target>
|
|
|
|
</project>
|