svn-gvsig-desktop / tags / v1_1_Build_1013 / libraries / libJCRS / build.xml @ 13521
History | View | Annotate | Download (3.05 KB)
1 | 12846 | cesar | <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 | <property name="build" location="bin"/> |
||
8 | 12968 | cesar | <property name="lib" location="lib" /> |
9 | 7581 | dguerrero | <property name="dist" location="dist"/> |
10 | 7705 | dguerrero | <property name="plugin" value="jcrs"/> |
11 | 12973 | cesar | <property name="andami" location="../_fwAndami"/> |
12 | <property name="andamiLibs" location="${andami}/lib"/> |
||
13 | <property name="extension-dir" location="${andami}/gvSIG/extensiones"/> |
||
14 | 8627 | dguerrero | <property name="targetDir" location="../libFMap/lib" /> |
15 | 12986 | cesar | <property name="installDir" location="${extension-dir}/com.iver.cit.gvsig/lib" /> |
16 | 12846 | cesar | <property name="JavaSourceVersion" value="1.5"/> |
17 | <property name="JavaTargetVersion" value="1.5"/> |
||
18 | <property name="debug" value="on"/> |
||
19 | <property name="debuglevel" value="line, vars"/> |
||
20 | <property name="encoding" value="ISO_8859_1"/> |
||
21 | 7183 | jlgomez | |
22 | 12846 | cesar | |
23 | 7581 | dguerrero | <target name="init"> |
24 | <!-- Create the time stamp -->
|
||
25 | <tstamp/> |
||
26 | 12846 | cesar | <echo>
|
27 | Compiling ${ant.project.name}...</echo>
|
||
28 | 7581 | dguerrero | <!-- Create the build directory structure used by compile -->
|
29 | <mkdir dir="${build}"/> |
||
30 | <mkdir dir="${dist}"/> |
||
31 | |||
32 | </target>
|
||
33 | 7183 | jlgomez | |
34 | 7581 | dguerrero | <target name="compile" |
35 | description="compile the source" > |
||
36 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
37 | <javac srcdir="${src}" |
||
38 | destdir="${build}" |
||
39 | 12846 | cesar | source="${JavaSourceVersion}" |
40 | target="${JavaTargetVersion}" |
||
41 | debug="${debug}" |
||
42 | debuglevel="${debuglevel}" |
||
43 | encoding="${encoding}" |
||
44 | 12973 | cesar | classpath="${andamiLibs}/beans.jar:${andamiLibs}/iver-utiles.jar:${lib}/jGridShiftApi.jar:${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../libFMap/lib/cms.jar:../libFMap/lib/gdbms-0.8-SNAPSHOT.jar:${andami}/andami.jar"/> |
45 | 7581 | dguerrero | </target>
|
46 | |||
47 | <target name="generate-without-source" description="generate the distribution without the source file" > |
||
48 | <!-- Create the distribution directory -->
|
||
49 | <mkdir dir="${dist}"/> |
||
50 | |||
51 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
52 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
53 | 7603 | dguerrero | |
54 | 8627 | dguerrero | <!-- copy file="${dist}/${plugin}.jar" todir="lib/"/> -->
|
55 | <copy file="${dist}/${plugin}.jar" todir="${targetDir}"/> |
||
56 | <copy todir="${targetDir}"> |
||
57 | <fileset dir="./lib" includes="*.jar" /> |
||
58 | </copy>
|
||
59 | 8103 | dguerrero | <!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> -->
|
60 | 7581 | dguerrero | </target>
|
61 | 12846 | cesar | |
62 | <target name="batch-build" |
||
63 | description="compile the sources, create the jar file" |
||
64 | 12986 | cesar | depends="init,compile,generate-without-source,install-to-andami"> |
65 | 12846 | cesar | </target>
|
66 | |||
67 | 12986 | cesar | <target name="install-to-andami"> |
68 | <copy todir="${installDir}"> |
||
69 | <fileset dir="./lib" includes="*.jar" /> |
||
70 | </copy>
|
||
71 | <copy file="${dist}/${plugin}.jar" todir="${installDir}"/> |
||
72 | </target>
|
||
73 | |||
74 | 12846 | cesar | <target name="clean" |
75 | description="cleans the build directories"> |
||
76 | <delete dir="${build}"/> |
||
77 | <delete dir="${dist}"/> |
||
78 | </target>
|
||
79 | 7581 | dguerrero | </project>
|
80 |