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