root / trunk / extensions / extGeoProcessing / build.xml @ 6524
History | View | Annotate | Download (5.7 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 | 2370 | jmorell | <property name="doc" location="doc"/> |
11 | <property name="dist" location="dist"/> |
||
12 | <property name="without_src" location="without_src"/> |
||
13 | 5726 | azabala | <property name="plugin" value="com.iver.cit.gvsig.geoprocess"/> |
14 | 2370 | jmorell | |
15 | 5608 | cesar | |
16 | <property name="lib" value="lib"/> |
||
17 | <property name="andami" value="../_fwAndami"/> |
||
18 | <property name="jarName" value="${plugin}.jar"/> |
||
19 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
20 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
21 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
22 | <property name="andamiLibs" location="${andami}/lib"/> |
||
23 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
24 | 6280 | cesar | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib}/ehcache-1.2beta4.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${lib}/spatialindex.jar"/> |
25 | 5608 | cesar | |
26 | |||
27 | 2370 | jmorell | <target name="init"> |
28 | <!-- Create the time stamp -->
|
||
29 | <tstamp/> |
||
30 | </target>
|
||
31 | 4152 | azabala | |
32 | 2370 | jmorell | |
33 | 2679 | jmorell | <target name="dist" depends="init" |
34 | 2370 | jmorell | description="generate the distribution" > |
35 | <!-- Remove previous distribution directory -->
|
||
36 | <delete dir="${dist}"/> |
||
37 | <!-- Create the distribution directory structure -->
|
||
38 | <mkdir dir="${dist}"/> |
||
39 | <mkdir dir="${dist}/src"/> |
||
40 | <mkdir dir="${dist}/doc"/> |
||
41 | <mkdir dir="${dist}/bin"/> |
||
42 | <mkdir dir="${dist}/bin/com"/> |
||
43 | <mkdir dir="${dist}/bin/com/iver"/> |
||
44 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
45 | <mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
||
46 | <mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing/images"/> |
||
47 | <mkdir dir="${dist}/images"/> |
||
48 | <mkdir dir="${dist}/config"/> |
||
49 | 4152 | azabala | <mkdir dir="${dist}/lib"/> |
50 | 2370 | jmorell | <!-- Copy necessary distribution files to dist dir -->
|
51 | <copy todir="${dist}/src"> |
||
52 | <fileset dir="${src}"/> |
||
53 | </copy>
|
||
54 | <copy todir="${dist}/doc"> |
||
55 | <fileset dir="${doc}"/> |
||
56 | </copy>
|
||
57 | <copy todir="${dist}/images"> |
||
58 | <fileset dir="images"/> |
||
59 | </copy>
|
||
60 | 4152 | azabala | <copy todir="${dist}/lib"> |
61 | <fileset dir="lib" includes="*.*"/> |
||
62 | </copy>
|
||
63 | 2370 | jmorell | <copy file="config/config.xml" todir="${dist}/config"/> |
64 | 2679 | jmorell | <copy file="build.xml" todir="${dist}"/> |
65 | 2370 | jmorell | <copy todir="${dist}"> |
66 | 5618 | cesar | <fileset dir="config" includes="text*.properties"/> |
67 | 2370 | jmorell | </copy>
|
68 | 5608 | cesar | <jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/> |
69 | 2370 | jmorell | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
70 | <copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images"> |
||
71 | <fileset dir="images"/> |
||
72 | </copy>
|
||
73 | <!-- Zip distribution -->
|
||
74 | <zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip" |
||
75 | basedir="${dist}" |
||
76 | update="true" |
||
77 | />
|
||
78 | </target>
|
||
79 | 4152 | azabala | |
80 | 5608 | cesar | <target name="clean-orig" depends="dist" |
81 | 2370 | jmorell | description="clean dist directory" > |
82 | <!-- Clean the distribution directory -->
|
||
83 | <delete dir="${dist}/src"/> |
||
84 | <delete dir="${dist}/doc"/> |
||
85 | <delete dir="${dist}/bin"/> |
||
86 | <delete dir="${dist}/images"/> |
||
87 | <delete dir="${dist}/config"/> |
||
88 | 2679 | jmorell | <delete file="${dist}/build.xml"/> |
89 | 2670 | jmorell | <delete>
|
90 | <fileset dir="${dist}" includes="**/*.properties"/> |
||
91 | </delete>
|
||
92 | 2370 | jmorell | </target>
|
93 | |||
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 | |||
98 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
99 | 5608 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
100 | 2370 | jmorell | <copy file="config/config.xml" todir="${without_src}"/> |
101 | <copy todir="${without_src}"> |
||
102 | 5618 | cesar | <fileset dir="config" includes="text*.properties"/> |
103 | 2370 | jmorell | </copy>
|
104 | 4174 | azabala | <copy todir="${without_src}"> |
105 | <fileset dir="lib" includes="*.*"/> |
||
106 | </copy>
|
||
107 | 2370 | jmorell | <copy todir="${without_src}/images"> |
108 | <fileset dir="images/" includes="*"/> |
||
109 | </copy>
|
||
110 | 5608 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
111 | 2370 | jmorell | <fileset dir="${without_src}" includes="**/**"/> |
112 | </move>
|
||
113 | </target>
|
||
114 | 5608 | cesar | |
115 | <target name="batch-build" |
||
116 | description="compile the sources, create the jar file" |
||
117 | depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
||
118 | </target>
|
||
119 | 2370 | jmorell | |
120 | 5608 | cesar | <target name="compile" description="compile the source" > |
121 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
122 | <mkdir dir="${build}" /> |
||
123 | <javac srcdir="${src}" |
||
124 | destdir="${build}" |
||
125 | 6296 | cesar | debug="${debug}" |
126 | debuglevel="${debuglevel}" |
||
127 | 5608 | cesar | classpath="${compile-classpath}"/> |
128 | </target>
|
||
129 | |||
130 | <target name="create-jar" |
||
131 | description="Creates the plugin jar"> |
||
132 | <mkdir dir="${dist}"/> |
||
133 | <!-- <jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/>-->
|
||
134 | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
||
135 | </target>
|
||
136 | |||
137 | <target name="copy-data-files"> |
||
138 | <copy file="config/config.xml" todir="${dist}"/> |
||
139 | <copy todir="${dist}"> |
||
140 | 5618 | cesar | <fileset dir="config" includes="text*.properties"/> |
141 | 5608 | cesar | </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 | 5798 | azabala | |
159 | 5608 | cesar | <target name="clean" |
160 | description="clean up" > |
||
161 | <delete dir="${build}"/> |
||
162 | <delete dir="${dist}"/> |
||
163 | </target>
|
||
164 | 5798 | azabala | |
165 | 2370 | jmorell | </project>
|