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