svn-gvsig-desktop / trunk / libraries / libCorePlugin / build.xml @ 34510
History | View | Annotate | Download (3.78 KB)
1 |
<project name="Core plugin" 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="com.iver.core"/> |
14 |
<property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/> |
15 |
<!--<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" />-->
|
16 |
<import file="../binaries/ant/utilities.xml"/> |
17 |
|
18 |
<target name="init"> |
19 |
<!-- Create the time stamp -->
|
20 |
<tstamp/> |
21 |
<echo>
|
22 |
Compiling ${ant.project.name}...</echo>
|
23 |
<!-- Create the build directory structure used by compile -->
|
24 |
<mkdir dir="${build}"/> |
25 |
</target>
|
26 |
|
27 |
<target name="dist" description="generate the distribution" depends="make-package-info"> |
28 |
<!-- Create the distribution directory -->
|
29 |
<mkdir dir="${dist}"/> |
30 |
|
31 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
32 |
<copy todir="${build}"> |
33 |
<fileset dir="${src}" includes="**"/> |
34 |
</copy>
|
35 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
36 |
<copy file="config/config.xml" todir="${dist}"/> |
37 |
<copy file="build.number" todir="${dist}"/> |
38 |
<copy file="package.info" todir="${dist}"/> |
39 |
<copy todir="${dist}"> |
40 |
<fileset dir="config" includes="text*.properties"/> |
41 |
</copy>
|
42 |
<copy todir="${dist}/images"> |
43 |
<fileset dir="images/" includes="*"/> |
44 |
</copy>
|
45 |
<copy todir="${dist}"> |
46 |
<fileset dir="." includes="*.jar"/> |
47 |
</copy>
|
48 |
|
49 |
<move todir="${targetDir}/${plugin}/"> |
50 |
<fileset dir="${dist}" includes="**/**"/> |
51 |
</move>
|
52 |
</target>
|
53 |
|
54 |
<target name="batch-build" |
55 |
description="compile the sources, create the jar file" |
56 |
depends="compile,create-jar,copy-data-files,move-to-andami"> |
57 |
</target>
|
58 |
|
59 |
<target name="compile" description="compile the source" > |
60 |
<antcall target="gvSIG-import-build-number"/> |
61 |
<!-- Compile the Java code from ${src} to ${build} -->
|
62 |
<mkdir dir="${build}" /> |
63 |
<loadEclipseClasspath project="${basedir}"/> |
64 |
<gvSIG-javac
|
65 |
classpath="${eclipseClasspath}" |
66 |
/>
|
67 |
<!--<javac srcdir="${src}"
|
68 |
destdir="${build}"
|
69 |
source="1.4"
|
70 |
target="1.4"
|
71 |
debug="${debug}"
|
72 |
debuglevel="${debuglevel}"
|
73 |
classpath="${compile-classpath}"/>-->
|
74 |
</target>
|
75 |
|
76 |
<target name="copy-data-files" depends="make-package-info"> |
77 |
<copy file="config/config.xml" todir="${dist}"/> |
78 |
<copy file="build.number" todir="${dist}"/> |
79 |
<copy file="package.info" todir="${dist}"/> |
80 |
<copy todir="${dist}"> |
81 |
<fileset dir="config" includes="text*.properties"/> |
82 |
</copy>
|
83 |
<copy todir="${dist}/images"> |
84 |
<fileset dir="images/" includes="*"/> |
85 |
</copy>
|
86 |
<copy todir="${dist}"> |
87 |
<fileset dir="." includes="*.jar"/> |
88 |
</copy>
|
89 |
</target>
|
90 |
|
91 |
<target name="move-to-andami" description="Moves the build directory to andami"> |
92 |
<move todir="${targetDir}/${plugin}/"> |
93 |
<fileset dir="${dist}" includes="**/**"/> |
94 |
</move>
|
95 |
</target>
|
96 |
|
97 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
98 |
<mkdir dir="${dist}"/> |
99 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
100 |
</target>
|
101 |
|
102 |
<target name="clean" description="clean up" > |
103 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
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="com.iver.core.AllTests"/> |
111 |
</antcall>
|
112 |
</target>
|
113 |
</project>
|
114 |
|