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