root / trunk / extensions / extCenterViewToPoint / build.xml @ 3525
History | View | Annotate | Download (3.5 KB)
1 | 3525 | caballero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de Centrar la Vista sobre un punto en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="extensions-dir" location="../Andami/gvSIG/extensiones"/> |
||
7 | <property name="src" location="src"/> |
||
8 | <property name="bin" location="bin"/> |
||
9 | <property name="doc" location="doc"/> |
||
10 | <property name="dist" location="dist"/> |
||
11 | <property name="without_src" location="without_src"/> |
||
12 | <property name="plugin" value="com.iver.gvsig.centerviewpoint"/> |
||
13 | |||
14 | <target name="init"> |
||
15 | <!-- Create the time stamp -->
|
||
16 | <tstamp/> |
||
17 | </target>
|
||
18 | |||
19 | <target name="dist" depends="init" |
||
20 | description="generate the distribution" > |
||
21 | <!-- Remove previous distribution directory -->
|
||
22 | <delete dir="${dist}"/> |
||
23 | <!-- Create the distribution directory structure -->
|
||
24 | <mkdir dir="${dist}"/> |
||
25 | <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/centerviewpoint"/> |
||
32 | <mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint/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 | <copy file="build.xml" todir="${dist}"/> |
||
47 | <copy todir="${dist}"> |
||
48 | <fileset dir="." includes="text*.properties"/> |
||
49 | </copy>
|
||
50 | <copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint"> |
||
51 | <fileset dir="." includes="text*.properties"/> |
||
52 | </copy>
|
||
53 | <jar jarfile="${dist}/bin/com/iver/gvsig/centerviewpoint/${plugin}.jar" basedir="${bin}"/> |
||
54 | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/centerviewtopoint"/> |
||
55 | <copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"> |
||
56 | <fileset dir="images"/> |
||
57 | </copy>
|
||
58 | <!-- Zip distribution -->
|
||
59 | <zip destfile="${dist}/gvSIGCenterViewToPointPlugin.zip" |
||
60 | basedir="${dist}" |
||
61 | update="true" |
||
62 | />
|
||
63 | </target>
|
||
64 | |||
65 | <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 | <delete file="${dist}/build.xml"/> |
||
74 | <delete>
|
||
75 | <fileset dir="${dist}" includes="**/*.properties"/> |
||
76 | </delete>
|
||
77 | </target>
|
||
78 | |||
79 | <target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
||
80 | <!-- Create the distribution directory -->
|
||
81 | <mkdir dir="${without_src}"/> |
||
82 | |||
83 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
84 | <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
||
85 | <copy file="config/config.xml" todir="${without_src}"/> |
||
86 | <copy todir="${without_src}"> |
||
87 | <fileset dir="." includes="text*.properties"/> |
||
88 | </copy>
|
||
89 | <copy todir="${without_src}/images"> |
||
90 | <fileset dir="images/" includes="*"/> |
||
91 | </copy>
|
||
92 | <move todir="${extensions-dir}/${plugin}/"> |
||
93 | <fileset dir="${without_src}" includes="**/**"/> |
||
94 | </move>
|
||
95 | </target>
|
||
96 | |||
97 | </project>
|