svn-gvsig-desktop / tags / v1_1_2_Build_1040 / extensions / extWFS2 / build.xml @ 40799
History | View | Annotate | Download (5.72 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 | 12479 | cesar | <property name="encoding" value="ISO_8859_1"/> |
28 | 12975 | cesar | <property name="debug" value="on"/> |
29 | <property name="debuglevel" value="lines, vars"/> |
||
30 | 16962 | jmvivo | |
31 | 4886 | jorpiell | <target name="init"> |
32 | <!-- Create the time stamp -->
|
||
33 | <tstamp/> |
||
34 | 7219 | cesar | <echo>
|
35 | 7355 | jorpiell | Compiling ${ant.project.name}...</echo>
|
36 | 4886 | jorpiell | <!-- Create the build directory structure used by compile -->
|
37 | <mkdir dir="${dist}"/> |
||
38 | 16962 | jmvivo | |
39 | 4886 | jorpiell | </target>
|
40 | |||
41 | 10185 | jmvivo | <target name="import-build-number"> |
42 | <copy todir="."> |
||
43 | <fileset file="${buildNumberFile}"/> |
||
44 | </copy>
|
||
45 | </target>
|
||
46 | 16962 | jmvivo | |
47 | |||
48 | 4886 | jorpiell | <target name="generate-without-source" |
49 | description="generate the distribution without the source file"> |
||
50 | <!-- Create the distribution directory -->
|
||
51 | <mkdir dir="${dist}"/> |
||
52 | <mkdir dir="${dist}/lib"/> |
||
53 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
54 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
55 | excludes="com/iver/cit/gvsig/fmap/**" |
||
56 | />
|
||
57 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
58 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
59 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
60 | <copy file="config/config.xml" todir="${dist}"/> |
||
61 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
62 | 4886 | jorpiell | <copy todir="${dist}"> |
63 | <fileset dir="config" includes="text*.properties"/> |
||
64 | 16962 | jmvivo | </copy>
|
65 | 4886 | jorpiell | <copy todir="${lib-dir}"> |
66 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
67 | <fileset dir="." includes=".keystore"/> |
||
68 | </copy>
|
||
69 | 5624 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
70 | <!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
||
71 | 4886 | jorpiell | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
72 | </move>
|
||
73 | 5624 | cesar | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
74 | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
||
75 | </copy>
|
||
76 | <move todir="${extensionsDir}/${plugin}/"> |
||
77 | 4886 | jorpiell | <fileset dir="${dist}" includes="**/**"/> |
78 | </move>
|
||
79 | 6083 | jorpiell | <copy todir="${extensionsDir}/${plugin}/images"> |
80 | 5624 | cesar | <fileset dir="images/" includes="*"/> |
81 | 5854 | jorpiell | </copy>
|
82 | 4886 | jorpiell | </target>
|
83 | |||
84 | 5624 | cesar | <target name="batch-build" |
85 | description="compile the sources, create the jar file" |
||
86 | 7219 | cesar | depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
87 | 5624 | cesar | </target>
|
88 | 4886 | jorpiell | |
89 | 5624 | cesar | <target name="compile" description="compile the source" > |
90 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
91 | <mkdir dir="${build}" /> |
||
92 | <javac srcdir="${src}" |
||
93 | destdir="${build}" |
||
94 | 10565 | jmvivo | source="${JavaSourceVersion}" |
95 | target="${JavaTargetVersion}" |
||
96 | 6297 | cesar | debug="${debug}" |
97 | debuglevel="${debuglevel}" |
||
98 | 12479 | cesar | classpath="${compile-classpath}" |
99 | encoding="${encoding}"/> |
||
100 | 16962 | jmvivo | <copy todir="${build}"> |
101 | <fileset
|
||
102 | dir="${src}" |
||
103 | excludes="**/*.java"/> |
||
104 | </copy>
|
||
105 | |||
106 | 5624 | cesar | </target>
|
107 | 16962 | jmvivo | |
108 | 5624 | cesar | <target name="create-jar" |
109 | description="Creates the plugin jar"> |
||
110 | <mkdir dir="${dist}/lib"/> |
||
111 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
112 | excludes="com/iver/cit/gvsig/fmap/**" |
||
113 | />
|
||
114 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
115 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
116 | </target>
|
||
117 | 4886 | jorpiell | |
118 | 5624 | cesar | <target name="copy-data-files"> |
119 | <copy file="config/config.xml" todir="${dist}"/> |
||
120 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
121 | 5624 | cesar | <copy todir="${dist}"> |
122 | <fileset dir="config" includes="text*.properties"/> |
||
123 | </copy>
|
||
124 | <copy todir="${dist}/images"> |
||
125 | <fileset dir="images/" includes="*"/> |
||
126 | </copy>
|
||
127 | </target>
|
||
128 | 16962 | jmvivo | |
129 | 5624 | cesar | <target name="copy-libs"> |
130 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
131 | <fileset file="${remoteclientjar}"/> |
||
132 | </copy>
|
||
133 | </target>
|
||
134 | 16962 | jmvivo | |
135 | 5624 | cesar | <target name="move-to-andami"> |
136 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
137 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
138 | </copy>
|
||
139 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
140 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
141 | </move>
|
||
142 | <move todir="${extensionsDir}/${plugin}/"> |
||
143 | <fileset dir="${dist}" includes="**/**"/> |
||
144 | </move>
|
||
145 | </target>
|
||
146 | 16962 | jmvivo | |
147 | 4886 | jorpiell | <target name="clean" |
148 | description="clean up" > |
||
149 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
150 | <delete dir="${dist}"/> |
||
151 | 5624 | cesar | <delete dir="${build}"/> |
152 | 4886 | jorpiell | </target>
|
153 | </project>
|