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