svn-gvsig-desktop / tags / v1_1_2_1_Build_1046 / extensions / extJCRS / build.xml @ 42237
History | View | Annotate | Download (3.65 KB)
1 |
<project name="extJCRS" 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="dist" location="dist"/> |
9 |
<property name="plugin" value="org.gvsig.crs"/> |
10 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
11 |
<property name="andami-dir" location="../_fwAndami"/> |
12 |
<property name="JavaSourceVersion" value="1.5"/> |
13 |
<property name="JavaTargetVersion" value="1.5"/> |
14 |
<property name="debug" value="on"/> |
15 |
<property name="debuglevel" value="line, vars"/> |
16 |
<property name="encoding" value="ISO_8859_1"/> |
17 |
|
18 |
<target name="init"> |
19 |
<!-- Create the time stamp -->
|
20 |
<tstamp/> |
21 |
<echo>
|
22 |
Compiling ${ant.project.name}...</echo>
|
23 |
<!-- Create the build directory structure used by compile -->
|
24 |
<mkdir dir="${build}"/> |
25 |
<mkdir dir="${dist}"/> |
26 |
</target>
|
27 |
|
28 |
<target name="buildNumber"> |
29 |
<buildnumber/> |
30 |
</target>
|
31 |
|
32 |
<target name="distribution" depends="buildNumber, generate-without-source"> |
33 |
</target>
|
34 |
|
35 |
<target name="compile" |
36 |
description="compile the source" > |
37 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
38 |
<javac srcdir="${src}" |
39 |
destdir="${build}" |
40 |
source="${JavaSourceVersion}" |
41 |
target="${JavaTargetVersion}" |
42 |
debug="${debug}" |
43 |
debuglevel="${debuglevel}" |
44 |
encoding="${encoding}" |
45 |
classpath="../libFMap/lib/jcrs.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:../_fwAndami/lib/iver-utiles.jar:../libFMap/lib/gdbms-0.8-SNAPSHOT.jar:../_fwAndami/andami.jar"/> |
46 |
<copy todir="${build}"> |
47 |
<fileset
|
48 |
dir="${src}" |
49 |
excludes="**/*.java"/> |
50 |
</copy>
|
51 |
|
52 |
</target>
|
53 |
|
54 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
55 |
<!-- Create the distribution directory -->
|
56 |
<mkdir dir="${dist}"/> |
57 |
|
58 |
<copy file="config/about.htm" todir="${dist}" overwrite="yes"/> |
59 |
<loadproperties srcFile="build.number"/> |
60 |
<replace casesensitive="true" |
61 |
file="${dist}/about.htm" |
62 |
token="#build.number#" |
63 |
value="${build.number}"> |
64 |
</replace>
|
65 |
|
66 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
67 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
68 |
|
69 |
<copy file="config/config.xml" todir="${dist}"/> |
70 |
<copy file="build.number" todir="${dist}"/> |
71 |
|
72 |
<copy file="${dist}/${plugin}.jar" todir="lib/"/> |
73 |
<copy todir="${dist}/images"> |
74 |
<fileset dir="images/" includes="*"/> |
75 |
</copy>
|
76 |
<copy todir="${dist}"> |
77 |
<fileset dir="config" includes="text*.properties"/> |
78 |
<fileset dir="config" includes="db_epsg.*"/> |
79 |
<fileset dir="config" includes="db_iau2000.*"/> |
80 |
<fileset dir="config" includes="db_esri.*"/> |
81 |
</copy>
|
82 |
<move todir="${extension-dir}/${plugin}/"> |
83 |
<fileset dir="${dist}" includes="**/**"/> |
84 |
</move>
|
85 |
|
86 |
<mkdir dir="${extension-dir}/${plugin}/data"/> |
87 |
<copy todir="${extension-dir}/${plugin}/data"> |
88 |
<fileset dir="data" includes="**/**"/> |
89 |
</copy>
|
90 |
|
91 |
</target>
|
92 |
|
93 |
<target name="import-build-number"> |
94 |
<copy todir="."> |
95 |
<fileset file="${buildNumberFile}"/> |
96 |
</copy>
|
97 |
</target>
|
98 |
|
99 |
<target name="batch-build" |
100 |
description="compile the sources, create the jar file" |
101 |
depends="init,compile,generate-without-source"> |
102 |
</target>
|
103 |
|
104 |
<target name="clean" |
105 |
description="cleans the build directories"> |
106 |
<delete dir="${build}"/> |
107 |
<delete dir="${dist}"/> |
108 |
</target>
|
109 |
|
110 |
</project>
|
111 |
|
112 |
|