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