root / trunk / extensions / extAddEventTheme / build.xml @ 38571
History | View | Annotate | Download (6.75 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 |
<import file="../binaries/ant/utilities.xml"/> |
6 |
<!-- set global properties for this build -->
|
7 |
<property name="lib-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
8 |
<property name="src" location="src"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="src-test" location="src-test"/> |
11 |
<property name="build-test" location="bin-test"/> |
12 |
<property name="doc" location="doc"/> |
13 |
<property name="dist" location="dist"/> |
14 |
<property name="without_src" location="without_src"/> |
15 |
<property name="plugin" value="com.iver.gvsig.addeventtheme"/> |
16 |
<property name="andami" value="../_fwAndami"/> |
17 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
18 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
19 |
<property name="mainplugin" value="com.iver.cit.gvsig" /> |
20 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
21 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
22 |
<property name="andamiLibs" location="${andami}/lib"/> |
23 |
<property name="gvsigImages" location="${extensionsDir}/${mainplugin}/images"/> |
24 |
|
25 |
<property name="fmapLibs" location="../libFMap/lib" /> |
26 |
<!--<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"/>-->
|
27 |
|
28 |
<target name="init"> |
29 |
<!-- Create the time stamp -->
|
30 |
<tstamp/> |
31 |
<echo>
|
32 |
Compiling ${ant.project.name}... |
33 |
</echo>
|
34 |
</target>
|
35 |
|
36 |
<target name="dist" depends="init" |
37 |
description="generate the distribution" > |
38 |
<!-- Remove previous distribution directory -->
|
39 |
<delete dir="${dist}"/> |
40 |
<!-- Create the distribution directory structure -->
|
41 |
<mkdir dir="${dist}"/> |
42 |
<!-- <mkdir dir="${dist}/src"/> -->
|
43 |
<!-- <mkdir dir="${dist}/doc"/> -->
|
44 |
<mkdir dir="${dist}/bin"/> |
45 |
<mkdir dir="${dist}/bin/com"/> |
46 |
<mkdir dir="${dist}/bin/com/iver"/> |
47 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
48 |
<mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
49 |
<!--mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme/images"/-->
|
50 |
<mkdir dir="${dist}/images"/> |
51 |
<mkdir dir="${dist}/config"/> |
52 |
<!-- Copy necessary distribution files to dist dir -->
|
53 |
<copy todir="${dist}/src"> |
54 |
<fileset dir="${src}"/> |
55 |
</copy>
|
56 |
<!-- <copy todir="${dist}/doc">
|
57 |
<fileset dir="${doc}"/>
|
58 |
</copy> -->
|
59 |
<copy todir="${dist}/images"> |
60 |
<fileset dir="images"/> |
61 |
</copy>
|
62 |
<copy file="config/config.xml" todir="${dist}/config"/> |
63 |
<copy file="build.number" todir="${dist}"/> |
64 |
<copy file="build.xml" todir="${dist}"/> |
65 |
<copy todir="${dist}"> |
66 |
<fileset dir="config" includes="text*.properties"/> |
67 |
</copy>
|
68 |
<copy todir="${dist}/bin/com/iver/gvsig/addeventtheme"> |
69 |
<fileset dir="config" includes="text*.properties"/> |
70 |
</copy>
|
71 |
<jar jarfile="${dist}/bin/com/iver/gvsig/addeventtheme/${plugin}.jar" basedir="${build}"/> |
72 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
73 |
<copy file="build.number" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
74 |
<copy todir="${dist}/bin/com/iver/gvsig/addeventtheme/images"> |
75 |
<fileset dir="images"/> |
76 |
</copy>
|
77 |
<!-- Zip distribution -->
|
78 |
<zip destfile="${dist}/gvSIGAddEventThemePlugin.zip" |
79 |
basedir="${dist}" |
80 |
update="true" |
81 |
/>
|
82 |
</target>
|
83 |
|
84 |
<target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
85 |
<!-- Create the distribution directory -->
|
86 |
<mkdir dir="${without_src}"/> |
87 |
|
88 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
89 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
90 |
<copy file="config/config.xml" todir="${without_src}"/> |
91 |
<copy file="build.number" todir="${without_src}"/> |
92 |
<copy todir="${without_src}"> |
93 |
<fileset dir="config" includes="text*.properties"/> |
94 |
</copy>
|
95 |
<copy todir="${without_src}/images"> |
96 |
<fileset dir="images/" includes="*"/> |
97 |
</copy>
|
98 |
<!-- jar file must be in gvSIG/lib directory -->
|
99 |
<move file="${without_src}/${plugin}.jar" todir="${lib-dir}"/> |
100 |
<move todir="${gvsigImages}/"> |
101 |
<fileset dir="${without_src}/images" includes="**/**"/> |
102 |
</move>
|
103 |
<move todir="${extensionsDir}/${plugin}/"> |
104 |
<fileset dir="${without_src}" includes="**/**"/> |
105 |
</move>
|
106 |
</target>
|
107 |
|
108 |
<target name="batch-build" |
109 |
description="compile the sources, create the jar file" |
110 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
111 |
</target>
|
112 |
|
113 |
<target name="compile" description="compile the source" > |
114 |
<!-- Compile the Java code from ${src} to ${build} -->
|
115 |
<antcall target="gvSIG-import-build-number"/> |
116 |
<mkdir dir="${build}" /> |
117 |
<loadEclipseClasspath project="${basedir}"/> |
118 |
<gvSIG-javac
|
119 |
classpath="${eclipseClasspath}" |
120 |
excludes="test/**"/> |
121 |
<!--<javac srcdir="${src}"
|
122 |
destdir="${build}"
|
123 |
classpath="${compile-classpath}"
|
124 |
source="${JavaSourceVersion}"
|
125 |
target="${JavaTargetVersion}"
|
126 |
debug="${debug}"
|
127 |
debuglevel="${debuglevel}"
|
128 |
excludes="test/**"
|
129 |
encoding="${encoding}"/>
|
130 |
-->
|
131 |
</target>
|
132 |
|
133 |
<target name="create-jar" |
134 |
description="Creates the plugin jar"> |
135 |
<mkdir dir="${dist}"/> |
136 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
137 |
</target>
|
138 |
|
139 |
<target name="copy-data-files" depends="make-package-info"> |
140 |
<antcall target="gvSIG-import-build-number"/> |
141 |
<copy file="config/config.xml" todir="${dist}"/> |
142 |
<copy file="build.number" todir="${dist}"/> |
143 |
<copy file="package.info" todir="${dist}"/> |
144 |
<copy todir="${dist}"> |
145 |
<fileset dir="config" includes="text*.properties"/> |
146 |
</copy>
|
147 |
<copy todir="${dist}/images"> |
148 |
<fileset dir="images/" includes="*"/> |
149 |
</copy>
|
150 |
</target>
|
151 |
|
152 |
<target name="move-to-andami"> |
153 |
<!-- jar file must be in gvSIG/lib directory -->
|
154 |
<move file="${dist}/${plugin}.jar" todir="${lib-dir}"/> |
155 |
<move todir="${gvsigImages}/"> |
156 |
<fileset dir="${dist}/images/" includes="**"/> |
157 |
</move>
|
158 |
<move todir="${extensionsDir}/${plugin}/"> |
159 |
<fileset dir="${dist}" includes="**/**"/> |
160 |
</move>
|
161 |
</target>
|
162 |
|
163 |
<target name="clean" |
164 |
description="clean up"> |
165 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
166 |
<delete dir="${build}" /> |
167 |
<delete dir="${dist}" /> |
168 |
</target>
|
169 |
|
170 |
<target name="clean-orig" |
171 |
description="clean dist directory" > |
172 |
<!-- Clean the distribution directory -->
|
173 |
<delete dir="${dist}"/> |
174 |
</target>
|
175 |
|
176 |
<target name="run-tests" depends="batch-build,compile-tests"> |
177 |
<antcall target="generic-run-tests"> |
178 |
<param name="TestSuite.Name" value="com.iver.gvsig.addeventtheme.AllTests"/> |
179 |
</antcall>
|
180 |
</target>
|
181 |
</project>
|