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