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