svn-gvsig-desktop / tags / v1_9_RC1 / extensions / extHyperlink / build.xml
History | View | Annotate | Download (3.36 KB)
1 |
<project name="extHyperlink" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin |
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="lib" location="../_fwAndami/lib"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="build-test" location="bin-test"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="andamiJar" location="../_fwAndami/andami.jar"/> |
13 |
<property name="plugin" value="org.gvsig.hyperlink"/> |
14 |
<property name="gvsig-plugin" value="gvsig-hyperlink"/> |
15 |
<property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 |
<property name="gvsig-targetDir" location="${targetDir}/com.iver.cit.gvsig/lib"/> |
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.number file -->
|
25 |
<buildnumber/> |
26 |
<!-- Create the build directory structure used by compile -->
|
27 |
<mkdir dir="${build}"/> |
28 |
</target>
|
29 |
|
30 |
<target name="dist" description="generate the distribution" |
31 |
depends="create-jar,copy-libs,copy-data-files,move-to-andami" /> |
32 |
|
33 |
<target name="batch-build" |
34 |
description="compile the sources, create the jar file" |
35 |
depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
36 |
</target>
|
37 |
|
38 |
<target name="compile" description="compile the source" > |
39 |
<!-- Compile the Java code from ${src} to ${build} -->
|
40 |
<mkdir dir="${build}" /> |
41 |
<loadEclipseClasspath project="${basedir}"/> |
42 |
<gvSIG-javac
|
43 |
classpath="${eclipseClasspath}" |
44 |
/>
|
45 |
</target>
|
46 |
|
47 |
<target name="copy-libs"> |
48 |
<copy todir="${dist}"> |
49 |
<fileset dir="lib" includes="*.jar"/> |
50 |
</copy>
|
51 |
</target>
|
52 |
|
53 |
<target name="copy-data-files"> |
54 |
<copy file="config/config.xml" todir="${dist}"/> |
55 |
<copy file="build.number" todir="${dist}"/> |
56 |
<!-- <copy file="config/about.htm" todir="${dist}" overwrite="yes"/>
|
57 |
<loadproperties srcFile="build.number"/>
|
58 |
<replace casesensitive="true"
|
59 |
file="${dist}/about.htm"
|
60 |
token="#build.number#"
|
61 |
value="${build.number}">
|
62 |
</replace>-->
|
63 |
<copy todir="${dist}"> |
64 |
<fileset dir="config" includes="text*.properties"/> |
65 |
</copy>
|
66 |
<copy todir="${dist}/images"> |
67 |
<fileset dir="images/" includes="*"/> |
68 |
</copy>
|
69 |
<copy todir="${dist}"> |
70 |
<fileset dir="." includes="*.jar"/> |
71 |
</copy>
|
72 |
</target>
|
73 |
|
74 |
<target name="move-to-andami" description="Moves the build directory to andami"> |
75 |
<move todir="${gvsig-targetDir}/"> |
76 |
<fileset dir="${dist}" includes="${gvsig-plugin}.jar"/> |
77 |
</move>
|
78 |
<move todir="${targetDir}/${plugin}/"> |
79 |
<fileset dir="${dist}" includes="**/**"/> |
80 |
</move>
|
81 |
</target>
|
82 |
|
83 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
84 |
<mkdir dir="${dist}"/> |
85 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" excludes="org/gvsig/hyperlink/config/*"/> |
86 |
<jar jarfile="${dist}/${gvsig-plugin}.jar" basedir="${build}" includes="org/gvsig/hyperlink/config/*"/> |
87 |
</target>
|
88 |
|
89 |
<target name="clean" description="clean up" > |
90 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
91 |
<delete dir="${build}"/> |
92 |
<delete dir="${dist}"/> |
93 |
</target>
|
94 |
|
95 |
<target name="run-tests" depends="batch-build,compile-tests"> |
96 |
<antcall target="generic-run-tests"> |
97 |
<param name="TestSuite.Name" value="com.iver.core.AllTests"/> |
98 |
</antcall>
|
99 |
</target>
|
100 |
</project>
|
101 |
|