svn-gvsig-desktop / tags / v1_9_Build_1246 / extensions / extGeoProcessing / build.xml @ 42237
History | View | Annotate | Download (6.43 KB)
1 | 4152 | azabala | <!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
---|---|---|---|
2 | |||
3 | 5608 | cesar | <project name="Geoprocessing" default="generate-without-source" basedir="."> |
4 | 2370 | jmorell | <description>
|
5 | Instala el plugin de GeoProcessing en Andami. |
||
6 | </description>
|
||
7 | <!-- set global properties for this build -->
|
||
8 | <property name="src" location="src"/> |
||
9 | 5608 | cesar | <property name="build" location="bin"/> |
10 | 13471 | cesar | <property name="src-test" location="src-test"/> |
11 | <property name="build-test" location="bin-test"/> |
||
12 | 2370 | jmorell | <property name="doc" location="doc"/> |
13 | <property name="dist" location="dist"/> |
||
14 | <property name="without_src" location="without_src"/> |
||
15 | 5726 | azabala | <property name="plugin" value="com.iver.cit.gvsig.geoprocess"/> |
16 | 2370 | jmorell | |
17 | 5608 | cesar | |
18 | <property name="lib" value="lib"/> |
||
19 | <property name="andami" value="../_fwAndami"/> |
||
20 | <property name="jarName" value="${plugin}.jar"/> |
||
21 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
22 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
23 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
24 | <property name="andamiLibs" location="${andami}/lib"/> |
||
25 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
26 | 9667 | cesar | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
27 | 13126 | jmvivo | <!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib}/ehcache-1.2beta4.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${lib}/spatialindex.jar"/>-->
|
28 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
29 | 12272 | cesar | |
30 | 13126 | jmvivo | |
31 | 2370 | jmorell | <target name="init"> |
32 | <!-- Create the time stamp -->
|
||
33 | <tstamp/> |
||
34 | 7217 | cesar | <echo>
|
35 | Compiling ${ant.project.name}...</echo>
|
||
36 | 2370 | jmorell | </target>
|
37 | 13126 | jmvivo | |
38 | 2370 | jmorell | |
39 | 2679 | jmorell | <target name="dist" depends="init" |
40 | 2370 | jmorell | description="generate the distribution" > |
41 | <!-- Remove previous distribution directory -->
|
||
42 | <delete dir="${dist}"/> |
||
43 | <!-- Create the distribution directory structure -->
|
||
44 | <mkdir dir="${dist}"/> |
||
45 | 6889 | fjp | <!-- <mkdir dir="${dist}/src"/> -->
|
46 | <!-- <mkdir dir="${dist}/doc"/> -->
|
||
47 | 2370 | jmorell | <mkdir dir="${dist}/bin"/> |
48 | <mkdir dir="${dist}/bin/com"/> |
||
49 | <mkdir dir="${dist}/bin/com/iver"/> |
||
50 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
51 | <mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
||
52 | <mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing/images"/> |
||
53 | <mkdir dir="${dist}/images"/> |
||
54 | <mkdir dir="${dist}/config"/> |
||
55 | 4152 | azabala | <mkdir dir="${dist}/lib"/> |
56 | 2370 | jmorell | <!-- Copy necessary distribution files to dist dir -->
|
57 | 6889 | fjp | <!-- <copy todir="${dist}/src">
|
58 | 2370 | jmorell | <fileset dir="${src}"/>
|
59 | 13126 | jmvivo | </copy>
|
60 | 2370 | jmorell | <copy todir="${dist}/doc">
|
61 | <fileset dir="${doc}"/>
|
||
62 | 6889 | fjp | </copy> -->
|
63 | 2370 | jmorell | <copy todir="${dist}/images"> |
64 | <fileset dir="images"/> |
||
65 | </copy>
|
||
66 | 4152 | azabala | <copy todir="${dist}/lib"> |
67 | <fileset dir="lib" includes="*.*"/> |
||
68 | </copy>
|
||
69 | 2370 | jmorell | <copy file="config/config.xml" todir="${dist}/config"/> |
70 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
71 | 2679 | jmorell | <copy file="build.xml" todir="${dist}"/> |
72 | 2370 | jmorell | <copy todir="${dist}"> |
73 | 5618 | cesar | <fileset dir="config" includes="text*.properties"/> |
74 | 2370 | jmorell | </copy>
|
75 | 5608 | cesar | <jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/> |
76 | 2370 | jmorell | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
77 | 10187 | jmvivo | <copy file="build.number" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
78 | 2370 | jmorell | <copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images"> |
79 | <fileset dir="images"/> |
||
80 | </copy>
|
||
81 | <!-- Zip distribution -->
|
||
82 | 6889 | fjp | <!--<zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip"
|
83 | 2370 | jmorell | basedir="${dist}"
|
84 | update="true"
|
||
85 | 6889 | fjp | /> -->
|
86 | 2370 | jmorell | </target>
|
87 | 13126 | jmvivo | |
88 | <target name="clean-orig" |
||
89 | 2370 | jmorell | description="clean dist directory" > |
90 | <!-- Clean the distribution directory -->
|
||
91 | 6889 | fjp | <delete dir="${dist}" /> |
92 | 2370 | jmorell | </target>
|
93 | 13126 | jmvivo | |
94 | 5608 | cesar | <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
95 | 2370 | jmorell | <!-- Create the distribution directory -->
|
96 | <mkdir dir="${without_src}"/> |
||
97 | 6889 | fjp | <mkdir dir="${without_src}/lib"/> |
98 | 2370 | jmorell | |
99 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
100 | 6889 | fjp | <jar jarfile="${without_src}/lib/${plugin}.jar" basedir="${build}"/> |
101 | 2370 | jmorell | <copy file="config/config.xml" todir="${without_src}"/> |
102 | 10187 | jmvivo | <copy file="build.number" todir="${without_src}"/> |
103 | 2370 | jmorell | <copy todir="${without_src}"> |
104 | 5618 | cesar | <fileset dir="config" includes="text*.properties"/> |
105 | 2370 | jmorell | </copy>
|
106 | 14786 | jmvivo | <copy todir="${without_src}/docs"> |
107 | <fileset dir="config/docs" includes="**/*.*"/> |
||
108 | </copy>
|
||
109 | 6889 | fjp | <copy todir="${without_src}/lib"> |
110 | 4174 | azabala | <fileset dir="lib" includes="*.*"/> |
111 | </copy>
|
||
112 | 2370 | jmorell | <copy todir="${without_src}/images"> |
113 | <fileset dir="images/" includes="*"/> |
||
114 | </copy>
|
||
115 | 5608 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
116 | 2370 | jmorell | <fileset dir="${without_src}" includes="**/**"/> |
117 | </move>
|
||
118 | </target>
|
||
119 | 13126 | jmvivo | |
120 | 5608 | cesar | <target name="batch-build" |
121 | description="compile the sources, create the jar file" |
||
122 | 7217 | cesar | depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
123 | 5608 | cesar | </target>
|
124 | 2370 | jmorell | |
125 | 5608 | cesar | <target name="compile" description="compile the source" > |
126 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
127 | 5608 | cesar | <!-- Compile the Java code from ${src} to ${build} -->
|
128 | <mkdir dir="${build}" /> |
||
129 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
130 | 13296 | jmvivo | <gvSIG-javac
|
131 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
132 | />
|
||
133 | 13126 | jmvivo | |
134 | 7714 | cesar | <copy todir="${build}"> |
135 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
136 | </copy>
|
||
137 | 5608 | cesar | </target>
|
138 | 13126 | jmvivo | |
139 | 5608 | cesar | <target name="create-jar" |
140 | description="Creates the plugin jar"> |
||
141 | 10694 | cesar | <mkdir dir="${dist}/lib"/> |
142 | <jar jarfile="${dist}/lib/${jarName}" basedir="${build}"/> |
||
143 | 5608 | cesar | </target>
|
144 | |||
145 | <target name="copy-data-files"> |
||
146 | <copy file="config/config.xml" todir="${dist}"/> |
||
147 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
148 | 5608 | cesar | <copy todir="${dist}"> |
149 | 5618 | cesar | <fileset dir="config" includes="text*.properties"/> |
150 | 5608 | cesar | </copy>
|
151 | <copy todir="${dist}/images"> |
||
152 | <fileset dir="images/" includes="*"/> |
||
153 | </copy>
|
||
154 | 14802 | jmvivo | <copy todir="${dist}/docs"> |
155 | 14786 | jmvivo | <fileset dir="config/docs" includes="**/*.*"/> |
156 | </copy>
|
||
157 | 5608 | cesar | </target>
|
158 | 13126 | jmvivo | |
159 | 5608 | cesar | <target name="copy-libs"> |
160 | 7171 | cesar | <copy todir="${dist}/lib"> |
161 | 5608 | cesar | <fileset dir="lib" includes="*.*"/> |
162 | </copy>
|
||
163 | </target>
|
||
164 | 13126 | jmvivo | |
165 | 5608 | cesar | <target name="move-to-andami"> |
166 | <move todir="${extensionsDir}/${plugin}/"> |
||
167 | <fileset dir="${dist}" includes="**/**"/> |
||
168 | </move>
|
||
169 | </target>
|
||
170 | 13126 | jmvivo | |
171 | 5608 | cesar | <target name="clean" |
172 | description="clean up" > |
||
173 | <delete dir="${build}"/> |
||
174 | <delete dir="${dist}"/> |
||
175 | </target>
|
||
176 | 13126 | jmvivo | |
177 | 13471 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
178 | <antcall target="generic-run-tests"> |
||
179 | <param name="TestSuite.Name" value="com.iver.cit.gvsig.geoprocess.AllTests"/> |
||
180 | </antcall>
|
||
181 | </target>
|
||
182 | 14786 | jmvivo | |
183 | 2370 | jmorell | </project>
|