root / tags / v1_1_Build_1015 / libraries / libJCRS / build.xml @ 13679
History | View | Annotate | Download (3.05 KB)
1 |
<project name="libJCRS" default="generate-without-source" basedir="."> |
---|---|
2 |
<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 |
<property name="lib" location="lib" /> |
9 |
<property name="dist" location="dist"/> |
10 |
<property name="plugin" value="jcrs"/> |
11 |
<property name="andami" location="../_fwAndami"/> |
12 |
<property name="andamiLibs" location="${andami}/lib"/> |
13 |
<property name="extension-dir" location="${andami}/gvSIG/extensiones"/> |
14 |
<property name="targetDir" location="../libFMap/lib" /> |
15 |
<property name="installDir" location="${extension-dir}/com.iver.cit.gvsig/lib" /> |
16 |
<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 |
|
22 |
|
23 |
<target name="init"> |
24 |
<!-- Create the time stamp -->
|
25 |
<tstamp/> |
26 |
<echo>
|
27 |
Compiling ${ant.project.name}...</echo>
|
28 |
<!-- Create the build directory structure used by compile -->
|
29 |
<mkdir dir="${build}"/> |
30 |
<mkdir dir="${dist}"/> |
31 |
|
32 |
</target>
|
33 |
|
34 |
<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 |
source="${JavaSourceVersion}" |
40 |
target="${JavaTargetVersion}" |
41 |
debug="${debug}" |
42 |
debuglevel="${debuglevel}" |
43 |
encoding="${encoding}" |
44 |
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 |
</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 |
|
54 |
<!-- 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 |
<!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> -->
|
60 |
</target>
|
61 |
|
62 |
<target name="batch-build" |
63 |
description="compile the sources, create the jar file" |
64 |
depends="init,compile,generate-without-source,install-to-andami"> |
65 |
</target>
|
66 |
|
67 |
<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 |
<target name="clean" |
75 |
description="cleans the build directories"> |
76 |
<delete dir="${build}"/> |
77 |
<delete dir="${dist}"/> |
78 |
</target>
|
79 |
</project>
|
80 |
|
81 |
|