svn-gvsig-desktop / tags / v1_1_Build_1015 / extensions / extWMS / build.xml @ 13679
History | View | Annotate | Download (5.58 KB)
1 | 3746 | jaume | <project name="Generar extension en Andami" 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 | 6296 | cesar | <property name="lib" location="lib" /> |
10 | 3746 | jaume | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
11 | <property name="plugin" value="com.iver.cit.gvsig.wms"/> |
||
12 | <property name="gvsiglibjar" value="gvsig-wms"/> |
||
13 | <property name="fmapjar" value="fmap-wms"/> |
||
14 | <property name="driverjar" value="wms"/> |
||
15 | 5641 | cesar | <property name="andami" location="../_fwAndami"/> |
16 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
17 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
||
18 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
19 | <property name="andamiLibs" location="${andami}/lib" /> |
||
20 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
21 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
22 | <property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
||
23 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
24 | 9320 | jmvivo | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${andamiLibs}/kxml2.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${andamiLibs}/tempFileManager.jar" /> |
25 | 5641 | cesar | <!-- ${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/gt2-main.jar -->
|
26 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
27 | <property name="JavaTargetVersion" value="1.4"/> |
||
28 | 12259 | cesar | <property name="encoding" value="ISO_8859_1"/> |
29 | 12975 | cesar | <property name="debug" value="on"/> |
30 | <property name="debuglevel" value="lines, vars"/> |
||
31 | 5641 | cesar | |
32 | 10565 | jmvivo | |
33 | 3746 | jaume | <target name="init"> |
34 | <!-- Create the time stamp -->
|
||
35 | <tstamp/> |
||
36 | <!-- Create the build directory structure used by compile -->
|
||
37 | <mkdir dir="${build}"/> |
||
38 | <mkdir dir="${dist}"/> |
||
39 | |||
40 | </target>
|
||
41 | |||
42 | 10185 | jmvivo | <target name="import-build-number"> |
43 | <copy todir="."> |
||
44 | <fileset file="${buildNumberFile}"/> |
||
45 | </copy>
|
||
46 | </target>
|
||
47 | |||
48 | |||
49 | 3746 | jaume | <target name="generate-without-source" |
50 | description="generate the distribution without the source file"> |
||
51 | <!-- Create the distribution directory -->
|
||
52 | <mkdir dir="${dist}"/> |
||
53 | |||
54 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
55 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
56 | excludes="com/iver/cit/gvsig/fmap/**" |
||
57 | />
|
||
58 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
59 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
60 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
61 | <copy file="config/config.xml" todir="${dist}"/> |
||
62 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
63 | 3746 | jaume | <copy todir="${dist}"> |
64 | <fileset dir="config" includes="text*.properties"/> |
||
65 | </copy>
|
||
66 | <copy todir="${dist}/images"> |
||
67 | <fileset dir="images/" includes="*"/> |
||
68 | </copy>
|
||
69 | <copy todir="${lib-dir}"> |
||
70 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
71 | <fileset dir="." includes=".keystore"/> |
||
72 | </copy>
|
||
73 | 5641 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
74 | 3746 | jaume | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
75 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
76 | 5643 | cesar | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
77 | 3746 | jaume | </move>
|
78 | 5641 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
79 | 3746 | jaume | <fileset dir="${dist}" includes="**/**"/> |
80 | </move>
|
||
81 | </target>
|
||
82 | |||
83 | |||
84 | 5641 | cesar | <target name="batch-build" |
85 | description="compile the sources, create the jar file" |
||
86 | depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
||
87 | </target>
|
||
88 | 3746 | jaume | |
89 | 5641 | cesar | <target name="compile" description="compile the source" > |
90 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
91 | <mkdir dir="${build}" /> |
||
92 | <echo>${compile-classpath}</echo> |
||
93 | <javac srcdir="${src}" |
||
94 | destdir="${build}" |
||
95 | 10565 | jmvivo | source="${JavaSourceVersion}" |
96 | target="${JavaTargetVersion}" |
||
97 | 6296 | cesar | debug="${debug}" |
98 | debuglevel="${debuglevel}" |
||
99 | 12259 | cesar | classpath="${compile-classpath}" |
100 | encoding="${encoding}"/> |
||
101 | 5641 | cesar | </target>
|
102 | |||
103 | <target name="create-jar" |
||
104 | description="Creates the plugin jar"> |
||
105 | <mkdir dir="${dist}/lib"/> |
||
106 | 5662 | cesar | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
107 | 5641 | cesar | excludes="com/iver/cit/gvsig/fmap/**" |
108 | />
|
||
109 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
110 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
111 | </target>
|
||
112 | 3746 | jaume | |
113 | 5641 | cesar | <target name="copy-data-files"> |
114 | <copy file="config/config.xml" todir="${dist}"/> |
||
115 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
116 | 5641 | cesar | <copy todir="${dist}"> |
117 | <fileset dir="config" includes="text*.properties"/> |
||
118 | </copy>
|
||
119 | <copy todir="${dist}/images"> |
||
120 | <fileset dir="images/" includes="*"/> |
||
121 | </copy>
|
||
122 | </target>
|
||
123 | |||
124 | <target name="copy-libs"> |
||
125 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
126 | <fileset file="${remoteclientjar}"/> |
||
127 | </copy>
|
||
128 | </target>
|
||
129 | |||
130 | <target name="move-to-andami"> |
||
131 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
132 | 6296 | cesar | <fileset dir="${lib}" includes="*.jar,*.zip"/> |
133 | 5641 | cesar | </copy>
|
134 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
135 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
136 | </move>
|
||
137 | <move todir="${extensionsDir}/${plugin}/"> |
||
138 | <fileset dir="${dist}" includes="**/**"/> |
||
139 | </move>
|
||
140 | </target>
|
||
141 | |||
142 | |||
143 | <target name="clean" |
||
144 | description="clean up" > |
||
145 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
146 | <delete dir="${dist}"/> |
||
147 | <delete dir="${build}"/> |
||
148 | </target>
|
||
149 | 3746 | jaume | </project>
|