root / trunk / extensions / extGeoreferencing / build.xml @ 3614
History | View | Annotate | Download (2.78 KB)
1 | 2844 | nacho | <project name="Generar extension en Andami para Georeferenciación" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de Georeferenciación 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="images" location="images"/> |
||
10 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
11 | <property name="plugin" value="com.iver.cit.gvsig.georeferencing"/> |
||
12 | <property name="gvsiglibjar" value="gvsig-georefmodule"/> |
||
13 | <property name="fmapjar" value="fmap-georefmodule"/> |
||
14 | <property name="driverjar" value="georeferencing"/> |
||
15 | <property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
||
16 | <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
||
17 | |||
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 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
25 | <buildnumber/> |
||
26 | |||
27 | </target>
|
||
28 | |||
29 | <target name="generate-without-source" |
||
30 | description="generate the distribution without the source file"> |
||
31 | |||
32 | <!-- Create the distribution directory -->
|
||
33 | <mkdir dir="${dist}"/> |
||
34 | <mkdir dir="${drivers-dir}/wcs" /> |
||
35 | |||
36 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
37 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/georeferencing/**"/> |
||
38 | 2945 | nacho | <jar jarfile="${dist}/${gvsiglibjar}.jar" basedir="${build}" includes="com/iver/cit/gvsig/*,com/iver/cit/gvsig/gui/**"/> |
39 | 2844 | nacho | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
40 | includes="com/iver/cit/gvsig/fmap/**,org/cresques/io/georeferencing/**" /> |
||
41 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wcs/**" /-->
|
||
42 | <copy file="config/config.xml" todir="${dist}"/> |
||
43 | <copy file="config/plugin.dtd" todir="${dist}"/> |
||
44 | <copy todir="${dist}"> |
||
45 | <fileset dir="." includes="text*.properties"/> |
||
46 | </copy>
|
||
47 | <mkdir dir="${dist}/images" /> |
||
48 | <copy todir="${dist}/images"> |
||
49 | <fileset dir="images" includes="*"/> |
||
50 | </copy>
|
||
51 | |||
52 | 2893 | nacho | <copy todir="${extensionDir}/${mainplugin}/images"> |
53 | <fileset dir="images" includes="*Cursor.gif"/> |
||
54 | </copy>
|
||
55 | |||
56 | 2844 | nacho | <move todir="${extensionDir}/${mainplugin}/lib"> |
57 | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
||
58 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
59 | </move>
|
||
60 | <move todir="${extensionDir}/${plugin}/"> |
||
61 | <fileset dir="${dist}" includes="**/**"/> |
||
62 | </move>
|
||
63 | |||
64 | </target>
|
||
65 | |||
66 | <target name="clean" |
||
67 | description="clean up" > |
||
68 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
69 | <delete dir="${dist}"/> |
||
70 | </target>
|
||
71 | </project>
|