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