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