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