root / tags / v1_1_Build_1013 / extensions / extWCS / build.xml @ 13521
History | View | Annotate | Download (5.39 KB)
1 |
<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 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
10 |
<property name="plugin" value="com.iver.cit.gvsig.wcs"/> |
11 |
<property name="gvsiglibjar" value="gvsig-wcs"/> |
12 |
<property name="fmapjar" value="fmap-wcs"/> |
13 |
<property name="driverjar" value="wcs"/> |
14 |
<property name="andami" location="../_fwAndami" /> |
15 |
<property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
17 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
18 |
<property name="fmapLibs" location="../libFMap/lib" /> |
19 |
<property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
20 |
<property name="andamiLibs" location="${andami}/lib" /> |
21 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
22 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
23 |
<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${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:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${fmapLibs}/units-0.01.jar" /> |
24 |
<property name="JavaSourceVersion" value="1.4"/> |
25 |
<property name="JavaTargetVersion" value="1.4"/> |
26 |
<property name="encoding" value="ISO_8859_1"/> |
27 |
<property name="debug" value="on"/> |
28 |
<property name="debuglevel" value="lines, vars"/> |
29 |
|
30 |
<target name="init"> |
31 |
<!-- Create the time stamp -->
|
32 |
<tstamp/> |
33 |
<!-- Create the build directory structure used by compile -->
|
34 |
<mkdir dir="${build}"/> |
35 |
<mkdir dir="${dist}"/> |
36 |
|
37 |
</target>
|
38 |
|
39 |
<target name="import-build-number"> |
40 |
<copy todir="."> |
41 |
<fileset file="${buildNumberFile}"/> |
42 |
</copy>
|
43 |
</target>
|
44 |
|
45 |
<target name="generate-without-source" |
46 |
description="generate the distribution without the source file"> |
47 |
<!-- Create the distribution directory -->
|
48 |
<mkdir dir="${dist}"/> |
49 |
|
50 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
51 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
52 |
excludes="com/iver/cit/gvsig/fmap/**" |
53 |
/>
|
54 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
55 |
includes="com/iver/cit/gvsig/fmap/**" /> |
56 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wcs/**" />-->
|
57 |
<copy file="config/config.xml" todir="${dist}"/> |
58 |
<copy file="build.number" todir="${dist}"/> |
59 |
<copy todir="${dist}"> |
60 |
<fileset dir="config" includes="text*.properties"/> |
61 |
</copy>
|
62 |
<!--copy todir="${dist}/images">
|
63 |
<fileset dir="images/" includes="*"/>
|
64 |
</copy>
|
65 |
<copy todir="${lib-dir}">
|
66 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
67 |
<fileset dir="." includes=".keystore"/>
|
68 |
</copy-->
|
69 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
70 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
71 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
72 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
73 |
</move>
|
74 |
<move todir="${extensionsDir}/${plugin}/"> |
75 |
<fileset dir="${dist}" includes="**/**"/> |
76 |
</move>
|
77 |
</target>
|
78 |
|
79 |
|
80 |
<target name="batch-build" |
81 |
description="compile the sources, create the jar file" |
82 |
depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
83 |
</target>
|
84 |
|
85 |
<target name="compile" description="compile the source" > |
86 |
<!-- Compile the Java code from ${src} to ${build} -->
|
87 |
<mkdir dir="${build}" /> |
88 |
<echo>${compile-classpath}</echo> |
89 |
<javac srcdir="${src}" |
90 |
destdir="${build}" |
91 |
source="${JavaSourceVersion}" |
92 |
target="${JavaTargetVersion}" |
93 |
debug="${debug}" |
94 |
debuglevel="${debuglevel}" |
95 |
classpath="${compile-classpath}" |
96 |
encoding="${encoding}"/> |
97 |
</target>
|
98 |
|
99 |
<target name="create-jar" |
100 |
description="Creates the plugin jar"> |
101 |
<mkdir dir="${dist}/lib"/> |
102 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
103 |
excludes="com/iver/cit/gvsig/fmap/**" |
104 |
/>
|
105 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
106 |
includes="com/iver/cit/gvsig/fmap/**" /> |
107 |
</target>
|
108 |
|
109 |
<target name="copy-data-files"> |
110 |
<copy file="config/config.xml" todir="${dist}"/> |
111 |
<copy file="build.number" todir="${dist}"/> |
112 |
<copy todir="${dist}"> |
113 |
<fileset dir="config" includes="text*.properties"/> |
114 |
</copy>
|
115 |
<!--<copy todir="${dist}/images">
|
116 |
<fileset dir="images/" includes="*"/>
|
117 |
</copy>-->
|
118 |
</target>
|
119 |
|
120 |
<target name="copy-libs"> |
121 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
122 |
<fileset file="${remoteclientjar}"/> |
123 |
</copy>
|
124 |
</target>
|
125 |
|
126 |
<target name="move-to-andami"> |
127 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
128 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
129 |
</move>
|
130 |
<move todir="${extensionsDir}/${plugin}/"> |
131 |
<fileset dir="${dist}" includes="**/**"/> |
132 |
</move>
|
133 |
</target>
|
134 |
|
135 |
|
136 |
<target name="clean" |
137 |
description="clean up" > |
138 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
139 |
<delete dir="${dist}"/> |
140 |
<delete dir="${build}"/> |
141 |
</target>
|
142 |
</project>
|
143 |
|