svn-gvsig-desktop / trunk / applications / appgvSIG / build.xml @ 1113
History | View | Annotate | Download (3.39 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="0.3.0 beta ${buildDate}"/> |
8 |
<property name="src" location="src"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="plugin" value="com.iver.cit.gvsig"/> |
12 |
<property name="fmapdir" value="../FMAP 03"/> |
13 |
<property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
14 |
<property name="makeZip" location="makeZip"/> |
15 |
<property name="zipName" value="gvSIG-${version}"/> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp/> |
20 |
<!-- Create the build directory structure used by compile -->
|
21 |
<mkdir dir="${build}"/> |
22 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
23 |
<buildnumber/> |
24 |
|
25 |
</target>
|
26 |
|
27 |
|
28 |
<target name="compile" depends="init" |
29 |
description="compile the source " > |
30 |
<!-- Compile the java code from ${src} into ${build}
|
31 |
<javac srcdir="${src}" destdir="${build}"/>-->
|
32 |
</target>
|
33 |
|
34 |
<target name="dist" depends="compile" |
35 |
description="generate the distribution" > |
36 |
<!-- Create the distribution directory -->
|
37 |
<mkdir dir="${dist}"/> |
38 |
|
39 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
40 |
<copy todir="${dist}/lib"> |
41 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
42 |
</copy>
|
43 |
<copy todir="${dist}/lib"> |
44 |
<fileset dir="${fmapdir}/lib" includes="*.jar"/> |
45 |
</copy>
|
46 |
<jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/> |
47 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
48 |
<copy file="config/config.xml" todir="${dist}"/> |
49 |
<copy file="config/about.htm" todir="${dist}"/> |
50 |
<copy file="build.number" todir="${dist}"/> |
51 |
<copy todir="${dist}"> |
52 |
<fileset dir="." includes="text*.properties"/> |
53 |
</copy>
|
54 |
<copy todir="${dist}/images"> |
55 |
<fileset dir="images/" includes="*"/> |
56 |
</copy>
|
57 |
|
58 |
<move todir="${extensionDir}/${plugin}/"> |
59 |
<fileset dir="${dist}" includes="**/**"/> |
60 |
</move>
|
61 |
</target>
|
62 |
|
63 |
<target name="makeZip" |
64 |
description="Genera un zip con todo lo necesario para ejecutar gvSIG" |
65 |
depends="dist"> |
66 |
<!-- Create the distribution directory -->
|
67 |
<mkdir dir="${dist}/${zipName}"/> |
68 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/> |
69 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/> |
70 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/> |
71 |
<copy todir="${dist}/${zipName}"> |
72 |
<fileset dir="../mdiApp"> |
73 |
<include name="extensiones/${plugin}/**"/> |
74 |
<include name="extensiones/plugin.*"/> |
75 |
<include name="plugin.*"/> |
76 |
</fileset>
|
77 |
<!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
|
78 |
<fileset dir="../mdiApp_v02_estable"> |
79 |
<include name="lib/**"/> |
80 |
</fileset>
|
81 |
<fileset dir="distFiles" includes="**/**"/> |
82 |
</copy>
|
83 |
<zip zipfile="${zipName}.zip"> |
84 |
<fileset dir="${dist}"> |
85 |
<include name="**/**"/> |
86 |
</fileset>
|
87 |
</zip>
|
88 |
<delete dir="${dist}"/> |
89 |
</target>
|
90 |
|
91 |
<target name="clean" |
92 |
description="clean up" > |
93 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
94 |
<delete dir="${build}"/> |
95 |
<delete dir="${dist}"/> |
96 |
</target>
|
97 |
</project>
|
98 |
|