root / tags / v1_1_Build_1010 / extensions / extWCS / build.xml @ 12804
History | View | Annotate | Download (5.3 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 |
|
28 |
<target name="init"> |
29 |
<!-- Create the time stamp -->
|
30 |
<tstamp/> |
31 |
<!-- Create the build directory structure used by compile -->
|
32 |
<mkdir dir="${build}"/> |
33 |
<mkdir dir="${dist}"/> |
34 |
|
35 |
</target>
|
36 |
|
37 |
<target name="import-build-number"> |
38 |
<copy todir="."> |
39 |
<fileset file="${buildNumberFile}"/> |
40 |
</copy>
|
41 |
</target>
|
42 |
|
43 |
<target name="generate-without-source" |
44 |
description="generate the distribution without the source file"> |
45 |
<!-- Create the distribution directory -->
|
46 |
<mkdir dir="${dist}"/> |
47 |
|
48 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
49 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
50 |
excludes="com/iver/cit/gvsig/fmap/**" |
51 |
/>
|
52 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
53 |
includes="com/iver/cit/gvsig/fmap/**" /> |
54 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wcs/**" />-->
|
55 |
<copy file="config/config.xml" todir="${dist}"/> |
56 |
<copy file="build.number" todir="${dist}"/> |
57 |
<copy todir="${dist}"> |
58 |
<fileset dir="config" includes="text*.properties"/> |
59 |
</copy>
|
60 |
<!--copy todir="${dist}/images">
|
61 |
<fileset dir="images/" includes="*"/>
|
62 |
</copy>
|
63 |
<copy todir="${lib-dir}">
|
64 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
65 |
<fileset dir="." includes=".keystore"/>
|
66 |
</copy-->
|
67 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
68 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
69 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
70 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
71 |
</move>
|
72 |
<move todir="${extensionsDir}/${plugin}/"> |
73 |
<fileset dir="${dist}" includes="**/**"/> |
74 |
</move>
|
75 |
</target>
|
76 |
|
77 |
|
78 |
<target name="batch-build" |
79 |
description="compile the sources, create the jar file" |
80 |
depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
81 |
</target>
|
82 |
|
83 |
<target name="compile" description="compile the source" > |
84 |
<!-- Compile the Java code from ${src} to ${build} -->
|
85 |
<mkdir dir="${build}" /> |
86 |
<echo>${compile-classpath}</echo> |
87 |
<javac srcdir="${src}" |
88 |
destdir="${build}" |
89 |
source="${JavaSourceVersion}" |
90 |
target="${JavaTargetVersion}" |
91 |
debug="${debug}" |
92 |
debuglevel="${debuglevel}" |
93 |
classpath="${compile-classpath}" |
94 |
encoding="${encoding}"/> |
95 |
</target>
|
96 |
|
97 |
<target name="create-jar" |
98 |
description="Creates the plugin jar"> |
99 |
<mkdir dir="${dist}/lib"/> |
100 |
<jar jarfile="${dist}/${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 |
|
107 |
<target name="copy-data-files"> |
108 |
<copy file="config/config.xml" todir="${dist}"/> |
109 |
<copy file="build.number" todir="${dist}"/> |
110 |
<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 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
126 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
127 |
</move>
|
128 |
<move todir="${extensionsDir}/${plugin}/"> |
129 |
<fileset dir="${dist}" includes="**/**"/> |
130 |
</move>
|
131 |
</target>
|
132 |
|
133 |
|
134 |
<target name="clean" |
135 |
description="clean up" > |
136 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
137 |
<delete dir="${dist}"/> |
138 |
<delete dir="${build}"/> |
139 |
</target>
|
140 |
</project>
|
141 |
|