root / trunk / extensions / extDataLocator / build.xml @ 9210
History | View | Annotate | Download (5.33 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 | 5704 | cesar | <property name="andami" location="../_fwAndami" /> |
7 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
8 | 2257 | jmorell | <property name="src" location="src"/> |
9 | 5704 | cesar | <property name="build" location="bin"/> |
10 | 2276 | jmorell | <property name="doc" location="doc"/> |
11 | 2257 | jmorell | <property name="dist" location="dist"/> |
12 | 2276 | jmorell | <property name="without_src" location="without_src"/> |
13 | 2257 | jmorell | <property name="plugin" value="com.iver.gvsig.datalocator"/> |
14 | 5704 | cesar | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
15 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
16 | <property name="andamiLibs" location="${andami}/lib" /> |
||
17 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
18 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
19 | 7848 | cesar | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar" /> |
20 | 2257 | jmorell | |
21 | <target name="init"> |
||
22 | <!-- Create the time stamp -->
|
||
23 | <tstamp/> |
||
24 | 2276 | jmorell | </target>
|
25 | |||
26 | 2484 | jmorell | <target name="dist" depends="init" |
27 | 2276 | jmorell | description="generate the distribution" > |
28 | <!-- Remove previous distribution directory -->
|
||
29 | <delete dir="${dist}"/> |
||
30 | <!-- Create the distribution directory structure -->
|
||
31 | 2257 | jmorell | <mkdir dir="${dist}"/> |
32 | 2276 | jmorell | <mkdir dir="${dist}/src"/> |
33 | <mkdir dir="${dist}/doc"/> |
||
34 | <mkdir dir="${dist}/bin"/> |
||
35 | <mkdir dir="${dist}/bin/com"/> |
||
36 | <mkdir dir="${dist}/bin/com/iver"/> |
||
37 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
38 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator"/> |
||
39 | <mkdir dir="${dist}/bin/com/iver/gvsig/datalocator/images"/> |
||
40 | <mkdir dir="${dist}/images"/> |
||
41 | <mkdir dir="${dist}/config"/> |
||
42 | <!-- Copy necessary distribution files to dist dir -->
|
||
43 | <copy todir="${dist}/src"> |
||
44 | <fileset dir="${src}"/> |
||
45 | </copy>
|
||
46 | <copy todir="${dist}/doc"> |
||
47 | <fileset dir="${doc}"/> |
||
48 | </copy>
|
||
49 | <copy todir="${dist}/images"> |
||
50 | <fileset dir="images"/> |
||
51 | </copy>
|
||
52 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
53 | 2491 | jmorell | <copy file="build.xml" todir="${dist}"/> |
54 | 2276 | jmorell | <copy todir="${dist}"> |
55 | 5704 | cesar | <fileset dir="config" includes="text*.properties"/> |
56 | 2276 | jmorell | </copy>
|
57 | 5704 | cesar | <!-- <copy todir="${dist}/bin/com/iver/gvsig/datalocator">
|
58 | 2491 | jmorell | <fileset dir="." includes="text*.properties"/>
|
59 | 5704 | cesar | </copy> -->
|
60 | <jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${build}"/> |
||
61 | 2276 | jmorell | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
62 | <copy todir="${dist}/bin/com/iver/gvsig/datalocator/images"> |
||
63 | <fileset dir="images"/> |
||
64 | </copy>
|
||
65 | <!-- Zip distribution -->
|
||
66 | <zip destfile="${dist}/gvSIGDataLocatorPlugin.zip" |
||
67 | basedir="${dist}" |
||
68 | update="true" |
||
69 | />
|
||
70 | 2257 | jmorell | </target>
|
71 | |||
72 | 5704 | cesar | <target name="clean-orig" |
73 | 2276 | jmorell | description="clean dist directory" > |
74 | <!-- Clean the distribution directory -->
|
||
75 | <delete dir="${dist}/src"/> |
||
76 | <delete dir="${dist}/doc"/> |
||
77 | <delete dir="${dist}/bin"/> |
||
78 | <delete dir="${dist}/images"/> |
||
79 | <delete dir="${dist}/config"/> |
||
80 | 2491 | jmorell | <delete file="${dist}/build.xml"/> |
81 | 5704 | cesar | <delete failonerror="false"> |
82 | 2491 | jmorell | <fileset dir="${dist}" includes="**/*.properties"/> |
83 | </delete>
|
||
84 | 2276 | jmorell | </target>
|
85 | |||
86 | 5704 | cesar | <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
87 | 2257 | jmorell | <!-- Create the distribution directory -->
|
88 | 2276 | jmorell | <mkdir dir="${without_src}"/> |
89 | 2257 | jmorell | |
90 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
91 | 5704 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
92 | 2276 | jmorell | <copy file="config/config.xml" todir="${without_src}"/> |
93 | <copy todir="${without_src}"> |
||
94 | 5704 | cesar | <fileset dir="config" includes="text*.properties"/> |
95 | 2257 | jmorell | </copy>
|
96 | 2276 | jmorell | <copy todir="${without_src}/images"> |
97 | 2257 | jmorell | <fileset dir="images/" includes="*"/> |
98 | </copy>
|
||
99 | 5704 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
100 | 2276 | jmorell | <fileset dir="${without_src}" includes="**/**"/> |
101 | 2257 | jmorell | </move>
|
102 | </target>
|
||
103 | 5704 | cesar | |
104 | <target name="batch-build" |
||
105 | description="compile the sources, create the jar file" |
||
106 | depends="compile,create-jar,copy-data-files,move-to-andami"> |
||
107 | </target>
|
||
108 | 2276 | jmorell | |
109 | 5704 | cesar | <target name="compile" description="compile the source" > |
110 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
111 | <mkdir dir="${build}" /> |
||
112 | <javac srcdir="${src}" |
||
113 | destdir="${build}" |
||
114 | 7786 | cesar | source="1.4" |
115 | target="1.4" |
||
116 | 6296 | cesar | debug="${debug}" |
117 | debuglevel="${debuglevel}" |
||
118 | 5704 | cesar | classpath="${compile-classpath}"/> |
119 | </target>
|
||
120 | |||
121 | <target name="create-jar" |
||
122 | description="Creates the plugin jar"> |
||
123 | <mkdir dir="${dist}"/> |
||
124 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
125 | </target>
|
||
126 | |||
127 | <target name="copy-data-files"> |
||
128 | <copy file="config/config.xml" todir="${dist}"/> |
||
129 | <copy todir="${dist}"> |
||
130 | <fileset dir="config" includes="text*.properties"/> |
||
131 | </copy>
|
||
132 | <copy todir="${dist}/images"> |
||
133 | <fileset dir="images/" includes="*"/> |
||
134 | </copy>
|
||
135 | </target>
|
||
136 | |||
137 | <target name="move-to-andami"> |
||
138 | <move todir="${extensionsDir}/${plugin}/"> |
||
139 | <fileset dir="${dist}" includes="**/**"/> |
||
140 | </move>
|
||
141 | </target>
|
||
142 | |||
143 | <target name="clean" |
||
144 | description="clean up" > |
||
145 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
146 | <delete dir="${dist}"/> |
||
147 | <delete dir="${build}"/> |
||
148 | </target>
|
||
149 | 2257 | jmorell | </project>
|