svn-gvsig-desktop / tags / v1_1_2_Build_1041 / extensions / extArcims / build.xml @ 38094
History | View | Annotate | Download (5.66 KB)
1 | 12256 | jmvivo | <project name="extArcims" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 8110 | jsanz | <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 | 12737 | jmvivo | |
22 | 16973 | jmvivo | <property name="andamiLibs" location="${andami}/lib"/> |
23 | 12737 | jmvivo | <property name="fmapLibs" location="${fmap}/lib"/> |
24 | <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"/> |
||
25 | <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"/> |
||
26 | 16973 | jmvivo | |
27 | |||
28 | |||
29 | 8110 | jsanz | <target name="init"> |
30 | <!-- Create the time stamp -->
|
||
31 | <tstamp/> |
||
32 | <!-- Create the build directory structure used by compile -->
|
||
33 | <mkdir dir="${build}"/> |
||
34 | <mkdir dir="${dist}"/> |
||
35 | </target>
|
||
36 | <target name="compile" description="compile the source"> |
||
37 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
38 | 16973 | jmvivo | <javac
|
39 | srcdir="${src}" |
||
40 | destdir="${build}" |
||
41 | 12256 | jmvivo | source="${JavaSourceVersion}" |
42 | target="${JavaTargetVersion}" |
||
43 | debug="${debug}" |
||
44 | 16973 | jmvivo | debuglevel="${debuglevel}" |
45 | encoding="${encoding}" |
||
46 | 12737 | jmvivo | classpath="${compile-classpath}"/> |
47 | 16973 | jmvivo | <copy todir="${build}"> |
48 | <fileset
|
||
49 | dir="${src}" |
||
50 | excludes="**/*.java"/> |
||
51 | </copy>
|
||
52 | |||
53 | 8110 | jsanz | </target>
|
54 | 16973 | jmvivo | |
55 | 12256 | jmvivo | <target name="import-build-number"> |
56 | <copy todir="."> |
||
57 | <fileset file="${buildNumberFile}"/> |
||
58 | </copy>
|
||
59 | </target>
|
||
60 | <target name="batch-build" depends="compile,generate-without-source"> |
||
61 | <echo>
|
||
62 | 16973 | jmvivo | Compiling ${ant.project.name}...</echo>
|
63 | </target>
|
||
64 | 8110 | jsanz | <target name="generate-without-source" description="generate the distribution without the source file"> |
65 | <!-- Create the distribution directory -->
|
||
66 | <mkdir dir="${dist}"/> |
||
67 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
68 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="es/prodevelop/cit/gvsig/arcims/**" excludes="es/prodevelop/cit/gvsig/arcims/fmap/**"/> |
||
69 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" includes="es/prodevelop/cit/gvsig/arcims/fmap/**"/> |
||
70 | <copy todir="${dist}"> |
||
71 | <fileset dir="config" includes="*"/> |
||
72 | </copy>
|
||
73 | <copy todir="${dist}/images"> |
||
74 | <fileset dir="images" includes="*"/> |
||
75 | </copy>
|
||
76 | <copy todir="${dist}/about"> |
||
77 | <fileset dir="about" includes="*"/> |
||
78 | </copy>
|
||
79 | <copy todir="${lib-dir}"> |
||
80 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
81 | <fileset dir="." includes=".keystore"/> |
||
82 | </copy>
|
||
83 | <move todir="${extensionDir}/${mainplugin}/lib"> |
||
84 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
85 | </move>
|
||
86 | <move todir="${extensionDir}/${plugin}/"> |
||
87 | <fileset dir="${dist}" includes="**/**"/> |
||
88 | </move>
|
||
89 | </target>
|
||
90 | <target name="entrega-bin" depends="generate-without-source" description="Generates an almost |
||
91 | distributable extension directory"> |
||
92 | <buildnumber file="Cliente-ArcIMS.number"/> |
||
93 | <!--<delete file="${zip-bin}"/> -->
|
||
94 | <mkdir dir="${entrega}"/> |
||
95 | <copy todir="${entrega}/${mainplugin}/lib"> |
||
96 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
97 | <fileset dir="." includes=".keystore"/> |
||
98 | <fileset dir="${extensionDir}/${mainplugin}/lib" includes="${gvsiglibjar}.jar"/> |
||
99 | <fileset dir="${extensionDir}/${mainplugin}/lib" includes="${fmapjar}.jar"/> |
||
100 | <fileset dir="${extensionDir}/${mainplugin}/lib" includes="${remoteclientjar}.jar"/> |
||
101 | </copy>
|
||
102 | <copy todir="${entrega}/${plugin}/"> |
||
103 | <fileset dir="${extensionDir}/${plugin}/" includes="**/**"/> |
||
104 | </copy>
|
||
105 | <zip destfile="${zip-bin}-BN${build.number}.zip" basedir="${entrega}" includes="**/**"/> |
||
106 | <delete dir="${entrega}"/> |
||
107 | </target>
|
||
108 | <target name="entrega-src" depends="entrega-bin" description="Zips clean source"> |
||
109 | <!--<delete file="${zip-src}"/>-->
|
||
110 | <mkdir dir="${entrega}"/> |
||
111 | <copy todir="${entrega}/extArcims"> |
||
112 | <fileset dir="."> |
||
113 | <include name="**"/> |
||
114 | </fileset>
|
||
115 | </copy>
|
||
116 | <copy todir="${entrega}/libArcIMS"> |
||
117 | <fileset dir="../libArcIMS"> |
||
118 | <include name="**"/> |
||
119 | </fileset>
|
||
120 | </copy>
|
||
121 | <zip destfile="${zip-src}-BN${build.number}.zip" basedir="${entrega}" includes="**/**"/> |
||
122 | <delete dir="${entrega}"/> |
||
123 | </target>
|
||
124 | <target name="clean" description="clean up"> |
||
125 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
126 | <delete dir="${dist}"/> |
||
127 | <delete includeemptydirs="true" failonerror="no"> |
||
128 | <fileset dir="${build}" includes="**/*"/> |
||
129 | </delete>
|
||
130 | </target>
|
||
131 | </project> |