svn-gvsig-desktop / tags / v2_0_Build_1218 / libraries / libRaster / build.xml @ 44691
History | View | Annotate | Download (4.08 KB)
1 | 10740 | nacho | <project name="Parte raster de FMap" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin en Andami |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | 13426 | cesar | <property name="src-test" location="src-test"/> |
8 | 10740 | nacho | <property name="build" location="bin"/> |
9 | 13346 | cesar | <property name="build-test" location="bin-test"/> |
10 | 10740 | nacho | <property name="dist" location="dist"/> |
11 | <property name="lib" location="lib" /> |
||
12 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
13 | <property name="andami" location="../_fwAndami"/> |
||
14 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
15 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
||
16 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
17 | 13228 | nacho | <property name="jarName" location="org.gvsig.raster" /> |
18 | 10740 | nacho | <property name="andamiLibs" location="${andami}/lib" /> |
19 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
20 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
21 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
22 | 13126 | jmvivo | <!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/kxml2.jar:${fmapLibs}/libproj.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${andamiLibs}/tempFileManager.jar" />-->
|
23 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
24 | 13126 | jmvivo | |
25 | 10740 | nacho | <target name="init"> |
26 | <!-- Create the time stamp -->
|
||
27 | 12688 | cesar | <!-- <tstamp/> -->
|
28 | <echo>
|
||
29 | Compiling ${ant.project.name}...</echo>
|
||
30 | 10740 | nacho | <!-- Create the build directory structure used by compile -->
|
31 | 12688 | cesar | <!-- <mkdir dir="${build}"/>
|
32 | <mkdir dir="${dist}"/> -->
|
||
33 | 13126 | jmvivo | |
34 | 10740 | nacho | </target>
|
35 | |||
36 | <target name="generate-without-source" |
||
37 | 22935 | nbrodin | description="generate the distribution without the source file"> |
38 | 10740 | nacho | <!-- Create the distribution directory -->
|
39 | <mkdir dir="${dist}"/> |
||
40 | 13126 | jmvivo | |
41 | 10740 | nacho | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
42 | <jar jarfile="${jarName}.jar" basedir="${build}" includes="org/gvsig/raster/**"/> |
||
43 | |||
44 | <copy file="${jarName}.jar" todir="${lib-dir}"/> |
||
45 | <copy file="${jarName}.jar" todir="${fmapLibs}"/> |
||
46 | 13126 | jmvivo | |
47 | 10740 | nacho | <copy todir="${lib-dir}"> |
48 | <fileset dir="./lib" includes="*.jar"/> |
||
49 | <fileset dir="." includes=".keystore"/> |
||
50 | </copy>
|
||
51 | <copy todir="${fmapLibs}/"> |
||
52 | <fileset dir="." includes="${jarName}.jar"/> |
||
53 | </copy>
|
||
54 | 13126 | jmvivo | |
55 | 10740 | nacho | </target>
|
56 | 13126 | jmvivo | |
57 | 10740 | nacho | <target name="clean" description="clean up" > |
58 | <delete dir="${dist}"/> |
||
59 | <delete dir="${build}"/> |
||
60 | </target>
|
||
61 | 13126 | jmvivo | |
62 | 12688 | cesar | <target name="batch-build" |
63 | description="compile the sources, create the jar file" |
||
64 | 22935 | nbrodin | depends="init,compile,create-jar,copy-libs"> |
65 | 12688 | cesar | </target>
|
66 | |||
67 | <target name="compile" description="compile the source" > |
||
68 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
69 | <mkdir dir="${build}" /> |
||
70 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
71 | 13296 | jmvivo | <gvSIG-javac
|
72 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
73 | 13126 | jmvivo | excludes="test/**"/> |
74 | <!--<javac srcdir="${src}"
|
||
75 | 12688 | cesar | destdir="${build}"
|
76 | classpath="${compile-classpath}"
|
||
77 | source="${JavaSourceVersion}"
|
||
78 | target="${JavaTargetVersion}"
|
||
79 | debug="${debug}"
|
||
80 | debuglevel="${debuglevel}"
|
||
81 | excludes="test/**"
|
||
82 | 13126 | jmvivo | encoding="${encoding}"/>-->
|
83 | 12688 | cesar | </target>
|
84 | 13126 | jmvivo | |
85 | 12688 | cesar | <target name="create-jar" |
86 | description="Creates the plugin jar"> |
||
87 | <mkdir dir="${dist}"/> |
||
88 | <jar jarfile="${jarName}.jar" basedir="${build}" includes="org/gvsig/raster/**"/> |
||
89 | </target>
|
||
90 | |||
91 | 13126 | jmvivo | |
92 | 12688 | cesar | <target name="copy-libs"> |
93 | <copy file="${jarName}.jar" todir="${lib-dir}"/> |
||
94 | <copy file="${jarName}.jar" todir="${fmapLibs}"/> |
||
95 | 13126 | jmvivo | |
96 | 12688 | cesar | <copy todir="${lib-dir}"> |
97 | <fileset dir="./lib" includes="*.jar"/> |
||
98 | <fileset dir="." includes=".keystore"/> |
||
99 | </copy>
|
||
100 | <copy todir="${fmapLibs}/"> |
||
101 | <fileset dir="." includes="${jarName}.jar"/> |
||
102 | </copy>
|
||
103 | </target>
|
||
104 | 13346 | cesar | |
105 | 13426 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
106 | 13346 | cesar | <antcall target="generic-run-tests"> |
107 | <param name="TestSuite.Name" value="org.gvsig.raster.AllTests"/> |
||
108 | </antcall>
|
||
109 | </target>
|
||
110 | 12688 | cesar | |
111 | 10740 | nacho | </project>
|