root / trunk / extensions / extAddEventTheme / build.xml @ 11445
History | View | Annotate | Download (5.88 KB)
1 |
<project name="extAddEventTheme" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin de AƱadir tema de eventos en Andami. |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="lib-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
7 |
<property name="src" location="src"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="doc" location="doc"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="without_src" location="without_src"/> |
12 |
<property name="plugin" value="com.iver.gvsig.addeventtheme"/> |
13 |
<property name="andami" value="../_fwAndami"/> |
14 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
15 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
16 |
<property name="mainplugin" value="com.iver.cit.gvsig" /> |
17 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
18 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
19 |
<property name="andamiLibs" location="${andami}/lib"/> |
20 |
<property name="fmapLibs" location="../libFMap/lib" /> |
21 |
<property name="compile-classpath" value="${gvsigJar}:${andamiJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar"/> |
22 |
|
23 |
<target name="init"> |
24 |
<!-- Create the time stamp -->
|
25 |
<tstamp/> |
26 |
<echo>
|
27 |
Compiling ${ant.project.name}... |
28 |
</echo>
|
29 |
</target>
|
30 |
|
31 |
<target name="import-build-number"> |
32 |
<copy todir="."> |
33 |
<fileset file="${buildNumberFile}"/> |
34 |
</copy>
|
35 |
</target>
|
36 |
|
37 |
<target name="dist" depends="init" |
38 |
description="generate the distribution" > |
39 |
<!-- Remove previous distribution directory -->
|
40 |
<delete dir="${dist}"/> |
41 |
<!-- Create the distribution directory structure -->
|
42 |
<mkdir dir="${dist}"/> |
43 |
<!-- <mkdir dir="${dist}/src"/> -->
|
44 |
<!-- <mkdir dir="${dist}/doc"/> -->
|
45 |
<mkdir dir="${dist}/bin"/> |
46 |
<mkdir dir="${dist}/bin/com"/> |
47 |
<mkdir dir="${dist}/bin/com/iver"/> |
48 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
49 |
<mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
50 |
<mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme/images"/> |
51 |
<mkdir dir="${dist}/images"/> |
52 |
<mkdir dir="${dist}/config"/> |
53 |
<!-- Copy necessary distribution files to dist dir -->
|
54 |
<copy todir="${dist}/src"> |
55 |
<fileset dir="${src}"/> |
56 |
</copy>
|
57 |
<!-- <copy todir="${dist}/doc">
|
58 |
<fileset dir="${doc}"/>
|
59 |
</copy> -->
|
60 |
<copy todir="${dist}/images"> |
61 |
<fileset dir="images"/> |
62 |
</copy>
|
63 |
<copy file="config/config.xml" todir="${dist}/config"/> |
64 |
<copy file="build.number" todir="${dist}"/> |
65 |
<copy file="build.xml" todir="${dist}"/> |
66 |
<copy todir="${dist}"> |
67 |
<fileset dir="config" includes="text*.properties"/> |
68 |
</copy>
|
69 |
<copy todir="${dist}/bin/com/iver/gvsig/addeventtheme"> |
70 |
<fileset dir="config" includes="text*.properties"/> |
71 |
</copy>
|
72 |
<jar jarfile="${dist}/bin/com/iver/gvsig/addeventtheme/${plugin}.jar" basedir="${build}"/> |
73 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
74 |
<copy file="build.number" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
75 |
<copy todir="${dist}/bin/com/iver/gvsig/addeventtheme/images"> |
76 |
<fileset dir="images"/> |
77 |
</copy>
|
78 |
<!-- Zip distribution -->
|
79 |
<zip destfile="${dist}/gvSIGAddEventThemePlugin.zip" |
80 |
basedir="${dist}" |
81 |
update="true" |
82 |
/>
|
83 |
</target>
|
84 |
|
85 |
<target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
86 |
<!-- Create the distribution directory -->
|
87 |
<mkdir dir="${without_src}"/> |
88 |
|
89 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
90 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
91 |
<copy file="config/config.xml" todir="${without_src}"/> |
92 |
<copy file="build.number" todir="${without_src}"/> |
93 |
<copy todir="${without_src}"> |
94 |
<fileset dir="config" includes="text*.properties"/> |
95 |
</copy>
|
96 |
<copy todir="${without_src}/images"> |
97 |
<fileset dir="images/" includes="*"/> |
98 |
</copy>
|
99 |
<!-- jar file must be in gvSIG/lib directory -->
|
100 |
<move file="${without_src}/${plugin}.jar" todir="${lib-dir}"/> |
101 |
<move todir="${extensionsDir}/${plugin}/"> |
102 |
<fileset dir="${without_src}" includes="**/**"/> |
103 |
</move>
|
104 |
</target>
|
105 |
|
106 |
<target name="batch-build" |
107 |
description="compile the sources, create the jar file" |
108 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
109 |
</target>
|
110 |
|
111 |
<target name="compile" description="compile the source" > |
112 |
<!-- Compile the Java code from ${src} to ${build} -->
|
113 |
<mkdir dir="${build}" /> |
114 |
<javac srcdir="${src}" |
115 |
destdir="${build}" |
116 |
classpath="${compile-classpath}" |
117 |
source="1.4" |
118 |
target="1.4" |
119 |
debug="${debug}" |
120 |
debuglevel="${debuglevel}" |
121 |
excludes="test/**"/> |
122 |
</target>
|
123 |
|
124 |
<target name="create-jar" |
125 |
description="Creates the plugin jar"> |
126 |
<mkdir dir="${dist}"/> |
127 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
128 |
</target>
|
129 |
|
130 |
<target name="copy-data-files"> |
131 |
<copy file="config/config.xml" todir="${dist}"/> |
132 |
<copy file="build.number" todir="${dist}"/> |
133 |
<copy todir="${dist}"> |
134 |
<fileset dir="config" includes="text*.properties"/> |
135 |
</copy>
|
136 |
<copy todir="${dist}/images"> |
137 |
<fileset dir="images/" includes="*"/> |
138 |
</copy>
|
139 |
</target>
|
140 |
|
141 |
<target name="move-to-andami"> |
142 |
<!-- jar file must be in gvSIG/lib directory -->
|
143 |
<move file="${dist}/${plugin}.jar" todir="${lib-dir}"/> |
144 |
<move todir="${extensionsDir}/${plugin}/"> |
145 |
<fileset dir="${dist}" includes="**/**"/> |
146 |
</move>
|
147 |
</target>
|
148 |
|
149 |
<target name="clean" |
150 |
description="clean up"> |
151 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
152 |
<delete dir="${build}" /> |
153 |
<delete dir="${dist}" /> |
154 |
</target>
|
155 |
|
156 |
<target name="clean-orig" |
157 |
description="clean dist directory" > |
158 |
<!-- Clean the distribution directory -->
|
159 |
<delete dir="${dist}"/> |
160 |
</target>
|
161 |
</project>
|