svn-gvsig-desktop / trunk / extensions / extGeoprocessingExtensions / build.xml @ 14512
History | View | Annotate | Download (5.62 KB)
1 |
<!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
---|---|
2 |
|
3 |
<project name="GeoprocessingExtensions" |
4 |
default="generate-without-source" |
5 |
basedir="."> |
6 |
<description>
|
7 |
Registra las extensiones de geoprocesamiento. |
8 |
</description>
|
9 |
<!-- set global properties for this build -->
|
10 |
<property name="src" location="src"/> |
11 |
<property name="build" location="bin"/> |
12 |
<property name="src-test" location="src-test"/> |
13 |
<property name="build-test" location="bin-test"/> |
14 |
<property name="doc" location="doc"/> |
15 |
<property name="dist" location="dist"/> |
16 |
<property name="plugin" value="com.iver.cit.gvsig.geoprocessextensions"/> |
17 |
|
18 |
|
19 |
<property name="lib" value="lib"/> |
20 |
<property name="andami" value="../_fwAndami"/> |
21 |
<property name="jarName" value="${plugin}.jar"/> |
22 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
23 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
24 |
<property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
25 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
26 |
<property name="geoprocessingJar" location="${extensionsDir}/com.iver.cit.gvsig.geoprocess/lib/com.iver.cit.gvsig.geoprocess.jar"/> |
27 |
<property name="andamiLibs" location="${andami}/lib"/> |
28 |
<property name="fmapLibs" location="../libFMap/lib" /> |
29 |
<import file="../binaries/ant/utilities.xml"/> |
30 |
|
31 |
|
32 |
|
33 |
<target name="init"> |
34 |
<!-- Create the time stamp -->
|
35 |
<tstamp/> |
36 |
<echo>
|
37 |
Compiling ${ant.project.name}...</echo>
|
38 |
</target>
|
39 |
|
40 |
<target name="dist" depends="init" |
41 |
description="generate the distribution" > |
42 |
<!-- Remove previous distribution directory -->
|
43 |
<delete dir="${dist}"/> |
44 |
<!-- Create the distribution directory structure -->
|
45 |
<mkdir dir="${dist}"/> |
46 |
<mkdir dir="${dist}/src"/> |
47 |
<mkdir dir="${dist}/doc"/> |
48 |
<mkdir dir="${dist}/bin"/> |
49 |
<mkdir dir="${dist}/bin/com"/> |
50 |
<mkdir dir="${dist}/bin/com/iver"/> |
51 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
52 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
53 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing/images"/> |
54 |
<mkdir dir="${dist}/images"/> |
55 |
<mkdir dir="${dist}/config"/> |
56 |
<mkdir dir="${dist}/lib"/> |
57 |
<!-- Copy necessary distribution files to dist dir -->
|
58 |
<copy todir="${dist}/src"> |
59 |
<fileset dir="${src}"/> |
60 |
</copy>
|
61 |
<!--
|
62 |
<copy todir="${dist}/doc">
|
63 |
<fileset dir="${doc}"/>
|
64 |
</copy>
|
65 |
<copy todir="${dist}/images">
|
66 |
<fileset dir="images"/>
|
67 |
</copy>
|
68 |
<copy todir="${dist}/lib">
|
69 |
<fileset dir="lib" includes="*.*"/>
|
70 |
</copy>
|
71 |
-->
|
72 |
<copy file="config/config.xml" todir="${dist}/config"/> |
73 |
<copy file="build.number" todir="${dist}"/> |
74 |
<copy file="build.xml" todir="${dist}"/> |
75 |
<copy todir="${dist}"> |
76 |
<fileset dir="config" includes="text*.properties"/> |
77 |
</copy>
|
78 |
<jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/> |
79 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
80 |
<copy file="build.number" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
81 |
<!--
|
82 |
<copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images">
|
83 |
<fileset dir="images"/>
|
84 |
</copy>
|
85 |
-->
|
86 |
<!-- Zip distribution -->
|
87 |
<zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip" |
88 |
basedir="${dist}" |
89 |
update="true" |
90 |
/>
|
91 |
</target>
|
92 |
|
93 |
<target name="clean-orig" depends="dist" |
94 |
description="clean dist directory" > |
95 |
<!-- Clean the distribution directory -->
|
96 |
<delete dir="${dist}/src"/> |
97 |
<delete dir="${dist}/doc"/> |
98 |
<delete dir="${dist}/bin"/> |
99 |
<delete dir="${dist}/images"/> |
100 |
<delete dir="${dist}/config"/> |
101 |
<delete file="${dist}/build.xml"/> |
102 |
<delete>
|
103 |
<fileset dir="${dist}" includes="**/*.properties"/> |
104 |
</delete>
|
105 |
</target>
|
106 |
|
107 |
<target name="generate-without-source" description="generate the distribution without the source file" |
108 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
109 |
</target>
|
110 |
|
111 |
<target name="batch-build" |
112 |
description="compile the sources, create the jar file" |
113 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
114 |
</target>
|
115 |
|
116 |
<target name="compile" description="compile the source" > |
117 |
<!-- Compile the Java code from ${src} to ${build} -->
|
118 |
<antcall target="gvSIG-import-build-number"/> |
119 |
<mkdir dir="${build}" /> |
120 |
<loadEclipseClasspath project="${basedir}"/> |
121 |
<gvSIG-javac
|
122 |
classpath="${eclipseClasspath}" |
123 |
/>
|
124 |
<copy todir="${build}"> |
125 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
126 |
</copy>
|
127 |
</target>
|
128 |
|
129 |
<target name="create-jar" |
130 |
description="Creates the plugin jar"> |
131 |
<mkdir dir="${dist}"/> |
132 |
<!-- <jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/>-->
|
133 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
134 |
</target>
|
135 |
|
136 |
<target name="copy-data-files"> |
137 |
<copy file="config/config.xml" todir="${dist}"/> |
138 |
<copy file="build.number" todir="${dist}"/> |
139 |
<copy todir="${dist}"> |
140 |
<fileset dir="config" includes="text*.properties"/> |
141 |
</copy>
|
142 |
<!-- <copy todir="${dist}/images">
|
143 |
<fileset dir="images/" includes="*"/>
|
144 |
</copy> -->
|
145 |
</target>
|
146 |
|
147 |
<!-- <target name="copy-libs">
|
148 |
<copy todir="${dist}">
|
149 |
<fileset dir="lib" includes="*.*"/>
|
150 |
</copy>
|
151 |
</target>
|
152 |
-->
|
153 |
<target name="move-to-andami"> |
154 |
<move todir="${extensionsDir}/${plugin}/"> |
155 |
<fileset dir="${dist}" includes="**/**"/> |
156 |
</move>
|
157 |
</target>
|
158 |
|
159 |
<target name="clean" |
160 |
description="clean up" > |
161 |
<delete dir="${build}"/> |
162 |
<delete dir="${dist}"/> |
163 |
</target>
|
164 |
|
165 |
<target name="run-tests" depends="batch-build,compile-tests"> |
166 |
<antcall target="generic-run-tests"> |
167 |
<param name="TestSuite.Name" value="com.iver.cit.gvsig.geoprocess.AllTests"/> |
168 |
</antcall>
|
169 |
</target>
|
170 |
</project>
|
171 |
|