root / trunk / extensions / extGeoreferencing / build.xml @ 20944
History | View | Annotate | Download (5.38 KB)
1 | 18530 | nbrodin | <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 | 19311 | jmvivo | |
29 | 18530 | nbrodin | <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 | 19311 | jmvivo | <buildnumber/> |
39 | |||
40 | 18530 | nbrodin | </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 | 19311 | jmvivo | |
51 | 18530 | nbrodin | <!-- Create the distribution directory -->
|
52 | <mkdir dir="${dist}"/> |
||
53 | 19311 | jmvivo | |
54 | 18530 | nbrodin | <!-- Jars de las extensiones -->
|
55 | 19311 | jmvivo | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
56 | 18530 | nbrodin | includes="org/gvsig/georeferencing/**" /> |
57 | 20938 | amunoz | <copy file="lib/jama.jar" todir="${extensionsDir}/com.iver.cit.gvsig/lib/"/> |
58 | <copy file="lib/flanagan.jar" todir="${extensionsDir}/com.iver.cit.gvsig/lib/"/> |
||
59 | 18530 | nbrodin | <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 | 19311 | jmvivo | |
70 | 20938 | amunoz | |
71 | 18530 | nbrodin | <copy todir="${extensionsDir}/${mainplugin}/images"> |
72 | <fileset dir="images" includes="*.gif"/> |
||
73 | </copy>
|
||
74 | 19311 | jmvivo | |
75 | 18530 | nbrodin | <copy todir="${extensionsDir}/${mainplugin}/images"> |
76 | <fileset dir="images" includes="*.png"/> |
||
77 | </copy>
|
||
78 | 19311 | jmvivo | |
79 | 18530 | nbrodin | <move todir="${extensionsDir}/${plugin}/"> |
80 | <fileset dir="${dist}" includes="${plugin}.jar"/> |
||
81 | </move>
|
||
82 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
83 | <fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
||
84 | </move>
|
||
85 | <move todir="${extensionsDir}/${plugin}/"> |
||
86 | <fileset dir="${dist}" includes="**/**"/> |
||
87 | </move>
|
||
88 | </target>
|
||
89 | |||
90 | <target name="batch-build" |
||
91 | description="compile the sources, create the jar file" |
||
92 | depends="compile,create-jar,copy-data-files,move-to-andami"> |
||
93 | </target>
|
||
94 | |||
95 | <target name="compile" description="compile the source" > |
||
96 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
97 | 19311 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
98 | 18530 | nbrodin | <mkdir dir="${build}" /> |
99 | 19311 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
100 | 18530 | nbrodin | <gvSIG-javac
|
101 | 19311 | jmvivo | classpath="${eclipseClasspath}" |
102 | />
|
||
103 | 18530 | nbrodin | </target>
|
104 | 19311 | jmvivo | |
105 | 18530 | nbrodin | <target name="create-jar" |
106 | description="Creates the plugin jar"> |
||
107 | <mkdir dir="${dist}"/> |
||
108 | 19311 | jmvivo | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
109 | 18530 | nbrodin | includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
110 | 19311 | jmvivo | <jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
111 | 18530 | nbrodin | includes="com/iver/cit/gvsig/fmap/**"/> |
112 | </target>
|
||
113 | |||
114 | <target name="copy-data-files"> |
||
115 | <copy file="config/config.xml" todir="${dist}"/> |
||
116 | <copy file="build.number" todir="${dist}"/> |
||
117 | <copy file="config/plugin.dtd" todir="${dist}"/> |
||
118 | <copy todir="${dist}"> |
||
119 | <fileset dir="config/" includes="text*.properties"/> |
||
120 | </copy>
|
||
121 | <copy todir="${dist}/images"> |
||
122 | <fileset dir="images/" includes="*"/> |
||
123 | </copy>
|
||
124 | </target>
|
||
125 | 19311 | jmvivo | |
126 | 18530 | nbrodin | <target name="copy-libs"> |
127 | <copy todir="${dist}"> |
||
128 | <fileset dir="lib" includes="*.*"/> |
||
129 | </copy>
|
||
130 | </target>
|
||
131 | 19311 | jmvivo | |
132 | 18530 | nbrodin | <target name="move-to-andami"> |
133 | <copy todir="${extensionsDir}/${mainplugin}/images"> |
||
134 | <fileset dir="images" includes="*Cursor.gif"/> |
||
135 | </copy>
|
||
136 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
137 | <fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
||
138 | </move>
|
||
139 | 19311 | jmvivo | |
140 | 18530 | nbrodin | <move todir="${extensionsDir}/${plugin}/"> |
141 | <fileset dir="${dist}" includes="**/**"/> |
||
142 | </move>
|
||
143 | </target>
|
||
144 | 19311 | jmvivo | |
145 | 18530 | nbrodin | <target name="clean" |
146 | description="clean up" > |
||
147 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
148 | <delete dir="${dist}"/> |
||
149 | <delete dir="${build}"/> |
||
150 | </target>
|
||
151 | 19311 | jmvivo | |
152 | 18530 | nbrodin | <target name="run-tests" depends="batch-build,compile-tests"> |
153 | <antcall target="generic-run-tests"> |
||
154 | <param name="TestSuite.Name" value="org.gvsig.georeferencing.AllTests"/> |
||
155 | </antcall>
|
||
156 | </target>
|
||
157 | </project>
|