root / trunk / extensions / extGeoProcessing / build.xml @ 4174
History | View | Annotate | Download (3.61 KB)
1 |
<!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
---|---|
2 |
|
3 |
|
4 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
5 |
<description>
|
6 |
Instala el plugin de GeoProcessing en Andami. |
7 |
</description>
|
8 |
<!-- set global properties for this build -->
|
9 |
<property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
10 |
<property name="src" location="src"/> |
11 |
<property name="bin" location="bin"/> |
12 |
<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.geoprocessing"/> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp/> |
20 |
</target>
|
21 |
|
22 |
|
23 |
<target name="dist" depends="init" |
24 |
description="generate the distribution" > |
25 |
<!-- Remove previous distribution directory -->
|
26 |
<delete dir="${dist}"/> |
27 |
<!-- Create the distribution directory structure -->
|
28 |
<mkdir dir="${dist}"/> |
29 |
<mkdir dir="${dist}/src"/> |
30 |
<mkdir dir="${dist}/doc"/> |
31 |
<mkdir dir="${dist}/bin"/> |
32 |
<mkdir dir="${dist}/bin/com"/> |
33 |
<mkdir dir="${dist}/bin/com/iver"/> |
34 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
35 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
36 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing/images"/> |
37 |
<mkdir dir="${dist}/images"/> |
38 |
<mkdir dir="${dist}/config"/> |
39 |
<mkdir dir="${dist}/lib"/> |
40 |
<!-- Copy necessary distribution files to dist dir -->
|
41 |
<copy todir="${dist}/src"> |
42 |
<fileset dir="${src}"/> |
43 |
</copy>
|
44 |
<copy todir="${dist}/doc"> |
45 |
<fileset dir="${doc}"/> |
46 |
</copy>
|
47 |
<copy todir="${dist}/images"> |
48 |
<fileset dir="images"/> |
49 |
</copy>
|
50 |
<copy todir="${dist}/lib"> |
51 |
<fileset dir="lib" includes="*.*"/> |
52 |
</copy>
|
53 |
<copy file="config/config.xml" todir="${dist}/config"/> |
54 |
<copy file="build.xml" todir="${dist}"/> |
55 |
<copy todir="${dist}"> |
56 |
<fileset dir="." includes="text*.properties"/> |
57 |
</copy>
|
58 |
<jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${bin}"/> |
59 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
60 |
<copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images"> |
61 |
<fileset dir="images"/> |
62 |
</copy>
|
63 |
<!-- Zip distribution -->
|
64 |
<zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip" |
65 |
basedir="${dist}" |
66 |
update="true" |
67 |
/>
|
68 |
</target>
|
69 |
|
70 |
<target name="clean" depends="dist" |
71 |
description="clean dist directory" > |
72 |
<!-- Clean the distribution directory -->
|
73 |
<delete dir="${dist}/src"/> |
74 |
<delete dir="${dist}/doc"/> |
75 |
<delete dir="${dist}/bin"/> |
76 |
<delete dir="${dist}/images"/> |
77 |
<delete dir="${dist}/config"/> |
78 |
<delete file="${dist}/build.xml"/> |
79 |
<delete>
|
80 |
<fileset dir="${dist}" includes="**/*.properties"/> |
81 |
</delete>
|
82 |
</target>
|
83 |
|
84 |
<target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
85 |
<!-- Create the distribution directory -->
|
86 |
<mkdir dir="${without_src}"/> |
87 |
|
88 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
89 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
90 |
<copy file="config/config.xml" todir="${without_src}"/> |
91 |
<copy todir="${without_src}"> |
92 |
<fileset dir="." includes="text*.properties"/> |
93 |
</copy>
|
94 |
<copy todir="${without_src}"> |
95 |
<fileset dir="lib" includes="*.*"/> |
96 |
</copy>
|
97 |
<copy todir="${without_src}/images"> |
98 |
<fileset dir="images/" includes="*"/> |
99 |
</copy>
|
100 |
<move todir="${extensions-dir}/${plugin}/"> |
101 |
<fileset dir="${without_src}" includes="**/**"/> |
102 |
</move>
|
103 |
</target>
|
104 |
|
105 |
</project>
|
106 |
|