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