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