svn-gvsig-desktop / tags / gvsig_redes-1_0_0-1233 / extensions / extDockingSkin / build.xml @ 40799
History | View | Annotate | Download (3 KB)
1 |
<project name="Docking Skin" default="dist" basedir="."> |
---|---|
2 |
|
3 |
<description>
|
4 |
Instala el plugin |
5 |
</description>
|
6 |
<!-- set global properties for this build -->
|
7 |
<property name="src" location="src"/> |
8 |
<property name="src-test" location="src-test"/> |
9 |
<property name="lib" location="../_fwAndami/lib"/> |
10 |
<property name="build" location="bin"/> |
11 |
<property name="build-test" location="bin-test"/> |
12 |
<property name="dist" location="dist"/> |
13 |
<property name="andamiJar" location="../_fwAndami/andami.jar"/> |
14 |
<property name="plugin" value="org.gvsig.extDockingSkin"/> |
15 |
<property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 |
<!--<property name="compile-classpath" value="${lib}/castor-0.9.5.3-xml.jar:${lib}/iver-utiles.jar:${lib}/log4j-1.2.8.jar:${andamiJar}:${lib}/beans.jar" />-->
|
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="${dist}"/> |
26 |
<mkdir dir="${dist}/lib" /> |
27 |
</target>
|
28 |
|
29 |
<target name="batch-build" |
30 |
description="compile the sources, create the jar file" |
31 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
32 |
</target>
|
33 |
|
34 |
<target name="dist" |
35 |
description="compile the sources, create the jar file" |
36 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
37 |
</target>
|
38 |
|
39 |
|
40 |
<target name="compile" description="compile the source" > |
41 |
<antcall target="gvSIG-import-build-number"/> |
42 |
<!-- Compile the Java code from ${src} to ${build} -->
|
43 |
<mkdir dir="${build}" /> |
44 |
<loadEclipseClasspath project="${basedir}"/> |
45 |
<gvSIG-javac
|
46 |
classpath="${eclipseClasspath}" |
47 |
/>
|
48 |
</target>
|
49 |
|
50 |
<target name="copy-data-files"> |
51 |
<copy file="config/config.xml" todir="${dist}"/> |
52 |
<copy file="build.number" todir="${dist}"/> |
53 |
<copy todir="${dist}"> |
54 |
<fileset dir="config" includes="text*.properties"/> |
55 |
</copy>
|
56 |
<copy todir="${dist}/images"> |
57 |
<fileset dir="images/" includes="*"/> |
58 |
</copy>
|
59 |
<copy todir="${dist}/lib"> |
60 |
<fileset dir="lib/" includes="*.jar"/> |
61 |
</copy>
|
62 |
</target>
|
63 |
|
64 |
<target name="move-to-andami" description="Moves the build directory to andami"> |
65 |
<move todir="${targetDir}/${plugin}/"> |
66 |
<fileset dir="${dist}" includes="**/**"/> |
67 |
</move>
|
68 |
</target>
|
69 |
|
70 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
71 |
<mkdir dir="${dist}"/> |
72 |
<mkdir dir="${dist}/lib"/> |
73 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
74 |
</target>
|
75 |
|
76 |
<target name="clean" description="clean up" > |
77 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
78 |
<delete dir="${build}"/> |
79 |
<delete dir="${dist}"/> |
80 |
</target>
|
81 |
|
82 |
<target name="run-tests" depends="batch-build,compile-tests"> |
83 |
<antcall target="generic-run-tests"> |
84 |
<param name="TestSuite.Name" value="com.iver.core.AllTests"/> |
85 |
</antcall>
|
86 |
</target>
|
87 |
</project>
|
88 |
|