svn-gvsig-desktop / tags / v10_RC2c / extensions / extGeoreferencing / build.xml @ 8745
History | View | Annotate | Download (4.81 KB)
1 |
<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="org.gvsig.georeferencing"/> |
12 |
<property name="fmap-plugin" value="fmap-georeferencing"/> |
13 |
<property name="driverjar" value="georeferencing"/> |
14 |
<property name="andami" location="../_fwAndami"/> |
15 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
16 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
17 |
|
18 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
19 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
20 |
<property name="andamiLibs" location="${andami}/lib"/> |
21 |
<property name="fmapLibs" location="../libFMap/lib" /> |
22 |
<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/cms.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gt2-legacy.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/kxml2.jar:${andamiLibs}/xerces_2_5_0.jar"/> |
23 |
|
24 |
<target name="init"> |
25 |
<!-- Create the time stamp -->
|
26 |
<tstamp/> |
27 |
<!-- Create the build directory structure used by compile -->
|
28 |
<mkdir dir="${build}"/> |
29 |
<mkdir dir="${dist}"/> |
30 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
31 |
<buildnumber/> |
32 |
|
33 |
</target>
|
34 |
|
35 |
<target name="generate-without-source" |
36 |
description="generate the distribution without the source file"> |
37 |
|
38 |
<!-- Create the distribution directory -->
|
39 |
<mkdir dir="${dist}"/> |
40 |
|
41 |
<!-- Jars de las extensiones -->
|
42 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
43 |
includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
44 |
<jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
45 |
includes="com/iver/cit/gvsig/fmap/**"/> |
46 |
|
47 |
<copy file="config/config.xml" todir="${dist}"/> |
48 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
49 |
<copy todir="${dist}"> |
50 |
<fileset dir="config/" includes="text*.properties"/> |
51 |
</copy>
|
52 |
<mkdir dir="${dist}/images" /> |
53 |
<copy todir="${dist}/images"> |
54 |
<fileset dir="images" includes="*"/> |
55 |
</copy>
|
56 |
|
57 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
58 |
<fileset dir="images" includes="*Cursor.gif"/> |
59 |
</copy>
|
60 |
|
61 |
<move todir="${extensionsDir}/${plugin}/"> |
62 |
<fileset dir="${dist}" includes="${plugin}.jar"/> |
63 |
</move>
|
64 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
65 |
<fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
66 |
</move>
|
67 |
<move todir="${extensionsDir}/${plugin}/"> |
68 |
<fileset dir="${dist}" includes="**/**"/> |
69 |
</move>
|
70 |
</target>
|
71 |
|
72 |
<target name="batch-build" |
73 |
description="compile the sources, create the jar file" |
74 |
depends="compile,create-jar,copy-data-files,move-to-andami"> |
75 |
</target>
|
76 |
|
77 |
<target name="compile" description="compile the source" > |
78 |
<!-- Compile the Java code from ${src} to ${build} -->
|
79 |
<mkdir dir="${build}" /> |
80 |
<javac srcdir="${src}" |
81 |
destdir="${build}" |
82 |
source="1.4" |
83 |
target="1.4" |
84 |
debug="${debug}" |
85 |
debuglevel="${debuglevel}" |
86 |
classpath="${compile-classpath}"/> |
87 |
</target>
|
88 |
|
89 |
<target name="create-jar" |
90 |
description="Creates the plugin jar"> |
91 |
<mkdir dir="${dist}"/> |
92 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
93 |
includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
94 |
<jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
95 |
includes="com/iver/cit/gvsig/fmap/**"/> |
96 |
</target>
|
97 |
|
98 |
<target name="copy-data-files"> |
99 |
<copy file="config/config.xml" todir="${dist}"/> |
100 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
101 |
<copy todir="${dist}"> |
102 |
<fileset dir="config/" includes="text*.properties"/> |
103 |
</copy>
|
104 |
<copy todir="${dist}/images"> |
105 |
<fileset dir="images/" includes="*"/> |
106 |
</copy>
|
107 |
</target>
|
108 |
|
109 |
<target name="copy-libs"> |
110 |
<copy todir="${dist}"> |
111 |
<fileset dir="lib" includes="*.*"/> |
112 |
</copy>
|
113 |
</target>
|
114 |
|
115 |
<target name="move-to-andami"> |
116 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
117 |
<fileset dir="images" includes="*Cursor.gif"/> |
118 |
</copy>
|
119 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
120 |
<fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
121 |
</move>
|
122 |
|
123 |
<move todir="${extensionsDir}/${plugin}/"> |
124 |
<fileset dir="${dist}" includes="**/**"/> |
125 |
</move>
|
126 |
</target>
|
127 |
|
128 |
<target name="clean" |
129 |
description="clean up" > |
130 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
131 |
<delete dir="${dist}"/> |
132 |
<delete dir="${build}"/> |
133 |
</target>
|
134 |
</project>
|
135 |
|