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