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