svn-gvsig-desktop / tags / gvSIGv0_5RELEASE / extensions / extWCS / build.xml @ 45391
History | View | Annotate | Download (3.84 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.wcsclient"/> |
11 |
<property name="gvsiglibjar" value="gvsig-wcsclient"/> |
12 |
<property name="fmapjar" value="fmap-wcsclient"/> |
13 |
<property name="driverjar" value="wcs"/> |
14 |
<property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
15 |
<property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp/> |
20 |
<!-- Create the build directory structure used by compile -->
|
21 |
<mkdir dir="${build}"/> |
22 |
<mkdir dir="${dist}"/> |
23 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
24 |
<buildnumber/> |
25 |
|
26 |
</target>
|
27 |
|
28 |
<target name="generate-without-source" |
29 |
description="generate the distribution without the source file"> |
30 |
<!-- depends="wcs-driver" -->
|
31 |
<!-- Create the distribution directory -->
|
32 |
<mkdir dir="${dist}"/> |
33 |
<mkdir dir="${drivers-dir}/wcs" /> |
34 |
|
35 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
36 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/wcsclient/**"/> |
37 |
<jar jarfile="${dist}/${gvsiglibjar}.jar" basedir="${build}" includes="com/iver/cit/gvsig/gui/**"/> |
38 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
39 |
includes="com/iver/cit/gvsig/fmap/**,es/uji/lsi/wcs/**,org/cresques/io/rasterOld/**" /> |
40 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wcs/**" /-->
|
41 |
<copy file="config/config.xml" todir="${dist}"/> |
42 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
43 |
<copy todir="${dist}"> |
44 |
<fileset dir="." includes="text*.properties"/> |
45 |
</copy>
|
46 |
<!-- <copy todir="${dist}">
|
47 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
48 |
<fileset dir="." includes=".keystore"/>
|
49 |
</copy> -->
|
50 |
<move todir="${extensionDir}/${mainplugin}/lib"> |
51 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
52 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
53 |
</move>
|
54 |
<move todir="${extensionDir}/${plugin}/"> |
55 |
<fileset dir="${dist}" includes="**/**"/> |
56 |
</move>
|
57 |
<!--copy todir="${extensionDir}/${mainplugin}/lib/">
|
58 |
<fileset dir="../Fmap 03/lib" includes="cms-grid.jar,fmap-ra.jar"/>
|
59 |
</copy-->
|
60 |
</target>
|
61 |
|
62 |
<target name="wcs-driver" depends="" description="Genera el jar de wcs"> |
63 |
<mkdir dir="${drivers-dir}/wcs" /> |
64 |
<jar jarfile="${drivers-dir}/wcs/${driverjar}.jar" basedir="${build}" includes="com/iver/cit/gvsig/fmap/drivers/wcs/**" /> |
65 |
</target>
|
66 |
|
67 |
<target name="generate-with-source" description="generate the distribution with the source file" > |
68 |
<!-- Create the distribution directory -->
|
69 |
<mkdir dir="${dist}"/> |
70 |
|
71 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
72 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
73 |
<copy file="config/config.xml" todir="${dist}"/> |
74 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
75 |
<copy todir="${dist}"> |
76 |
<fileset dir="." includes="text*.properties"/> |
77 |
</copy>
|
78 |
<copy todir="${dist}"> |
79 |
<fileset dir="." includes="${src}"/> |
80 |
</copy>
|
81 |
<copy todir="${dist}/images"> |
82 |
<fileset dir="images/" includes="*"/> |
83 |
</copy>
|
84 |
<!--copy todir="${dist}">
|
85 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
86 |
</copy-->
|
87 |
<move todir="${extension-dir}/${plugin}/"> |
88 |
<fileset dir="${dist}" includes="**/**"/> |
89 |
</move>
|
90 |
</target>
|
91 |
|
92 |
<target name="clean" |
93 |
description="clean up" > |
94 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
95 |
<delete dir="${dist}"/> |
96 |
</target>
|
97 |
</project>
|
98 |
|