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