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