svn-gvsig-desktop / tags / v1_10_0_Build_1257 / extensions / extAddEventTheme / build.xml @ 39128
History | View | Annotate | Download (6.68 KB)
1 | 7815 | cesar | <project name="extAddEventTheme" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 3525 | caballero | <description>
|
3 | Instala el plugin de AƱadir tema de eventos en Andami. |
||
4 | </description>
|
||
5 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
6 | 4916 | cesar | <!-- 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 | 13462 | cesar | <property name="src-test" location="src-test"/> |
11 | <property name="build-test" location="bin-test"/> |
||
12 | 4916 | cesar | <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 | 5606 | cesar | <property name="mainplugin" value="com.iver.cit.gvsig" /> |
20 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
21 | 9628 | cesar | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
22 | 4916 | cesar | <property name="andamiLibs" location="${andami}/lib"/> |
23 | 25159 | vcaballero | <property name="gvsigImages" location="${extensionsDir}/${mainplugin}/images"/> |
24 | |||
25 | 4916 | cesar | <property name="fmapLibs" location="../libFMap/lib" /> |
26 | 13126 | jmvivo | <!--<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 | 7815 | cesar | |
28 | 4916 | cesar | <target name="init"> |
29 | <!-- Create the time stamp -->
|
||
30 | <tstamp/> |
||
31 | 7815 | cesar | <echo>
|
32 | Compiling ${ant.project.name}... |
||
33 | </echo>
|
||
34 | 4916 | cesar | </target>
|
35 | 3525 | caballero | |
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 | 6891 | fjp | <!-- <mkdir dir="${dist}/src"/> -->
|
43 | <!-- <mkdir dir="${dist}/doc"/> -->
|
||
44 | 3525 | caballero | <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 | 25159 | vcaballero | <!--mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme/images"/-->
|
50 | 3525 | caballero | <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 | 6891 | fjp | <!-- <copy todir="${dist}/doc">
|
57 | 3525 | caballero | <fileset dir="${doc}"/>
|
58 | 6891 | fjp | </copy> -->
|
59 | 3525 | caballero | <copy todir="${dist}/images"> |
60 | <fileset dir="images"/> |
||
61 | </copy>
|
||
62 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
63 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
64 | 3525 | caballero | <copy file="build.xml" todir="${dist}"/> |
65 | <copy todir="${dist}"> |
||
66 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
67 | 3525 | caballero | </copy>
|
68 | <copy todir="${dist}/bin/com/iver/gvsig/addeventtheme"> |
||
69 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
70 | 3525 | caballero | </copy>
|
71 | 4916 | cesar | <jar jarfile="${dist}/bin/com/iver/gvsig/addeventtheme/${plugin}.jar" basedir="${build}"/> |
72 | 3525 | caballero | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
73 | 10187 | jmvivo | <copy file="build.number" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
74 | 3525 | caballero | <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 | 13126 | jmvivo | |
84 | 4916 | cesar | <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
85 | 3525 | caballero | <!-- Create the distribution directory -->
|
86 | <mkdir dir="${without_src}"/> |
||
87 | |||
88 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
89 | 4916 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
90 | 3525 | caballero | <copy file="config/config.xml" todir="${without_src}"/> |
91 | 10187 | jmvivo | <copy file="build.number" todir="${without_src}"/> |
92 | 3525 | caballero | <copy todir="${without_src}"> |
93 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
94 | 3525 | caballero | </copy>
|
95 | <copy todir="${without_src}/images"> |
||
96 | <fileset dir="images/" includes="*"/> |
||
97 | </copy>
|
||
98 | <!-- jar file must be in gvSIG/lib directory -->
|
||
99 | 8265 | jmvivo | <move file="${without_src}/${plugin}.jar" todir="${lib-dir}"/> |
100 | 25159 | vcaballero | <move todir="${gvsigImages}/"> |
101 | <fileset dir="${without_src}/images" includes="**/**"/> |
||
102 | </move>
|
||
103 | 4916 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
104 | 3525 | caballero | <fileset dir="${without_src}" includes="**/**"/> |
105 | </move>
|
||
106 | </target>
|
||
107 | 13126 | jmvivo | |
108 | 4916 | cesar | <target name="batch-build" |
109 | description="compile the sources, create the jar file" |
||
110 | 7816 | cesar | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
111 | 4916 | cesar | </target>
|
112 | 3525 | caballero | |
113 | 4916 | cesar | <target name="compile" description="compile the source" > |
114 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
115 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
116 | 4916 | cesar | <mkdir dir="${build}" /> |
117 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
118 | 13296 | jmvivo | <gvSIG-javac
|
119 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
120 | 13126 | jmvivo | excludes="test/**"/> |
121 | <!--<javac srcdir="${src}"
|
||
122 | 4916 | cesar | destdir="${build}"
|
123 | classpath="${compile-classpath}"
|
||
124 | 12480 | cesar | source="${JavaSourceVersion}"
|
125 | target="${JavaTargetVersion}"
|
||
126 | 6296 | cesar | debug="${debug}"
|
127 | debuglevel="${debuglevel}"
|
||
128 | 12480 | cesar | excludes="test/**"
|
129 | encoding="${encoding}"/>
|
||
130 | 13126 | jmvivo | -->
|
131 | 4916 | cesar | </target>
|
132 | 13126 | jmvivo | |
133 | 4916 | cesar | <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 | 13126 | jmvivo | |
139 | 4916 | cesar | <target name="copy-data-files"> |
140 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
141 | 4916 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
142 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
143 | 4916 | cesar | <copy todir="${dist}"> |
144 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
145 | 4916 | cesar | </copy>
|
146 | <copy todir="${dist}/images"> |
||
147 | <fileset dir="images/" includes="*"/> |
||
148 | </copy>
|
||
149 | </target>
|
||
150 | 13126 | jmvivo | |
151 | 4916 | cesar | <target name="move-to-andami"> |
152 | <!-- jar file must be in gvSIG/lib directory -->
|
||
153 | 8265 | jmvivo | <move file="${dist}/${plugin}.jar" todir="${lib-dir}"/> |
154 | 25159 | vcaballero | <move todir="${gvsigImages}/"> |
155 | 25346 | jmvivo | <fileset dir="${dist}/images/" includes="**"/> |
156 | 25159 | vcaballero | </move>
|
157 | <move todir="${extensionsDir}/${plugin}/"> |
||
158 | 4916 | cesar | <fileset dir="${dist}" includes="**/**"/> |
159 | </move>
|
||
160 | </target>
|
||
161 | 13126 | jmvivo | |
162 | 4916 | cesar | <target name="clean" |
163 | description="clean up"> |
||
164 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
165 | <delete dir="${build}" /> |
||
166 | <delete dir="${dist}" /> |
||
167 | </target>
|
||
168 | |||
169 | 13126 | jmvivo | <target name="clean-orig" |
170 | 4916 | cesar | description="clean dist directory" > |
171 | <!-- Clean the distribution directory -->
|
||
172 | 6891 | fjp | <delete dir="${dist}"/> |
173 | 4916 | cesar | </target>
|
174 | 13462 | cesar | |
175 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
176 | <antcall target="generic-run-tests"> |
||
177 | <param name="TestSuite.Name" value="com.iver.gvsig.addeventtheme.AllTests"/> |
||
178 | </antcall>
|
||
179 | </target>
|
||
180 | 3525 | caballero | </project> |