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