svn-gvsig-desktop / trunk / libraries / libJCRS / build.xml @ 28835
History | View | Annotate | Download (3.16 KB)
1 | 21187 | dguerrero | <project name="libJCRS" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 7581 | dguerrero | <description>
|
3 | Instala el plugin de JCrs en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | 21187 | dguerrero | <property name="src-test" location="src-test"/> |
8 | 7581 | dguerrero | <property name="build" location="bin"/> |
9 | 21187 | dguerrero | <property name="build-test" location="bin-test"/> |
10 | <property name="lib" location="lib" /> |
||
11 | 7581 | dguerrero | <property name="dist" location="dist"/> |
12 | 7705 | dguerrero | <property name="plugin" value="jcrs"/> |
13 | 24765 | dguerrero | <property name="geotools" value="jcrs-geotools"/> |
14 | 21187 | dguerrero | <property name="andami" location="../_fwAndami"/> |
15 | <property name="andamiLibs" location="${andami}/lib"/> |
||
16 | <property name="extension-dir" location="${andami}/gvSIG/extensiones"/> |
||
17 | 21189 | dguerrero | <property name="targetDir" location="../libFMap/lib" /> |
18 | 21187 | dguerrero | <import file="../binaries/ant/utilities.xml"/> |
19 | 7183 | jlgomez | |
20 | 21187 | dguerrero | |
21 | 7581 | dguerrero | <target name="init"> |
22 | <!-- Create the time stamp -->
|
||
23 | <tstamp/> |
||
24 | 21187 | dguerrero | <echo>
|
25 | Compiling ${ant.project.name}...</echo>
|
||
26 | 7581 | dguerrero | <!-- Create the build directory structure used by compile -->
|
27 | <mkdir dir="${build}"/> |
||
28 | <mkdir dir="${dist}"/> |
||
29 | 21187 | dguerrero | |
30 | 7581 | dguerrero | </target>
|
31 | 7183 | jlgomez | |
32 | 7581 | dguerrero | <target name="compile" |
33 | description="compile the source" > |
||
34 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
35 | 21187 | dguerrero | <loadEclipseClasspath project="${basedir}"/> |
36 | <gvSIG-javac
|
||
37 | classpath="${eclipseClasspath}" |
||
38 | />
|
||
39 | |||
40 | <!-- <javac srcdir="${src}"
|
||
41 | 7581 | dguerrero | destdir="${build}"
|
42 | 21187 | dguerrero | source="${JavaSourceVersion}"
|
43 | target="${JavaTargetVersion}"
|
||
44 | debug="${debug}"
|
||
45 | debuglevel="${debuglevel}"
|
||
46 | encoding="${encoding}"
|
||
47 | classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>-->
|
||
48 | 7581 | dguerrero | </target>
|
49 | 21187 | dguerrero | |
50 | 7581 | dguerrero | <target name="generate-without-source" description="generate the distribution without the source file" > |
51 | <!-- Create the distribution directory -->
|
||
52 | <mkdir dir="${dist}"/> |
||
53 | |||
54 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
55 | 24765 | dguerrero | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="org/gvsig/ es/idr/"/> |
56 | <jar jarfile="${dist}/${geotools}.jar" basedir="${build}" includes="org/geotools/ META-INF/"/> |
||
57 | 21187 | dguerrero | |
58 | 8627 | dguerrero | <!-- copy file="${dist}/${plugin}.jar" todir="lib/"/> -->
|
59 | <copy file="${dist}/${plugin}.jar" todir="${targetDir}"/> |
||
60 | 24765 | dguerrero | <copy file="${dist}/${geotools}.jar" todir="${targetDir}"/> |
61 | 8627 | dguerrero | <copy todir="${targetDir}"> |
62 | <fileset dir="./lib" includes="*.jar" /> |
||
63 | </copy>
|
||
64 | 8103 | dguerrero | <!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> -->
|
65 | 7581 | dguerrero | </target>
|
66 | 21187 | dguerrero | |
67 | <target name="batch-build" |
||
68 | description="compile the sources, create the jar file" |
||
69 | depends="init,compile,generate-without-source"> |
||
70 | </target>
|
||
71 | |||
72 | <target name="clean" |
||
73 | description="cleans the build directories"> |
||
74 | <delete dir="${build}"/> |
||
75 | <delete>
|
||
76 | <fileset dir="${dist}" includes="**/**"/> |
||
77 | </delete>
|
||
78 | </target>
|
||
79 | |||
80 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
81 | <antcall target="generic-run-tests"> |
||
82 | <param name="TestSuite.Name" value="org.gvsig.crs.AllTests"/> |
||
83 | </antcall>
|
||
84 | </target>
|
||
85 | 7581 | dguerrero | </project>
|
86 |