svn-gvsig-desktop / tags / Root_v06 / extensions / extWMS / build.xml @ 4811
History | View | Annotate | Download (3.7 KB)
1 | 2277 | vcaballero | <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 | 3866 | luisw2 | <property name="remoteclientjar" value="remote-clients"/> |
15 | 4132 | jjdelcerro | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 | 2277 | vcaballero | <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
17 | 3858 | jaume | <property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/> |
18 | 2277 | vcaballero | <target name="init"> |
19 | <!-- Create the time stamp -->
|
||
20 | <tstamp/> |
||
21 | <!-- Create the build directory structure used by compile -->
|
||
22 | <mkdir dir="${build}"/> |
||
23 | 3858 | jaume | <mkdir dir="${dist}"/> |
24 | |||
25 | 2277 | vcaballero | </target>
|
26 | |||
27 | 3858 | jaume | <target name="generate-without-source" |
28 | 2277 | vcaballero | description="generate the distribution without the source file"> |
29 | <!-- Create the distribution directory -->
|
||
30 | <mkdir dir="${dist}"/> |
||
31 | |||
32 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
33 | 3858 | jaume | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
34 | excludes="com/iver/cit/gvsig/fmap/**" |
||
35 | />
|
||
36 | 3333 | luisw2 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
37 | 3858 | jaume | includes="com/iver/cit/gvsig/fmap/**" /> |
38 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
39 | 2277 | vcaballero | <copy file="config/config.xml" todir="${dist}"/> |
40 | <copy todir="${dist}"> |
||
41 | 2519 | ldiaz | <fileset dir="config" includes="text*.properties"/> |
42 | 2277 | vcaballero | </copy>
|
43 | 3858 | jaume | <copy todir="${dist}/images"> |
44 | <fileset dir="images/" includes="*"/> |
||
45 | </copy>
|
||
46 | <copy todir="${lib-dir}"> |
||
47 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
48 | <fileset dir="." includes=".keystore"/> |
||
49 | 3333 | luisw2 | </copy>
|
50 | 2277 | vcaballero | <move todir="${extensionDir}/${mainplugin}/lib"> |
51 | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
||
52 | 3858 | jaume | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
53 | 3866 | luisw2 | <fileset dir="${dist}" includes="${remoteclientjar}.jar"/> |
54 | 2277 | vcaballero | </move>
|
55 | <move todir="${extensionDir}/${plugin}/"> |
||
56 | <fileset dir="${dist}" includes="**/**"/> |
||
57 | </move>
|
||
58 | </target>
|
||
59 | |||
60 | 3858 | jaume | |
61 | <!-- <target name="generate-with-source" description="generate the distribution with the source file" >
|
||
62 | Create the distribution directory
|
||
63 | 2277 | vcaballero | <mkdir dir="${dist}"/>
|
64 | |||
65 | 3858 | jaume | Put everything in ${build} into the MyProject-${DSTAMP}.jar file
|
66 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"
|
||
67 | excludes="com/iver/cit/gvsig/fmap/**"/>
|
||
68 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}/com/iver/cit/gvsig/fmap"
|
||
69 | includes="com/iver/cit/gvsig/fmap/**" />
|
||
70 | <__ excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" /> __>
|
||
71 | <copy file="config/config.xml" todir="${dist}"/>
|
||
72 | 2277 | vcaballero | <copy todir="${dist}">
|
73 | <fileset dir="." includes="text*.properties"/>
|
||
74 | </copy>
|
||
75 | 3858 | jaume | <copy todir="${lib-dir}">
|
76 | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
||
77 | <fileset dir="." includes=".keystore"/>
|
||
78 | </copy>
|
||
79 | <copy todir="${dist}/images">
|
||
80 | <fileset dir="images/" includes="*"/>
|
||
81 | </copy>
|
||
82 | 2277 | vcaballero | <copy todir="${dist}">
|
83 | <fileset dir="." includes="${src}"/>
|
||
84 | </copy>
|
||
85 | <copy todir="${dist}/images">
|
||
86 | <fileset dir="images/" includes="*"/>
|
||
87 | </copy>
|
||
88 | <move todir="${extension-dir}/${plugin}/">
|
||
89 | <fileset dir="${dist}" includes="**/**"/>
|
||
90 | </move>
|
||
91 | 3858 | jaume | </target> -->
|
92 | 2277 | vcaballero | |
93 | 3858 | jaume | <target name="clean" |
94 | 2277 | vcaballero | description="clean up" > |
95 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
96 | <delete dir="${dist}"/> |
||
97 | </target>
|
||
98 | </project>
|