root / tags / v1_1_Build_1003 / extensions / extArcims / build.xml @ 12271
History | View | Annotate | Download (4.9 KB)
1 |
<project name="extArcims" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="bin"/> |
8 |
<property name="dist" location="dist"/> |
9 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
10 |
<property name="plugin" value="es.prodevelop.cit.gvsig.arcims"/> |
11 |
<property name="andami" location="../_fwAndami"/> |
12 |
<property name="fmapjar" value="fmap-arcims"/> |
13 |
<property name="driverjar" value="arcims"/> |
14 |
<property name="extensionDir" location="${andami}/gvSIG/extensiones"/> |
15 |
<property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers"/> |
16 |
<property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/> |
17 |
<property name="fmap" location="../libFMap"/> |
18 |
<property name="entrega" location="../dist"/> |
19 |
<property name="zip-src" location="../gvSIG-ArcIMS-Client-src"/> |
20 |
<property name="zip-bin" location="../gvSIG-ArcIMS-Client-bin"/> |
21 |
<target name="init"> |
22 |
<!-- Create the time stamp -->
|
23 |
<tstamp/> |
24 |
<!-- Create the build directory structure used by compile -->
|
25 |
<mkdir dir="${build}"/> |
26 |
<mkdir dir="${dist}"/> |
27 |
</target>
|
28 |
<target name="compile" description="compile the source"> |
29 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
30 |
<javac
|
31 |
srcdir="${src}" |
32 |
destdir="${build}" |
33 |
source="${JavaSourceVersion}" |
34 |
target="${JavaTargetVersion}" |
35 |
debug="${debug}" |
36 |
debuglevel="${debuglevel}" |
37 |
classpath="${andami}/lib/log4j-1.2.8.jar:${andami}/andami.jar:${andami}/gvSIG/extensiones/es.prodevelop.cit.gvsig/lib/es.prodevelop.cit.gvsig.jar:${andami}/gvSIG/extensiones/es.prodevelop.cit.gvsig/lib/fmap.jar:lib/remote-clients.jar:${fmap}/lib/cms.jar:${fmap}/lib/driver-manager-1.0.jar:${andami}/lib/tempFileManager.jar:${andami}/lib/iver-utiles.jar"/> |
38 |
</target>
|
39 |
|
40 |
<target name="import-build-number"> |
41 |
<copy todir="."> |
42 |
<fileset file="${buildNumberFile}"/> |
43 |
</copy>
|
44 |
</target>
|
45 |
<target name="batch-build" depends="compile,generate-without-source"> |
46 |
<echo>
|
47 |
Compiling ${ant.project.name}...</echo>
|
48 |
</target>
|
49 |
<target name="generate-without-source" description="generate the distribution without the source file"> |
50 |
<!-- Create the distribution directory -->
|
51 |
<mkdir dir="${dist}"/> |
52 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
53 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="es/prodevelop/cit/gvsig/arcims/**" excludes="es/prodevelop/cit/gvsig/arcims/fmap/**"/> |
54 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" includes="es/prodevelop/cit/gvsig/arcims/fmap/**"/> |
55 |
<copy todir="${dist}"> |
56 |
<fileset dir="config" includes="*"/> |
57 |
</copy>
|
58 |
<copy todir="${dist}/images"> |
59 |
<fileset dir="images" includes="*"/> |
60 |
</copy>
|
61 |
<copy todir="${dist}/about"> |
62 |
<fileset dir="about" includes="*"/> |
63 |
</copy>
|
64 |
<copy todir="${lib-dir}"> |
65 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
66 |
<fileset dir="." includes=".keystore"/> |
67 |
</copy>
|
68 |
<move todir="${extensionDir}/${mainplugin}/lib"> |
69 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
70 |
</move>
|
71 |
<move todir="${extensionDir}/${plugin}/"> |
72 |
<fileset dir="${dist}" includes="**/**"/> |
73 |
</move>
|
74 |
</target>
|
75 |
<target name="entrega-bin" depends="generate-without-source" description="Generates an almost |
76 |
distributable extension directory"> |
77 |
<buildnumber file="Cliente-ArcIMS.number"/> |
78 |
<!--<delete file="${zip-bin}"/> -->
|
79 |
<mkdir dir="${entrega}"/> |
80 |
<copy todir="${entrega}/${mainplugin}/lib"> |
81 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
82 |
<fileset dir="." includes=".keystore"/> |
83 |
<fileset dir="${extensionDir}/${mainplugin}/lib" includes="${gvsiglibjar}.jar"/> |
84 |
<fileset dir="${extensionDir}/${mainplugin}/lib" includes="${fmapjar}.jar"/> |
85 |
<fileset dir="${extensionDir}/${mainplugin}/lib" includes="${remoteclientjar}.jar"/> |
86 |
</copy>
|
87 |
<copy todir="${entrega}/${plugin}/"> |
88 |
<fileset dir="${extensionDir}/${plugin}/" includes="**/**"/> |
89 |
</copy>
|
90 |
<zip destfile="${zip-bin}-BN${build.number}.zip" basedir="${entrega}" includes="**/**"/> |
91 |
<delete dir="${entrega}"/> |
92 |
</target>
|
93 |
<target name="entrega-src" depends="entrega-bin" description="Zips clean source"> |
94 |
<!--<delete file="${zip-src}"/>-->
|
95 |
<mkdir dir="${entrega}"/> |
96 |
<copy todir="${entrega}/extArcims"> |
97 |
<fileset dir="."> |
98 |
<include name="**"/> |
99 |
</fileset>
|
100 |
</copy>
|
101 |
<copy todir="${entrega}/libArcIMS"> |
102 |
<fileset dir="../libArcIMS"> |
103 |
<include name="**"/> |
104 |
</fileset>
|
105 |
</copy>
|
106 |
<zip destfile="${zip-src}-BN${build.number}.zip" basedir="${entrega}" includes="**/**"/> |
107 |
<delete dir="${entrega}"/> |
108 |
</target>
|
109 |
<target name="clean" description="clean up"> |
110 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
111 |
<delete dir="${dist}"/> |
112 |
<delete includeemptydirs="true" failonerror="no"> |
113 |
<fileset dir="${build}" includes="**/*"/> |
114 |
</delete>
|
115 |
</target>
|
116 |
</project>
|