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