root / trunk / extensions / extGeoreferencing / build.xml @ 20919
History | View | Annotate | Download (5.32 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="src-test" location="src-test"/> |
9 |
<property name="build-test" location="bin-test"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="images" location="images"/> |
12 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
13 |
<property name="plugin" value="org.gvsig.georeferencing"/> |
14 |
<property name="fmap-plugin" value="fmap-georeferencing"/> |
15 |
<property name="driverjar" value="georeferencing"/> |
16 |
<property name="andami" location="../_fwAndami"/> |
17 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
18 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
19 |
|
20 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
21 |
<property name="mainPluginDir" location="${extensionsDir}/${mainplugin}"/> |
22 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
23 |
<property name="andamiLibs" location="${andami}/lib"/> |
24 |
<property name="fmapLibs" location="../libFMap/lib" /> |
25 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
26 |
<import file="../binaries/ant/utilities.xml"/> |
27 |
|
28 |
|
29 |
<target name="init"> |
30 |
<!-- Create the time stamp -->
|
31 |
<tstamp/> |
32 |
<echo>
|
33 |
Compiling ${ant.project.name}...</echo>
|
34 |
<!-- Create the build directory structure used by compile -->
|
35 |
<mkdir dir="${build}"/> |
36 |
<mkdir dir="${dist}"/> |
37 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
38 |
<buildnumber/> |
39 |
|
40 |
</target>
|
41 |
|
42 |
<target name="import-build-number"> |
43 |
<copy todir="."> |
44 |
<fileset file="${buildNumberFile}"/> |
45 |
</copy>
|
46 |
</target>
|
47 |
|
48 |
<target name="generate-without-source" |
49 |
description="generate the distribution without the source file"> |
50 |
|
51 |
<!-- Create the distribution directory -->
|
52 |
<mkdir dir="${dist}"/> |
53 |
|
54 |
<!-- Jars de las extensiones -->
|
55 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
56 |
includes="org/gvsig/georeferencing/**" /> |
57 |
<copy file="lib/jama.jar" todir="${fmapLibs}"/> |
58 |
<copy file="lib/flanagan.jar" todir="${fmapLibs}"/> |
59 |
<copy file="config/config.xml" todir="${dist}"/> |
60 |
<copy file="build.number" todir="${dist}"/> |
61 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
62 |
<copy todir="${dist}"> |
63 |
<fileset dir="config/" includes="text*.properties"/> |
64 |
</copy>
|
65 |
<mkdir dir="${dist}/images" /> |
66 |
<copy todir="${dist}/images"> |
67 |
<fileset dir="images" includes="*"/> |
68 |
</copy>
|
69 |
|
70 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
71 |
<fileset dir="images" includes="*.gif"/> |
72 |
</copy>
|
73 |
|
74 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
75 |
<fileset dir="images" includes="*.png"/> |
76 |
</copy>
|
77 |
|
78 |
<move todir="${extensionsDir}/${plugin}/"> |
79 |
<fileset dir="${dist}" includes="${plugin}.jar"/> |
80 |
</move>
|
81 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
82 |
<fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
83 |
</move>
|
84 |
<move todir="${extensionsDir}/${plugin}/"> |
85 |
<fileset dir="${dist}" includes="**/**"/> |
86 |
</move>
|
87 |
</target>
|
88 |
|
89 |
<target name="batch-build" |
90 |
description="compile the sources, create the jar file" |
91 |
depends="compile,create-jar,copy-data-files,move-to-andami"> |
92 |
</target>
|
93 |
|
94 |
<target name="compile" description="compile the source" > |
95 |
<!-- Compile the Java code from ${src} to ${build} -->
|
96 |
<antcall target="gvSIG-import-build-number"/> |
97 |
<mkdir dir="${build}" /> |
98 |
<loadEclipseClasspath project="${basedir}"/> |
99 |
<gvSIG-javac
|
100 |
classpath="${eclipseClasspath}" |
101 |
/>
|
102 |
</target>
|
103 |
|
104 |
<target name="create-jar" |
105 |
description="Creates the plugin jar"> |
106 |
<mkdir dir="${dist}"/> |
107 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
108 |
includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
109 |
<jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
110 |
includes="com/iver/cit/gvsig/fmap/**"/> |
111 |
</target>
|
112 |
|
113 |
<target name="copy-data-files"> |
114 |
<copy file="config/config.xml" todir="${dist}"/> |
115 |
<copy file="build.number" todir="${dist}"/> |
116 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
117 |
<copy todir="${dist}"> |
118 |
<fileset dir="config/" includes="text*.properties"/> |
119 |
</copy>
|
120 |
<copy todir="${dist}/images"> |
121 |
<fileset dir="images/" includes="*"/> |
122 |
</copy>
|
123 |
</target>
|
124 |
|
125 |
<target name="copy-libs"> |
126 |
<copy todir="${dist}"> |
127 |
<fileset dir="lib" includes="*.*"/> |
128 |
</copy>
|
129 |
</target>
|
130 |
|
131 |
<target name="move-to-andami"> |
132 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
133 |
<fileset dir="images" includes="*Cursor.gif"/> |
134 |
</copy>
|
135 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
136 |
<fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
137 |
</move>
|
138 |
|
139 |
<move todir="${extensionsDir}/${plugin}/"> |
140 |
<fileset dir="${dist}" includes="**/**"/> |
141 |
</move>
|
142 |
</target>
|
143 |
|
144 |
<target name="clean" |
145 |
description="clean up" > |
146 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
147 |
<delete dir="${dist}"/> |
148 |
<delete dir="${build}"/> |
149 |
</target>
|
150 |
|
151 |
<target name="run-tests" depends="batch-build,compile-tests"> |
152 |
<antcall target="generic-run-tests"> |
153 |
<param name="TestSuite.Name" value="org.gvsig.georeferencing.AllTests"/> |
154 |
</antcall>
|
155 |
</target>
|
156 |
</project>
|
157 |
|