svn-gvsig-desktop / tags / STABLE / extensions / extWCS / build.xml @ 31466
History | View | Annotate | Download (2.52 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 | 4505 | jaume | <property name="remoteclientjar" value="remote-clients"/> |
15 | 4139 | jjdelcerro | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 | 1877 | luisw | <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
17 | 4505 | jaume | <property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/> |
18 | 1877 | luisw | <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 | 1885 | luisw | description="generate the distribution without the source file"> |
29 | 1877 | luisw | <!-- Create the distribution directory -->
|
30 | <mkdir dir="${dist}"/> |
||
31 | |||
32 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
33 | 4505 | jaume | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
34 | excludes="com/iver/cit/gvsig/fmap/**" |
||
35 | />
|
||
36 | 1877 | luisw | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
37 | 4505 | jaume | includes="com/iver/cit/gvsig/fmap/**" /> |
38 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wcs/**" />-->
|
||
39 | 1877 | luisw | <copy file="config/config.xml" todir="${dist}"/> |
40 | <copy todir="${dist}"> |
||
41 | 4505 | jaume | <fileset dir="config" includes="text*.properties"/> |
42 | 1877 | luisw | </copy>
|
43 | 4505 | jaume | <!--copy todir="${dist}/images">
|
44 | <fileset dir="images/" includes="*"/>
|
||
45 | </copy>
|
||
46 | <copy todir="${lib-dir}">
|
||
47 | 1877 | luisw | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
48 | <fileset dir="." includes=".keystore"/>
|
||
49 | 4505 | jaume | </copy-->
|
50 | 1877 | luisw | <move todir="${extensionDir}/${mainplugin}/lib"> |
51 | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
||
52 | 4505 | jaume | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
53 | <fileset dir="${dist}" includes="${remoteclientjar}.jar"/> |
||
54 | 1877 | luisw | </move>
|
55 | <move todir="${extensionDir}/${plugin}/"> |
||
56 | <fileset dir="${dist}" includes="**/**"/> |
||
57 | </move>
|
||
58 | </target>
|
||
59 | 4505 | jaume | <target name="clean" description="clean up" > |
60 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
61 | <delete dir="${dist}"/> |
||
62 | 1877 | luisw | </target>
|
63 | </project>
|