svn-gvsig-desktop / tags / extI18n-0.1.0-1045_9 / extensions / extGeoreferencing / build.xml @ 45573
History | View | Annotate | Download (5.42 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 | 16976 | jmvivo | |
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 | 16976 | jmvivo | <buildnumber/> |
37 | |||
38 | 2844 | nacho | </target>
|
39 | 16976 | jmvivo | |
40 | 10185 | jmvivo | <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 | 16976 | jmvivo | |
49 | 2844 | nacho | <!-- Create the distribution directory -->
|
50 | <mkdir dir="${dist}"/> |
||
51 | 16976 | jmvivo | |
52 | 5217 | nacho | <!-- Jars de las extensiones -->
|
53 | 16976 | jmvivo | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
54 | 5241 | nacho | includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
55 | 16976 | jmvivo | <jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
56 | 5241 | nacho | includes="com/iver/cit/gvsig/fmap/**"/> |
57 | 16976 | jmvivo | |
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 | 16976 | jmvivo | |
69 | 5619 | cesar | <copy todir="${extensionsDir}/${mainplugin}/images"> |
70 | 2893 | nacho | <fileset dir="images" includes="*Cursor.gif"/> |
71 | </copy>
|
||
72 | 16976 | jmvivo | |
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 | 16976 | jmvivo | <copy todir="${build}"> |
101 | <fileset
|
||
102 | dir="${src}" |
||
103 | excludes="**/*.java"/> |
||
104 | </copy>
|
||
105 | |||
106 | 5619 | cesar | </target>
|
107 | 16976 | jmvivo | |
108 | 5619 | cesar | <target name="create-jar" |
109 | description="Creates the plugin jar"> |
||
110 | <mkdir dir="${dist}"/> |
||
111 | 16976 | jmvivo | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
112 | 5619 | cesar | includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
113 | 16976 | jmvivo | <jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
114 | 5619 | cesar | includes="com/iver/cit/gvsig/fmap/**"/> |
115 | </target>
|
||
116 | |||
117 | <target name="copy-data-files"> |
||
118 | <copy file="config/config.xml" todir="${dist}"/> |
||
119 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
120 | 5619 | cesar | <copy file="config/plugin.dtd" todir="${dist}"/> |
121 | <copy todir="${dist}"> |
||
122 | 5818 | nacho | <fileset dir="config/" includes="text*.properties"/> |
123 | 5619 | cesar | </copy>
|
124 | <copy todir="${dist}/images"> |
||
125 | <fileset dir="images/" includes="*"/> |
||
126 | </copy>
|
||
127 | </target>
|
||
128 | 16976 | jmvivo | |
129 | 5619 | cesar | <target name="copy-libs"> |
130 | <copy todir="${dist}"> |
||
131 | <fileset dir="lib" includes="*.*"/> |
||
132 | </copy>
|
||
133 | </target>
|
||
134 | 16976 | jmvivo | |
135 | 5619 | cesar | <target name="move-to-andami"> |
136 | <copy todir="${extensionsDir}/${mainplugin}/images"> |
||
137 | <fileset dir="images" includes="*Cursor.gif"/> |
||
138 | </copy>
|
||
139 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
140 | <fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
||
141 | </move>
|
||
142 | 16976 | jmvivo | |
143 | 5619 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
144 | <fileset dir="${dist}" includes="**/**"/> |
||
145 | </move>
|
||
146 | </target>
|
||
147 | 16976 | jmvivo | |
148 | 2844 | nacho | <target name="clean" |
149 | description="clean up" > |
||
150 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
151 | <delete dir="${dist}"/> |
||
152 | 5619 | cesar | <delete dir="${build}"/> |
153 | 2844 | nacho | </target>
|
154 | </project>
|