svn-gvsig-desktop / tags / Root_v06 / extensions / extDataLocator / build.xml @ 4811
History | View | Annotate | Download (3.46 KB)
1 | 2257 | jmorell | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | 2276 | jmorell | Instala el plugin del Localizador por atributo en Andami. |
4 | 2257 | jmorell | </description>
|
5 | <!-- set global properties for this build -->
|
||
6 | 4132 | jjdelcerro | <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
7 | 2257 | jmorell | <property name="src" location="src"/> |
8 | 2276 | jmorell | <property name="bin" location="bin"/> |
9 | <property name="doc" location="doc"/> |
||
10 | 2257 | jmorell | <property name="dist" location="dist"/> |
11 | 2276 | jmorell | <property name="without_src" location="without_src"/> |
12 | 2257 | jmorell | <property name="plugin" value="com.iver.gvsig.datalocator"/> |
13 | |||
14 | <target name="init"> |
||
15 | <!-- Create the time stamp -->
|
||
16 | <tstamp/> |
||
17 | 2276 | jmorell | </target>
|
18 | |||
19 | 2484 | jmorell | <target name="dist" depends="init" |
20 | 2276 | jmorell | description="generate the distribution" > |
21 | <!-- Remove previous distribution directory -->
|
||
22 | <delete dir="${dist}"/> |
||
23 | <!-- Create the distribution directory structure -->
|
||
24 | 2257 | jmorell | <mkdir dir="${dist}"/> |
25 | 2276 | jmorell | <mkdir dir="${dist}/src"/> |
26 | <mkdir dir="${dist}/doc"/> |
||
27 | <mkdir dir="${dist}/bin"/> |
||
28 | <mkdir dir="${dist}/bin/com"/> |
||
29 | <mkdir dir="${dist}/bin/com/iver"/> |
||
30 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
31 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator"/> |
||
32 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator/images"/> |
||
33 | <mkdir dir="${dist}/images"/> |
||
34 | <mkdir dir="${dist}/config"/> |
||
35 | <!-- Copy necessary distribution files to dist dir -->
|
||
36 | <copy todir="${dist}/src"> |
||
37 | <fileset dir="${src}"/> |
||
38 | </copy>
|
||
39 | <copy todir="${dist}/doc"> |
||
40 | <fileset dir="${doc}"/> |
||
41 | </copy>
|
||
42 | <copy todir="${dist}/images"> |
||
43 | <fileset dir="images"/> |
||
44 | </copy>
|
||
45 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
46 | 2491 | jmorell | <copy file="build.xml" todir="${dist}"/> |
47 | 2276 | jmorell | <copy todir="${dist}"> |
48 | <fileset dir="." includes="text*.properties"/> |
||
49 | </copy>
|
||
50 | 2491 | jmorell | <copy todir="${dist}/bin/com/iver/gvsig/datalocator"> |
51 | <fileset dir="." includes="text*.properties"/> |
||
52 | </copy>
|
||
53 | 2276 | jmorell | <jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${bin}"/> |
54 | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
||
55 | <copy todir="${dist}/bin/com/iver/gvsig/datalocator/images"> |
||
56 | <fileset dir="images"/> |
||
57 | </copy>
|
||
58 | <!-- Zip distribution -->
|
||
59 | <zip destfile="${dist}/gvSIGDataLocatorPlugin.zip" |
||
60 | basedir="${dist}" |
||
61 | update="true" |
||
62 | />
|
||
63 | 2257 | jmorell | </target>
|
64 | |||
65 | 2276 | jmorell | <target name="clean" depends="dist" |
66 | description="clean dist directory" > |
||
67 | <!-- Clean the distribution directory -->
|
||
68 | <delete dir="${dist}/src"/> |
||
69 | <delete dir="${dist}/doc"/> |
||
70 | <delete dir="${dist}/bin"/> |
||
71 | <delete dir="${dist}/images"/> |
||
72 | <delete dir="${dist}/config"/> |
||
73 | 2491 | jmorell | <delete file="${dist}/build.xml"/> |
74 | <delete>
|
||
75 | <fileset dir="${dist}" includes="**/*.properties"/> |
||
76 | </delete>
|
||
77 | 2276 | jmorell | </target>
|
78 | |||
79 | <target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
||
80 | 2257 | jmorell | <!-- Create the distribution directory -->
|
81 | 2276 | jmorell | <mkdir dir="${without_src}"/> |
82 | 2257 | jmorell | |
83 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
84 | 2276 | jmorell | <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
85 | <copy file="config/config.xml" todir="${without_src}"/> |
||
86 | <copy todir="${without_src}"> |
||
87 | 2257 | jmorell | <fileset dir="." includes="text*.properties"/> |
88 | </copy>
|
||
89 | 2276 | jmorell | <copy todir="${without_src}/images"> |
90 | 2257 | jmorell | <fileset dir="images/" includes="*"/> |
91 | </copy>
|
||
92 | 2276 | jmorell | <move todir="${extensions-dir}/${plugin}/"> |
93 | <fileset dir="${without_src}" includes="**/**"/> |
||
94 | 2257 | jmorell | </move>
|
95 | </target>
|
||
96 | 2276 | jmorell | |
97 | 2257 | jmorell | </project>
|