-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-ourmap.xml
52 lines (41 loc) · 1.42 KB
/
build-ourmap.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Easymap build file -->
<!-- Autor: Camilo Cuesta -->
<project basedir="." default="build" name="easymap">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<property file="ant.properties" />
<path id="clases.path">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${out.dir}"/>
<mkdir dir="${dist}" />
</target>
<target name="clean">
<delete dir="${out.dir}"/>
<delete file="${dist}/${jar.name}" />
</target>
<target depends="clean,build-project" name="build"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${out.dir}" source="${source}" target="${target}">
<src path="${src.dir}"/>
<classpath refid="clases.path"/>
</javac>
<copy todir="${out.dir}">
<fileset dir="${src.dir}" includes="**/*.properties"/>
</copy>
<antcall target="jar"/>
</target>
<target name="jar" >
<echo message="Armando archivo jar"/>
<jar destfile="${dist}/${jar.name}">
<fileset dir="${out.dir}" />
</jar>
</target>
</project>