root / trunk / extensions / extSDE / build.xml @ 33642
History | View | Annotate | Download (3.22 KB)
1 |
<project name="Generar extension SDE en Andami" default="main" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<import file="../binaries/ant/utilities.xml"/> |
7 |
<property name="src" location="src"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="src-test" location="src-test"/> |
10 |
<property name="build-test" location="bin-test"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="plugin" value="org.gvsig.sde"/> |
13 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
14 |
<property name="targetDir" location="${extensionDir}/${plugin}"/> |
15 |
|
16 |
<target name="init"> |
17 |
<!-- Create the time stamp -->
|
18 |
<tstamp/> |
19 |
<!-- Create the build directory structure used by compile -->
|
20 |
<mkdir dir="${build}"/> |
21 |
<mkdir dir="${dist}"/> |
22 |
</target>
|
23 |
|
24 |
<target name="buildNumber"> |
25 |
<propertyfile
|
26 |
file="build.number" |
27 |
comment="Build Number for ANT. Do not edit!"> |
28 |
<entry key="build.number" default="0" type="int" operation="+"/> |
29 |
</propertyfile>
|
30 |
<property file="build.number"/> |
31 |
</target>
|
32 |
|
33 |
<target name="main" |
34 |
description="increment build number and generate the distribution without the source file" |
35 |
depends="create-jar,copy-data-files,copy-libs,move-to-installDir"> |
36 |
</target>
|
37 |
|
38 |
<target name="dist" depends="buildNumber,main"/> |
39 |
|
40 |
<target name="batch-build" |
41 |
description="compile the sources, create the jar file" |
42 |
depends="compile,copy-data-files,create-jar,copy-libs,move-to-installDir"> |
43 |
</target>
|
44 |
|
45 |
<target name="compile" description="compile the source"> |
46 |
<!-- Create the build directory structure used by compile -->
|
47 |
<antcall target="gvSIG-import-build-number"/> |
48 |
<mkdir dir="${build}"/> |
49 |
<!-- Compile the Java code from ${src} to ${build} -->
|
50 |
<loadEclipseClasspath project="${basedir}"/> |
51 |
<gvSIG-javac
|
52 |
classpath="${eclipseClasspath}" |
53 |
/>
|
54 |
</target>
|
55 |
|
56 |
<target name="copy-data-files"> |
57 |
<mkdir dir="config"/> |
58 |
<mkdir dir="${dist}"/> |
59 |
<mkdir dir="${dist}/images"/> |
60 |
|
61 |
<copy todir="${dist}"> |
62 |
<fileset dir="config" includes="*"/> |
63 |
</copy>
|
64 |
<copy todir="${dist}/images"> |
65 |
<fileset dir="images" includes="*"/> |
66 |
</copy>
|
67 |
<copy file="build.number" todir="${dist}"/> |
68 |
<loadproperties srcFile="build.number"/> |
69 |
<replace casesensitive="true" |
70 |
file="${dist}/about.htm" |
71 |
token="#build.number#" |
72 |
value="${build.number}"/> |
73 |
</target>
|
74 |
|
75 |
<target name="copy-libs"> |
76 |
<mkdir dir="${dist}/lib"/> |
77 |
<copy todir="${dist}/lib"> |
78 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
79 |
</copy>
|
80 |
</target>
|
81 |
|
82 |
<target name="create-jar" description="Creates the jar file"> |
83 |
<mkdir dir="${dist}/lib"/> |
84 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
85 |
</target>
|
86 |
|
87 |
<target name="move-to-installDir" description="Moves the build directory to andami"> |
88 |
<move todir="${targetDir}"> |
89 |
<fileset dir="${dist}" includes="**/*" /> |
90 |
</move>
|
91 |
</target>
|
92 |
|
93 |
<target name="clean" |
94 |
description="clean up" > |
95 |
<delete dir="${dist}"/> |
96 |
<delete dir="${build}"/> |
97 |
<delete dir="${build-test}"/> |
98 |
</target>
|
99 |
|
100 |
<target name="run-tests" depends="batch-build,compile-tests"> |
101 |
<antcall target="generic-run-tests"> |
102 |
<param name="TestSuite.Name" value="com.iver.gvsig.sde.AllTests"/> |
103 |
</antcall>
|
104 |
</target>
|
105 |
</project>
|