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