Revision 21185 branches/v10/libraries/libJCRS/build.xml
build.xml | ||
---|---|---|
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
|
|
1 |
<project name="libJCRS" default="generate-without-source" basedir=".">
|
|
2 | 2 |
<description> |
3 | 3 |
Instala el plugin de JCrs en Andami. |
4 | 4 |
</description> |
5 | 5 |
<!-- set global properties for this build --> |
6 | 6 |
<property name="src" location="src"/> |
7 | 7 |
<property name="build" location="bin"/> |
8 |
<property name="lib" location="lib" /> |
|
8 | 9 |
<property name="dist" location="dist"/> |
9 | 10 |
<property name="plugin" value="jcrs"/> |
10 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
|
11 |
<property name="andami" location="../_fwAndami"/> |
|
12 |
<property name="andamiLibs" location="${andami}/lib"/> |
|
13 |
<property name="extension-dir" location="${andami}/gvSIG/extensiones"/> |
|
11 | 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"/> |
|
12 | 21 |
|
22 |
|
|
13 | 23 |
<target name="init"> |
14 | 24 |
<!-- Create the time stamp --> |
15 | 25 |
<tstamp/> |
26 |
<echo> |
|
27 |
Compiling ${ant.project.name}...</echo> |
|
16 | 28 |
<!-- Create the build directory structure used by compile --> |
17 | 29 |
<mkdir dir="${build}"/> |
18 | 30 |
<mkdir dir="${dist}"/> |
19 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout --> |
|
20 |
<buildnumber/> |
|
21 |
|
|
31 |
|
|
22 | 32 |
</target> |
23 | 33 |
|
24 | 34 |
<target name="compile" |
... | ... | |
26 | 36 |
<!-- Compile the Java code from ${src} to ${bin} --> |
27 | 37 |
<javac srcdir="${src}" |
28 | 38 |
destdir="${build}" |
29 |
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"/> |
|
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 |
<copy todir="${build}"> |
|
46 |
<fileset |
|
47 |
dir="${src}" |
|
48 |
excludes="**/*.java"/> |
|
49 |
</copy> |
|
50 |
|
|
30 | 51 |
</target> |
31 |
|
|
52 |
|
|
32 | 53 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
33 | 54 |
<!-- Create the distribution directory --> |
34 | 55 |
<mkdir dir="${dist}"/> |
35 | 56 |
|
36 | 57 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> |
37 | 58 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
38 |
|
|
59 |
|
|
39 | 60 |
<!-- copy file="${dist}/${plugin}.jar" todir="lib/"/> --> |
40 | 61 |
<copy file="${dist}/${plugin}.jar" todir="${targetDir}"/> |
41 | 62 |
<copy todir="${targetDir}"> |
... | ... | |
43 | 64 |
</copy> |
44 | 65 |
<!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> --> |
45 | 66 |
</target> |
67 |
|
|
68 |
<target name="batch-build" |
|
69 |
description="compile the sources, create the jar file" |
|
70 |
depends="init,compile,generate-without-source,install-to-andami"> |
|
71 |
</target> |
|
72 |
|
|
73 |
<target name="install-to-andami"> |
|
74 |
<copy todir="${installDir}"> |
|
75 |
<fileset dir="./lib" includes="*.jar" /> |
|
76 |
</copy> |
|
77 |
<copy file="${dist}/${plugin}.jar" todir="${installDir}"/> |
|
78 |
</target> |
|
79 |
|
|
80 |
<target name="clean" |
|
81 |
description="cleans the build directories"> |
|
82 |
<delete dir="${build}"/> |
|
83 |
<delete dir="${dist}"/> |
|
84 |
</target> |
|
46 | 85 |
</project> |
47 | 86 |
|
48 | 87 |
|
Also available in: Unified diff