/
build.xml
88 lines (71 loc) · 2.61 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
77
78
79
80
81
82
83
84
85
86
87
<project name="extELLE" default="generate-without-source" basedir=".">
<description>
ELLE: Easy Layer Loader Extension
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="bin"/>
<property name="dist" location="dist"/>
<property name="mainplugin" value="com.iver.cit.gvsig"/>
<property name="plugin" value="es.udc.cartolab.gvsig.elle"/>
<property name="andami" location="../_fwAndami" />
<property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/>
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/>
<import file="../binaries/ant/utilities.xml"/>
<target name="init">
<tstamp/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" description="compile the source" >
<!-- <antcall target="gvSIG-import-build-number"/> -->
<mkdir dir="${build}" />
<loadEclipseClasspath project="${basedir}"/>
<gvSIG-javac classpath="${eclipseClasspath}" />
</target>
<target name="create-jar" description="Creates the plugin jar">
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="es/**" />
<jar update="true" jarfile="${dist}/lib/${plugin}.jar" basedir="images" includes="*" />
</target>
<target name="copy-data-files">
<copy file="config/about.htm" todir="${dist}" overwrite="yes"/>
<copy file="config/config.xml" todir="${dist}"/>
<copy todir="${dist}">
<fileset dir="config" includes="text*.properties"/>
</copy>
<mkdir dir="${dist}/forms"/>
<copy todir="${dist}/forms">
<fileset dir="forms"/>
</copy>
<copy todir="${dist}/images">
<fileset dir="images" includes="*"/>
</copy>
</target>
<target name="move-to-andami">
<move todir="${extensionsDir}/${plugin}/">
<fileset dir="${dist}" includes="**/**"/>
</move>
</target>
<target name="generate-without-source"
description="generate the distribution without the source file"
depends="init, create-jar, copy-data-files, move-to-andami" >
</target>
<!--
<target name="compile" description="compile the source" >
<mkdir dir="${build}" />
<echo>${compile-classpath}</echo>
<javac srcdir="${src}"
destdir="${build}"
debug="${debug}"
debuglevel="${debuglevel}"
classpath="${compile-classpath}"/>
</target>
-->
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${dist}"/>
<delete dir="${build}"/>
</target>
<target name="batch-build" depends="init, compile, create-jar, copy-data-files, move-to-andami">
</target>
</project>