svn-gvsig-desktop / tags / Root_v10alpha_tecnimap / applications / appgvSIG / build.xml @ 5504
History | View | Annotate | Download (6.82 KB)
1 |
<project name="Generar extension en MDIAPP" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<!-- <property name="buildDate" value="20041018"/> -->
|
7 |
<property name="version" value="1.0 beta ${eclipse.startTime}"/> |
8 |
<property name="src" location="src"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="lib" location="lib"/> |
12 |
<property name="plugin" value="com.iver.cit.gvsig"/> |
13 |
<property name="fmapdir" value="../libFMap"/> |
14 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
15 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
16 |
<property name="fmapLibs" location="../libFMap/lib"/> |
17 |
<property name="andamiJar" location="../_fwAndami/andami.jar"/> |
18 |
<property name="makeZip" location="makeZip"/> |
19 |
<property name="zipName" value="gvSIG-${version}"/> |
20 |
<property name="build-doc" value="build-doc"/> |
21 |
<property name="compile-classpath" value="${extensionDir}/com.iver.cit.gvsig/lib/fmap.jar:${andamiJar}:${lib}/JimiProClasses.zip:${lib}/batik-awt-util.jar:${lib}/batik-ext.jar:${lib}/batik-gui-util.jar:${lib}/batik-gvt.jar:${lib}/batik-util.jar:${lib}/jep-2.24.jar:${andamiLibs}/beans.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/log4j-1.2.8.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${lib}/batik-bridge.jar:${lib}/batik-transcoder.jar:${lib}/js.jar:${lib}/pdf-transcoder.jar:${lib}/batik-css.jar:${lib}/batik-dom.jar:${lib}/batik-extension.jar:${lib}/batik-parser.jar:${lib}/batik-script.jar:${lib}/batik-svg-dom.jar:${lib}/batik-svggen.jar:${lib}/batik-swing.jar:${lib}/batik-xml.jar:${lib}/xml-apis.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/gt2-legacy.jar:${fmapLibs}/gt2-main.jar:${fmapLibs}/gt2-postgis.jar:${fmapLibs}/gt2-wfs.jar:${fmapLibs}/gt2-wms.jar:${fmapLibs}/jecw-0.0.1.jar:${fmapLibs}/jogr.jar:${lib-fmap}/units-0.01.jar:${lib-fmap}/jecwcompress-0.0.0.jar:${lib-fmap}/jgdal-0.1.0.jar:${lib-fmap}/wmsclient.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/itext-1.3.jar:${lib}/junit.jar"/> |
22 |
|
23 |
<target name="init"> |
24 |
<!-- Create the time stamp -->
|
25 |
<tstamp/> |
26 |
<!-- Create the build directory structure used by compile -->
|
27 |
<mkdir dir="${build}"/> |
28 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
29 |
<!-- <buildnumber/> -->
|
30 |
</target>
|
31 |
|
32 |
<target name="build-doc" depends="" description="Genera un zip con la documentación"> |
33 |
<javadoc
|
34 |
packagenames="com.iver.cit.gvsig.*" |
35 |
sourcepath="src" |
36 |
defaultexcludes="yes" |
37 |
destdir="${build-doc}/gvSIG-api" |
38 |
windowtitle="gvSIG API"> |
39 |
</javadoc>
|
40 |
</target>
|
41 |
|
42 |
<target name="dist" |
43 |
depends="init" |
44 |
description="generate the distribution" > |
45 |
<!-- Create the distribution directory -->
|
46 |
<mkdir dir="${dist}"/> |
47 |
|
48 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
49 |
<copy todir="${dist}/lib"> |
50 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
51 |
</copy>
|
52 |
<copy todir="${dist}/lib"> |
53 |
<fileset dir="${fmapdir}/lib" includes="*.jar"/> |
54 |
</copy>
|
55 |
<jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/> |
56 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
57 |
<copy file="config/config.xml" todir="${dist}"/> |
58 |
<copy file="config/about.htm" todir="${dist}"/> |
59 |
<copy file="build.number" todir="${dist}"/> |
60 |
<copy todir="${dist}"> |
61 |
<fileset dir="config" includes="text*.properties"/> |
62 |
</copy>
|
63 |
<copy todir="${dist}/images"> |
64 |
<fileset dir="images/" includes="*"/> |
65 |
</copy>
|
66 |
<copy todir="${dist}/northimages"> |
67 |
<fileset dir="northimages/" includes="*"/> |
68 |
</copy>
|
69 |
|
70 |
<move todir="${extensionDir}/${plugin}/"> |
71 |
<fileset dir="${dist}" includes="**/**"/> |
72 |
</move>
|
73 |
</target>
|
74 |
|
75 |
<target name="makeZip" |
76 |
description="Genera un zip con todo lo necesario para ejecutar gvSIG" |
77 |
depends="dist"> |
78 |
<!-- Create the distribution directory -->
|
79 |
<mkdir dir="${dist}/${zipName}"/> |
80 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/> |
81 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/> |
82 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/> |
83 |
<copy todir="${dist}/${zipName}"> |
84 |
<fileset dir="../mdiApp"> |
85 |
<include name="extensiones/${plugin}/**"/> |
86 |
<include name="extensiones/plugin.*"/> |
87 |
<include name="plugin.*"/> |
88 |
</fileset>
|
89 |
<!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
|
90 |
<fileset dir="../mdiApp_v02_estable"> |
91 |
<include name="lib/**"/> |
92 |
</fileset>
|
93 |
<fileset dir="distFiles" includes="**/**"/> |
94 |
</copy>
|
95 |
<zip zipfile="${zipName}.zip"> |
96 |
<fileset dir="${dist}"> |
97 |
<include name="**/**"/> |
98 |
</fileset>
|
99 |
</zip>
|
100 |
<delete dir="${dist}"/> |
101 |
</target>
|
102 |
|
103 |
<target name="batch-build" |
104 |
description="compile the sources, create the jar file" |
105 |
depends="get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
106 |
</target>
|
107 |
|
108 |
<target name="compile" description="compile the source"> |
109 |
<!-- Create the time stamp -->
|
110 |
<tstamp/> |
111 |
<!-- Create the build directory structure used by compile -->
|
112 |
<mkdir dir="${build}"/> |
113 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
114 |
<buildnumber /> |
115 |
<!-- Compile the Java code from ${src} to ${build} -->
|
116 |
<javac srcdir="${src}" |
117 |
destdir="${build}" |
118 |
source="1.4" |
119 |
target="1.4" |
120 |
classpath="${compile-classpath}" |
121 |
excludes="com/iver/cit/gvsig/test/**"/> |
122 |
</target>
|
123 |
|
124 |
<target name="create-jar" description="Creates the jar file"> |
125 |
<mkdir dir="${dist}/lib"/> |
126 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
127 |
</target>
|
128 |
|
129 |
<target name="copy-libs" |
130 |
depends="get-fmap-libs"> |
131 |
<mkdir dir="${dist}"/> |
132 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
133 |
<copy todir="${dist}/lib"> |
134 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
135 |
</copy>
|
136 |
</target>
|
137 |
|
138 |
<target name="get-fmap-libs"> |
139 |
<copy todir="${dist}/lib"> |
140 |
<fileset dir="${fmapdir}/lib" includes="*.jar"/> |
141 |
</copy>
|
142 |
<jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/> |
143 |
<copy file="${dist}/lib/fmap.jar" todir="${extensionDir}/${plugin}/lib"/> |
144 |
</target>
|
145 |
|
146 |
<target name="copy-data-files"> |
147 |
<copy todir="${dist}"> |
148 |
<fileset dir="config" includes="*" /> |
149 |
</copy>
|
150 |
<copy file="build.number" todir="${dist}"/> |
151 |
<copy todir="${dist}/images"> |
152 |
<fileset dir="images/" includes="*"/> |
153 |
</copy>
|
154 |
<copy todir="${dist}/northimages"> |
155 |
<fileset dir="northimages/" includes="*"/> |
156 |
</copy>
|
157 |
</target>
|
158 |
|
159 |
<target name="move-to-andami" description="Moves the build directory to andami"> |
160 |
<move todir="${extensionDir}/${plugin}/"> |
161 |
<fileset dir="${dist}" includes="**/**"/> |
162 |
</move>
|
163 |
</target>
|
164 |
|
165 |
<target name="clean" |
166 |
description="clean up" > |
167 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
168 |
<delete dir="${build}"/> |
169 |
<delete dir="${dist}"/> |
170 |
</target>
|
171 |
</project>
|
172 |
|