root / trunk / extensions / extWCS / build.xml @ 9629
History | View | Annotate | Download (4.94 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="fmapJar" location="../libFMap/dist/lib/fmap.jar" /> |
23 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
24 |
<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:${fmapJar}:${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" /> |
25 |
|
26 |
<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 |
|
40 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
41 |
<jar jarfile="${dist}/${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/wcs/**" />-->
|
47 |
<copy file="config/config.xml" todir="${dist}"/> |
48 |
<copy todir="${dist}"> |
49 |
<fileset dir="config" includes="text*.properties"/> |
50 |
</copy>
|
51 |
<!--copy todir="${dist}/images">
|
52 |
<fileset dir="images/" includes="*"/>
|
53 |
</copy>
|
54 |
<copy todir="${lib-dir}">
|
55 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
56 |
<fileset dir="." includes=".keystore"/>
|
57 |
</copy-->
|
58 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
59 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
60 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
61 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
62 |
</move>
|
63 |
<move todir="${extensionsDir}/${plugin}/"> |
64 |
<fileset dir="${dist}" includes="**/**"/> |
65 |
</move>
|
66 |
</target>
|
67 |
|
68 |
|
69 |
<target name="batch-build" |
70 |
description="compile the sources, create the jar file" |
71 |
depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
72 |
</target>
|
73 |
|
74 |
<target name="compile" description="compile the source" > |
75 |
<!-- Compile the Java code from ${src} to ${build} -->
|
76 |
<mkdir dir="${build}" /> |
77 |
<echo>${compile-classpath}</echo> |
78 |
<javac srcdir="${src}" |
79 |
destdir="${build}" |
80 |
source="1.4" |
81 |
target="1.4" |
82 |
debug="${debug}" |
83 |
debuglevel="${debuglevel}" |
84 |
classpath="${compile-classpath}"/> |
85 |
</target>
|
86 |
|
87 |
<target name="create-jar" |
88 |
description="Creates the plugin jar"> |
89 |
<mkdir dir="${dist}/lib"/> |
90 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
91 |
excludes="com/iver/cit/gvsig/fmap/**" |
92 |
/>
|
93 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
94 |
includes="com/iver/cit/gvsig/fmap/**" /> |
95 |
</target>
|
96 |
|
97 |
<target name="copy-data-files"> |
98 |
<copy file="config/config.xml" todir="${dist}"/> |
99 |
<copy todir="${dist}"> |
100 |
<fileset dir="config" includes="text*.properties"/> |
101 |
</copy>
|
102 |
<!--<copy todir="${dist}/images">
|
103 |
<fileset dir="images/" includes="*"/>
|
104 |
</copy>-->
|
105 |
</target>
|
106 |
|
107 |
<target name="copy-libs"> |
108 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
109 |
<fileset file="${remoteclientjar}"/> |
110 |
</copy>
|
111 |
</target>
|
112 |
|
113 |
<target name="move-to-andami"> |
114 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
115 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
116 |
</move>
|
117 |
<move todir="${extensionsDir}/${plugin}/"> |
118 |
<fileset dir="${dist}" includes="**/**"/> |
119 |
</move>
|
120 |
</target>
|
121 |
|
122 |
|
123 |
<target name="clean" |
124 |
description="clean up" > |
125 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
126 |
<delete dir="${dist}"/> |
127 |
<delete dir="${build}"/> |
128 |
</target>
|
129 |
</project>
|
130 |
|