forked from apispoint/snyder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (62 loc) · 2.67 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--
Snyder Projection Implementation
Copyright (C) 2012, 2013 Jeremy J. Gibbons
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project name="snyder" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="version" value="2.0.0.1"/>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist/${ant.project.name}"/>
<property name="libDirName" value="lib" />
<property name="lib" location="${libDirName}" />
<!--<property name="main-class" value="gis.proj.drivers.Snyder" />-->
<fileset id="jars" dir="${lib}">
<include name="**/*.jar" />
</fileset>
<path id="cp"> <fileset refid="jars" /> </path>
<pathconvert property="classpath" refid="cp" pathsep=" " dirsep="/">
<map from="${lib}" to="${libDirName}" />
</pathconvert>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source" >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" classpathref="cp">
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- Put everything in ${build} into the ${name}-${DSTAMP}.jar file -->
<jar
jarfile="${dist}/${ant.project.name}-${version}.jar"
basedir="${build}"
excludes="gis/proj/drivers/**,gis/proj/Complex*,gis/proj/projections/*Alt.*">
<!--
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
<attribute name="Class-Path" value="${classpath}"/>
</manifest>
-->
</jar>
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}/.."/>
</target>
</project>