svn-gvsig-desktop / trunk / applications / appgvSIG / build.xml @ 904
History | View | Annotate | Download (4.74 KB)
1 | 312 | fernando | <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 | 357 | fjp | <property name="version" value="0.3.0 beta ${buildDate}"/> |
8 | 312 | fernando | <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 | 596 | fernando | <property name="fmapdir" value="../FMAP 03"/> |
13 | 667 | fernando | <property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
14 | 312 | fernando | <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="distSinFuentes" 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 | <jar jarfile="${dist}/fmap.jar" basedir="${fmapdir}/bin"/> |
||
41 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
42 | <copy file="config/config.xml" todir="${dist}"/> |
||
43 | <copy file="config/about.htm" todir="${dist}"/> |
||
44 | <copy file="config/plugin.dtd" todir="${dist}"/> |
||
45 | <copy file="build.number" todir="${dist}"/> |
||
46 | <copy todir="${dist}"> |
||
47 | <fileset dir="." includes="text*.properties"/> |
||
48 | </copy>
|
||
49 | <copy todir="${dist}/images"> |
||
50 | <fileset dir="images/" includes="*"/> |
||
51 | </copy>
|
||
52 | <copy todir="${dist}"> |
||
53 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
54 | </copy>
|
||
55 | <copy todir="${dist}"> |
||
56 | 596 | fernando | <fileset dir="${fmapdir}/lib" includes="*.jar"/> |
57 | 312 | fernando | </copy>
|
58 | <copy todir="${dist}"> |
||
59 | <fileset dir="./config" |
||
60 | includes="mapping.xml"/> |
||
61 | </copy>
|
||
62 | |||
63 | <move todir="${extensionDir}/${plugin}/"> |
||
64 | <fileset dir="${dist}" includes="**/**"/> |
||
65 | </move>
|
||
66 | </target>
|
||
67 | |||
68 | <target name="dist" depends="compile" |
||
69 | description="generate the distribution" > |
||
70 | <!-- Create the distribution directory -->
|
||
71 | <mkdir dir="${dist}"/> |
||
72 | |||
73 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
74 | <copy todir="${build}"> |
||
75 | <fileset dir="${src}" includes="**"/> |
||
76 | </copy>
|
||
77 | <jar jarfile="${dist}/fmap.jar" basedir="${fmapdir}/bin"/> |
||
78 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
79 | <copy file="config/config.xml" todir="${dist}"/> |
||
80 | <copy file="config/about.htm" todir="${dist}"/> |
||
81 | <copy file="config/plugin.dtd" todir="${dist}"/> |
||
82 | <copy file="build.number" todir="${dist}"/> |
||
83 | <copy todir="${dist}"> |
||
84 | <fileset dir="." includes="text*.properties"/> |
||
85 | </copy>
|
||
86 | <copy todir="${dist}/images"> |
||
87 | <fileset dir="images/" includes="*"/> |
||
88 | </copy>
|
||
89 | <copy todir="${dist}"> |
||
90 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
91 | </copy>
|
||
92 | <copy todir="${dist}"> |
||
93 | 357 | fjp | <fileset dir="${fmapdir}/lib" includes="*.jar"/> |
94 | 312 | fernando | </copy>
|
95 | <copy todir="${dist}"> |
||
96 | <fileset dir="./config" |
||
97 | includes="mapping.xml"/> |
||
98 | </copy>
|
||
99 | |||
100 | <move todir="${extensionDir}/${plugin}/"> |
||
101 | <fileset dir="${dist}" includes="**/**"/> |
||
102 | </move>
|
||
103 | </target>
|
||
104 | |||
105 | <target name="makeZip" |
||
106 | description="Genera un zip con todo lo necesario para ejecutar gvSIG" |
||
107 | depends="dist"> |
||
108 | <!-- Create the distribution directory -->
|
||
109 | <mkdir dir="${dist}/${zipName}"/> |
||
110 | <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/> |
||
111 | <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/> |
||
112 | <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/> |
||
113 | <copy todir="${dist}/${zipName}"> |
||
114 | <fileset dir="../mdiApp"> |
||
115 | <include name="extensiones/${plugin}/**"/> |
||
116 | <include name="extensiones/plugin.*"/> |
||
117 | <include name="plugin.*"/> |
||
118 | </fileset>
|
||
119 | <!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
|
||
120 | 660 | luisw | <fileset dir="../mdiApp_v02_estable"> |
121 | 312 | fernando | <include name="lib/**"/> |
122 | </fileset>
|
||
123 | <fileset dir="distFiles" includes="**/**"/> |
||
124 | </copy>
|
||
125 | <zip zipfile="${zipName}.zip"> |
||
126 | <fileset dir="${dist}"> |
||
127 | <include name="**/**"/> |
||
128 | </fileset>
|
||
129 | </zip>
|
||
130 | <delete dir="${dist}"/> |
||
131 | </target>
|
||
132 | |||
133 | <target name="clean" |
||
134 | description="clean up" > |
||
135 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
136 | <delete dir="${build}"/> |
||
137 | <delete dir="${dist}"/> |
||
138 | </target>
|
||
139 | </project>
|