svn-gvsig-desktop / tags / v1_2_Build_1205 / extensions / extWMS / build.xml @ 38239
History | View | Annotate | Download (5.47 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 | 13309 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
7 | 3746 | jaume | <property name="src" location="src"/> |
8 | <property name="build" location="bin"/> |
||
9 | 13487 | cesar | <property name="src-test" location="test"/> |
10 | <property name="build-test" location="bin-test"/> |
||
11 | 3746 | jaume | <property name="dist" location="dist"/> |
12 | 6296 | cesar | <property name="lib" location="lib" /> |
13 | 3746 | jaume | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
14 | <property name="plugin" value="com.iver.cit.gvsig.wms"/> |
||
15 | <property name="gvsiglibjar" value="gvsig-wms"/> |
||
16 | <property name="fmapjar" value="fmap-wms"/> |
||
17 | <property name="driverjar" value="wms"/> |
||
18 | 5641 | cesar | <property name="andami" location="../_fwAndami"/> |
19 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
20 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
||
21 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
22 | <property name="andamiLibs" location="${andami}/lib" /> |
||
23 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
24 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
25 | <property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
||
26 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
27 | 9629 | cesar | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar" /> |
28 | 13309 | 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:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.jar:${fmapLibs}/gvsig-exceptions.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" />-->
|
29 | |||
30 | 3746 | jaume | <target name="init"> |
31 | <!-- Create the time stamp -->
|
||
32 | <tstamp/> |
||
33 | <!-- Create the build directory structure used by compile -->
|
||
34 | <mkdir dir="${build}"/> |
||
35 | <mkdir dir="${dist}"/> |
||
36 | 13309 | jmvivo | |
37 | 3746 | jaume | </target>
|
38 | |||
39 | 10187 | jmvivo | |
40 | 3746 | jaume | <target name="generate-without-source" |
41 | description="generate the distribution without the source file"> |
||
42 | <!-- Create the distribution directory -->
|
||
43 | <mkdir dir="${dist}"/> |
||
44 | 13309 | jmvivo | |
45 | 3746 | jaume | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
46 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
47 | excludes="com/iver/cit/gvsig/fmap/**" |
||
48 | />
|
||
49 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
50 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
51 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
52 | <copy file="config/config.xml" todir="${dist}"/> |
||
53 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
54 | 3746 | jaume | <copy todir="${dist}"> |
55 | <fileset dir="config" includes="text*.properties"/> |
||
56 | </copy>
|
||
57 | <copy todir="${dist}/images"> |
||
58 | <fileset dir="images/" includes="*"/> |
||
59 | </copy>
|
||
60 | <copy todir="${lib-dir}"> |
||
61 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
62 | <fileset dir="." includes=".keystore"/> |
||
63 | </copy>
|
||
64 | 5641 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
65 | 3746 | jaume | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
66 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
67 | 5643 | cesar | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
68 | 3746 | jaume | </move>
|
69 | 5641 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
70 | 3746 | jaume | <fileset dir="${dist}" includes="**/**"/> |
71 | </move>
|
||
72 | </target>
|
||
73 | |||
74 | |||
75 | 5641 | cesar | <target name="batch-build" |
76 | description="compile the sources, create the jar file" |
||
77 | depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
||
78 | </target>
|
||
79 | 3746 | jaume | |
80 | 5641 | cesar | <target name="compile" description="compile the source" > |
81 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
82 | 13309 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
83 | 5641 | cesar | <mkdir dir="${build}" /> |
84 | 13309 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
85 | <gvSIG-javac
|
||
86 | classpath="${eclipseClasspath}"/> |
||
87 | 5641 | cesar | </target>
|
88 | 13309 | jmvivo | |
89 | 5641 | cesar | <target name="create-jar" |
90 | description="Creates the plugin jar"> |
||
91 | <mkdir dir="${dist}/lib"/> |
||
92 | 5662 | cesar | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
93 | 5641 | cesar | excludes="com/iver/cit/gvsig/fmap/**" |
94 | />
|
||
95 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
96 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
97 | </target>
|
||
98 | 3746 | jaume | |
99 | 5641 | cesar | <target name="copy-data-files"> |
100 | <copy file="config/config.xml" todir="${dist}"/> |
||
101 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
102 | 5641 | cesar | <copy todir="${dist}"> |
103 | <fileset dir="config" includes="text*.properties"/> |
||
104 | </copy>
|
||
105 | <copy todir="${dist}/images"> |
||
106 | <fileset dir="images/" includes="*"/> |
||
107 | </copy>
|
||
108 | </target>
|
||
109 | 13309 | jmvivo | |
110 | 5641 | cesar | <target name="copy-libs"> |
111 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
112 | <fileset file="${remoteclientjar}"/> |
||
113 | </copy>
|
||
114 | </target>
|
||
115 | 13309 | jmvivo | |
116 | 5641 | cesar | <target name="move-to-andami"> |
117 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
118 | 6296 | cesar | <fileset dir="${lib}" includes="*.jar,*.zip"/> |
119 | 5641 | cesar | </copy>
|
120 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
121 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
122 | </move>
|
||
123 | <move todir="${extensionsDir}/${plugin}/"> |
||
124 | <fileset dir="${dist}" includes="**/**"/> |
||
125 | </move>
|
||
126 | </target>
|
||
127 | |||
128 | 13309 | jmvivo | |
129 | 5641 | cesar | <target name="clean" |
130 | description="clean up" > |
||
131 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
132 | <delete dir="${dist}"/> |
||
133 | <delete dir="${build}"/> |
||
134 | </target>
|
||
135 | 13487 | cesar | |
136 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
137 | <antcall target="generic-run-tests"> |
||
138 | <param name="TestSuite.Name" value="com.iver.cit.gvsig.wms.AllTests"/> |
||
139 | </antcall>
|
||
140 | </target>
|
||
141 | 3746 | jaume | </project>
|