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