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