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