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