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