svn-gvsig-desktop / tags / v10_RC2c / extensions / extWMS / build.xml @ 18444
History | View | Annotate | Download (5.06 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 | <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:${fmapLibs}/kxml2.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${andamiLibs}/tempFileManager.jar" /> |
||
25 | <!-- ${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/gt2-main.jar -->
|
||
26 | |||
27 | 3746 | jaume | <target name="init"> |
28 | <!-- Create the time stamp -->
|
||
29 | <tstamp/> |
||
30 | <!-- Create the build directory structure used by compile -->
|
||
31 | <mkdir dir="${build}"/> |
||
32 | <mkdir dir="${dist}"/> |
||
33 | |||
34 | </target>
|
||
35 | |||
36 | <target name="generate-without-source" |
||
37 | description="generate the distribution without the source file"> |
||
38 | <!-- Create the distribution directory -->
|
||
39 | <mkdir dir="${dist}"/> |
||
40 | |||
41 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
42 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
43 | excludes="com/iver/cit/gvsig/fmap/**" |
||
44 | />
|
||
45 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
46 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
47 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
48 | <copy file="config/config.xml" todir="${dist}"/> |
||
49 | <copy todir="${dist}"> |
||
50 | <fileset dir="config" includes="text*.properties"/> |
||
51 | </copy>
|
||
52 | <copy todir="${dist}/images"> |
||
53 | <fileset dir="images/" includes="*"/> |
||
54 | </copy>
|
||
55 | <copy todir="${lib-dir}"> |
||
56 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
57 | <fileset dir="." includes=".keystore"/> |
||
58 | </copy>
|
||
59 | 5641 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
60 | 3746 | jaume | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
61 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
62 | 5643 | cesar | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
63 | 3746 | jaume | </move>
|
64 | 5641 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
65 | 3746 | jaume | <fileset dir="${dist}" includes="**/**"/> |
66 | </move>
|
||
67 | </target>
|
||
68 | |||
69 | |||
70 | 5641 | cesar | <target name="batch-build" |
71 | description="compile the sources, create the jar file" |
||
72 | depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
||
73 | </target>
|
||
74 | 3746 | jaume | |
75 | 5641 | cesar | <target name="compile" description="compile the source" > |
76 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
77 | <mkdir dir="${build}" /> |
||
78 | <echo>${compile-classpath}</echo> |
||
79 | <javac srcdir="${src}" |
||
80 | destdir="${build}" |
||
81 | 7776 | cesar | source="1.4" |
82 | target="1.4" |
||
83 | 6296 | cesar | debug="${debug}" |
84 | debuglevel="${debuglevel}" |
||
85 | 5641 | cesar | classpath="${compile-classpath}"/> |
86 | </target>
|
||
87 | |||
88 | <target name="create-jar" |
||
89 | description="Creates the plugin jar"> |
||
90 | <mkdir dir="${dist}/lib"/> |
||
91 | 5662 | cesar | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
92 | 5641 | cesar | excludes="com/iver/cit/gvsig/fmap/**" |
93 | />
|
||
94 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
95 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
96 | </target>
|
||
97 | 3746 | jaume | |
98 | 5641 | cesar | <target name="copy-data-files"> |
99 | <copy file="config/config.xml" todir="${dist}"/> |
||
100 | <copy todir="${dist}"> |
||
101 | <fileset dir="config" includes="text*.properties"/> |
||
102 | </copy>
|
||
103 | <copy todir="${dist}/images"> |
||
104 | <fileset dir="images/" includes="*"/> |
||
105 | </copy>
|
||
106 | </target>
|
||
107 | |||
108 | <target name="copy-libs"> |
||
109 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
110 | <fileset file="${remoteclientjar}"/> |
||
111 | </copy>
|
||
112 | </target>
|
||
113 | |||
114 | <target name="move-to-andami"> |
||
115 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
116 | 6296 | cesar | <fileset dir="${lib}" includes="*.jar,*.zip"/> |
117 | 5641 | cesar | </copy>
|
118 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
119 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
120 | </move>
|
||
121 | <move todir="${extensionsDir}/${plugin}/"> |
||
122 | <fileset dir="${dist}" includes="**/**"/> |
||
123 | </move>
|
||
124 | </target>
|
||
125 | |||
126 | |||
127 | <target name="clean" |
||
128 | description="clean up" > |
||
129 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
130 | <delete dir="${dist}"/> |
||
131 | <delete dir="${build}"/> |
||
132 | </target>
|
||
133 | 3746 | jaume | </project>
|