svn-gvsig-desktop / branches / gvSIG_WMSv2 / extensions / extWMS / build.xml @ 3524
History | View | Annotate | Download (3.19 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.wms"/> |
11 |
<property name="gvsiglibjar" value="gvsig-wms"/> |
12 |
<property name="fmapjar" value="fmap-wms"/> |
13 |
<property name="driverjar" value="wms"/> |
14 |
<property name="cqjar" value="cq-remote-clients"/> |
15 |
<property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
16 |
<property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
17 |
<property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/> |
18 |
<target name="init"> |
19 |
<!-- Create the time stamp -->
|
20 |
<tstamp/> |
21 |
<!-- Create the build directory structure used by compile -->
|
22 |
<mkdir dir="${build}"/> |
23 |
<mkdir dir="${dist}"/> |
24 |
|
25 |
</target>
|
26 |
|
27 |
<target name="generate-without-source" |
28 |
description="generate the distribution without the source file"> |
29 |
<!-- Create the distribution directory -->
|
30 |
<mkdir dir="${dist}"/> |
31 |
<mkdir dir="${drivers-dir}/jdbc_spatial" /> |
32 |
|
33 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
34 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**"/> |
35 |
<copy file="config/config.xml" todir="${dist}"/> |
36 |
<copy todir="${dist}"> |
37 |
<fileset dir="config" includes="text*.properties"/> |
38 |
</copy>
|
39 |
<copy todir="${lib-dir}"> |
40 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
41 |
<fileset dir="." includes=".keystore"/> |
42 |
</copy>
|
43 |
<move todir="${extensionDir}/${mainplugin}/lib"> |
44 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
45 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
46 |
<fileset dir="${dist}" includes="${cqjar}.jar"/> |
47 |
</move>
|
48 |
<move todir="${extensionDir}/${plugin}/"> |
49 |
<fileset dir="${dist}" includes="**/**"/> |
50 |
</move>
|
51 |
</target>
|
52 |
|
53 |
|
54 |
<target name="generate-with-source" description="generate the distribution with the source file" > |
55 |
<!-- Create the distribution directory -->
|
56 |
<mkdir dir="${dist}"/> |
57 |
|
58 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
59 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
60 |
<copy file="config/config.xml" todir="${dist}"/> |
61 |
<copy todir="${dist}"> |
62 |
<fileset dir="." includes="text*.properties"/> |
63 |
</copy>
|
64 |
<copy todir="${lib-dir}"> |
65 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
66 |
<fileset dir="." includes=".keystore"/> |
67 |
</copy>
|
68 |
<copy todir="${dist}/images"> |
69 |
<fileset dir="images/" includes="*"/> |
70 |
</copy>
|
71 |
<copy todir="${dist}"> |
72 |
<fileset dir="." includes="${src}"/> |
73 |
</copy>
|
74 |
<copy todir="${dist}/images"> |
75 |
<fileset dir="images/" includes="*"/> |
76 |
</copy>
|
77 |
<move todir="${extension-dir}/${plugin}/"> |
78 |
<fileset dir="${dist}" includes="**/**"/> |
79 |
</move>
|
80 |
</target>
|
81 |
|
82 |
<target name="clean" |
83 |
description="clean up" > |
84 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
85 |
<delete dir="${dist}"/> |
86 |
</target>
|
87 |
</project>
|
88 |
|