svn-gvsig-desktop / trunk / extensions / extDataLocator / build.xml @ 13296
History | View | Annotate | Download (5.9 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin del Localizador por atributo en Andami. |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="andami" location="../_fwAndami" /> |
7 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
8 |
<property name="src" location="src"/> |
9 |
<property name="build" 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.datalocator"/> |
14 |
<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="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
19 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
20 |
<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar" />-->
|
21 |
<import file="../binaries/ant/utilities.xml"/> |
22 |
|
23 |
<target name="init"> |
24 |
<!-- Create the time stamp -->
|
25 |
<tstamp/> |
26 |
</target>
|
27 |
|
28 |
|
29 |
<target name="dist" depends="init" |
30 |
description="generate the distribution" > |
31 |
<!-- Remove previous distribution directory -->
|
32 |
<delete dir="${dist}"/> |
33 |
<!-- Create the distribution directory structure -->
|
34 |
<mkdir dir="${dist}"/> |
35 |
<mkdir dir="${dist}/src"/> |
36 |
<mkdir dir="${dist}/doc"/> |
37 |
<mkdir dir="${dist}/bin"/> |
38 |
<mkdir dir="${dist}/bin/com"/> |
39 |
<mkdir dir="${dist}/bin/com/iver"/> |
40 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
41 |
<mkdir dir="${dist}/bin/com/iver/gvsig/datalocator"/> |
42 |
<mkdir dir="${dist}/bin/com/iver/gvsig/datalocator/images"/> |
43 |
<mkdir dir="${dist}/images"/> |
44 |
<mkdir dir="${dist}/config"/> |
45 |
<!-- Copy necessary distribution files to dist dir -->
|
46 |
<copy todir="${dist}/src"> |
47 |
<fileset dir="${src}"/> |
48 |
</copy>
|
49 |
<copy todir="${dist}/doc"> |
50 |
<fileset dir="${doc}"/> |
51 |
</copy>
|
52 |
<copy todir="${dist}/images"> |
53 |
<fileset dir="images"/> |
54 |
</copy>
|
55 |
<copy file="config/config.xml" todir="${dist}/config"/> |
56 |
<copy file="build.number" todir="${dist}"/> |
57 |
<copy file="build.xml" todir="${dist}"/> |
58 |
<copy todir="${dist}"> |
59 |
<fileset dir="config" includes="text*.properties"/> |
60 |
</copy>
|
61 |
<!-- <copy todir="${dist}/bin/com/iver/gvsig/datalocator">
|
62 |
<fileset dir="." includes="text*.properties"/>
|
63 |
</copy> -->
|
64 |
<jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${build}"/> |
65 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
66 |
<copy file="build.number" todir="${dist}/bin/com/iver/gvsig/datalocator"/> |
67 |
<copy todir="${dist}/bin/com/iver/gvsig/datalocator/images"> |
68 |
<fileset dir="images"/> |
69 |
</copy>
|
70 |
<!-- Zip distribution -->
|
71 |
<zip destfile="${dist}/gvSIGDataLocatorPlugin.zip" |
72 |
basedir="${dist}" |
73 |
update="true" |
74 |
/>
|
75 |
</target>
|
76 |
|
77 |
<target name="clean-orig" |
78 |
description="clean dist directory" > |
79 |
<!-- Clean the distribution directory -->
|
80 |
<delete dir="${dist}/src"/> |
81 |
<delete dir="${dist}/doc"/> |
82 |
<delete dir="${dist}/bin"/> |
83 |
<delete dir="${dist}/images"/> |
84 |
<delete dir="${dist}/config"/> |
85 |
<delete file="${dist}/build.xml"/> |
86 |
<delete failonerror="false"> |
87 |
<fileset dir="${dist}" includes="**/*.properties"/> |
88 |
</delete>
|
89 |
</target>
|
90 |
|
91 |
<target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
92 |
<!-- Create the distribution directory -->
|
93 |
<mkdir dir="${without_src}"/> |
94 |
|
95 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
96 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
97 |
<copy file="config/config.xml" todir="${without_src}"/> |
98 |
<copy file="build.number" todir="${without_src}"/> |
99 |
<copy todir="${without_src}"> |
100 |
<fileset dir="config" includes="text*.properties"/> |
101 |
</copy>
|
102 |
<copy todir="${without_src}/images"> |
103 |
<fileset dir="images/" includes="*"/> |
104 |
</copy>
|
105 |
<move todir="${extensionsDir}/${plugin}/"> |
106 |
<fileset dir="${without_src}" includes="**/**"/> |
107 |
</move>
|
108 |
</target>
|
109 |
|
110 |
<target name="batch-build" |
111 |
description="compile the sources, create the jar file" |
112 |
depends="compile,create-jar,copy-data-files,move-to-andami"> |
113 |
</target>
|
114 |
|
115 |
<target name="compile" description="compile the source" > |
116 |
<!-- Compile the Java code from ${src} to ${build} -->
|
117 |
<antcall target="gvSIG-import-build-number"/> |
118 |
<mkdir dir="${build}" /> |
119 |
<loadEclipseClasspath project="${basedir}"/> |
120 |
<gvSIG-javac
|
121 |
classpath="${eclipseClasspath}" |
122 |
/>
|
123 |
<!--<javac srcdir="${src}"
|
124 |
destdir="${build}"
|
125 |
source="${JavaSourceVersion}"
|
126 |
target="${JavaTargetVersion}"
|
127 |
debug="${debug}"
|
128 |
debuglevel="${debuglevel}"
|
129 |
classpath="${compile-classpath}"
|
130 |
encoding="${encoding}"/>-->
|
131 |
</target>
|
132 |
|
133 |
<target name="create-jar" |
134 |
description="Creates the plugin jar"> |
135 |
<mkdir dir="${dist}"/> |
136 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
137 |
</target>
|
138 |
|
139 |
<target name="copy-data-files"> |
140 |
<copy file="config/config.xml" todir="${dist}"/> |
141 |
<copy file="build.number" todir="${dist}"/> |
142 |
<copy todir="${dist}"> |
143 |
<fileset dir="config" includes="text*.properties"/> |
144 |
</copy>
|
145 |
<copy todir="${dist}/images"> |
146 |
<fileset dir="images/" includes="*"/> |
147 |
</copy>
|
148 |
</target>
|
149 |
|
150 |
<target name="move-to-andami"> |
151 |
<move todir="${extensionsDir}/${plugin}/"> |
152 |
<fileset dir="${dist}" includes="**/**"/> |
153 |
</move>
|
154 |
</target>
|
155 |
|
156 |
<target name="clean" |
157 |
description="clean up" > |
158 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
159 |
<delete dir="${dist}"/> |
160 |
<delete dir="${build}"/> |
161 |
</target>
|
162 |
</project>
|
163 |
|