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