svn-gvsig-desktop / trunk / libraries / libCorePlugin / build.xml @ 5712
History | View | Annotate | Download (2.93 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}" /> |
14 |
|
15 |
|
16 |
<target name="init"> |
17 |
<!-- Create the time stamp -->
|
18 |
<tstamp/> |
19 |
<!-- Create the build directory structure used by compile -->
|
20 |
<mkdir dir="${build}"/> |
21 |
</target>
|
22 |
|
23 |
<target name="dist" description="generate the distribution" > |
24 |
<!-- Create the distribution directory -->
|
25 |
<mkdir dir="${dist}"/> |
26 |
|
27 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
28 |
<copy todir="${build}"> |
29 |
<fileset dir="${src}" includes="**"/> |
30 |
</copy>
|
31 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
32 |
<copy file="config/config.xml" todir="${dist}"/> |
33 |
<copy todir="${dist}"> |
34 |
<fileset dir="config" includes="text*.properties"/> |
35 |
</copy>
|
36 |
<copy todir="${dist}/images"> |
37 |
<fileset dir="images/" includes="*"/> |
38 |
</copy>
|
39 |
<copy todir="${dist}"> |
40 |
<fileset dir="." includes="*.jar"/> |
41 |
</copy>
|
42 |
|
43 |
<move todir="${targetDir}/${plugin}/"> |
44 |
<fileset dir="${dist}" includes="**/**"/> |
45 |
</move>
|
46 |
</target>
|
47 |
|
48 |
<target name="batch-build" |
49 |
description="compile the sources, create the jar file" |
50 |
depends="compile,create-jar,copy-data-files,move-to-andami"> |
51 |
</target>
|
52 |
|
53 |
<target name="compile" description="compile the source" > |
54 |
<!-- Compile the Java code from ${src} to ${build} -->
|
55 |
<mkdir dir="${build}" /> |
56 |
<javac srcdir="${src}" |
57 |
destdir="${build}" |
58 |
classpath="${compile-classpath}"/> |
59 |
</target>
|
60 |
|
61 |
<target name="copy-data-files"> |
62 |
<copy file="config/config.xml" todir="${dist}"/> |
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="${targetDir}/${plugin}/"> |
76 |
<fileset dir="${dist}" includes="**/**"/> |
77 |
</move>
|
78 |
</target>
|
79 |
|
80 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
81 |
<mkdir dir="${dist}"/> |
82 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
83 |
</target>
|
84 |
|
85 |
<target name="clean" description="clean up" > |
86 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
87 |
<delete dir="${build}"/> |
88 |
<delete dir="${dist}"/> |
89 |
</target>
|
90 |
|
91 |
</project>
|
92 |
|