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