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