svn-gvsig-desktop / branches / v10alpha_tecnimap / extensions / extWFS2 / build.xml @ 32286
History | View | Annotate | Download (4.91 KB)
1 | 4886 | jorpiell | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <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 | 5551 | 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 | 5551 | 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 | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/gt2-main.jar:${lib}/gt2-wfs.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/remote-clients.jar" /> |
||
25 | |||
26 | 4886 | jorpiell | <target name="init"> |
27 | <!-- Create the time stamp -->
|
||
28 | <tstamp/> |
||
29 | <!-- Create the build directory structure used by compile -->
|
||
30 | <mkdir dir="${build}"/> |
||
31 | <mkdir dir="${dist}"/> |
||
32 | |||
33 | </target>
|
||
34 | |||
35 | <target name="generate-without-source" |
||
36 | description="generate the distribution without the source file"> |
||
37 | <!-- Create the distribution directory -->
|
||
38 | <mkdir dir="${dist}"/> |
||
39 | <mkdir dir="${dist}/lib"/> |
||
40 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
41 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
42 | excludes="com/iver/cit/gvsig/fmap/**" |
||
43 | />
|
||
44 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
45 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
46 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
47 | <copy file="config/config.xml" todir="${dist}"/> |
||
48 | <copy todir="${dist}"> |
||
49 | <fileset dir="config" includes="text*.properties"/> |
||
50 | </copy>
|
||
51 | <copy todir="${lib-dir}"> |
||
52 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
53 | <fileset dir="." includes=".keystore"/> |
||
54 | </copy>
|
||
55 | 5551 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
56 | <!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
||
57 | 4886 | jorpiell | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
58 | 5552 | cesar | </move>
|
59 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
60 | 5551 | cesar | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
61 | 5552 | cesar | </copy>
|
62 | 5551 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
63 | 4886 | jorpiell | <fileset dir="${dist}" includes="**/**"/> |
64 | </move>
|
||
65 | 5551 | cesar | <!-- <copy todir="${dist}/images">
|
66 | <fileset dir="images/" includes="*"/>
|
||
67 | </copy> -->
|
||
68 | 4886 | jorpiell | </target>
|
69 | |||
70 | 5551 | cesar | <target name="batch-build" |
71 | description="compile the sources, create the jar file" |
||
72 | 5552 | cesar | depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
73 | 5551 | cesar | </target>
|
74 | 4886 | jorpiell | |
75 | 5551 | cesar | <target name="compile" description="compile the source" > |
76 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
77 | <mkdir dir="${build}" /> |
||
78 | <javac srcdir="${src}" |
||
79 | destdir="${build}" |
||
80 | classpath="${compile-classpath}"/> |
||
81 | </target>
|
||
82 | |||
83 | <target name="create-jar" |
||
84 | description="Creates the plugin jar"> |
||
85 | <mkdir dir="${dist}/lib"/> |
||
86 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
87 | excludes="com/iver/cit/gvsig/fmap/**" |
||
88 | />
|
||
89 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
90 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
91 | </target>
|
||
92 | 4886 | jorpiell | |
93 | 5551 | cesar | <target name="copy-data-files"> |
94 | <copy file="config/config.xml" todir="${dist}"/> |
||
95 | <copy todir="${dist}"> |
||
96 | <fileset dir="config" includes="text*.properties"/> |
||
97 | </copy>
|
||
98 | <copy todir="${dist}/images"> |
||
99 | <fileset dir="images/" includes="*"/> |
||
100 | </copy>
|
||
101 | </target>
|
||
102 | |||
103 | 5552 | cesar | <target name="copy-libs"> |
104 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
105 | <fileset file="${remoteclientjar}"/> |
||
106 | </copy>
|
||
107 | </target>
|
||
108 | |||
109 | 5551 | cesar | <target name="move-to-andami"> |
110 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
111 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
112 | </copy>
|
||
113 | 5552 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
114 | 5551 | cesar | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
115 | 5552 | cesar | </move>
|
116 | <move todir="${extensionsDir}/${plugin}/"> |
||
117 | 5551 | cesar | <fileset dir="${dist}" includes="**/**"/> |
118 | 5552 | cesar | </move>
|
119 | 5551 | cesar | </target>
|
120 | |||
121 | 4886 | jorpiell | <target name="clean" |
122 | description="clean up" > |
||
123 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
124 | <delete dir="${dist}"/> |
||
125 | 5551 | cesar | <delete dir="${build}"/> |
126 | 4886 | jorpiell | </target>
|
127 | </project>
|