svn-gvsig-desktop / tags / gvsig_redes-1_0_0-1235 / libraries / JDialogSkin / build.xml @ 37620
History | View | Annotate | Download (3.01 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.core3D"/> |
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 |
|
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 |
source="1.4" |
59 |
target="1.4" |
60 |
debug="${debug}" |
61 |
debuglevel="${debuglevel}" |
62 |
classpath="${compile-classpath}"/> |
63 |
</target>
|
64 |
|
65 |
<target name="copy-data-files"> |
66 |
<copy file="config/config.xml" todir="${dist}"/> |
67 |
<copy todir="${dist}"> |
68 |
<fileset dir="config" includes="text*.properties"/> |
69 |
</copy>
|
70 |
<copy todir="${dist}/images"> |
71 |
<fileset dir="images/" includes="*"/> |
72 |
</copy>
|
73 |
<copy todir="${dist}"> |
74 |
<fileset dir="." includes="*.jar"/> |
75 |
</copy>
|
76 |
</target>
|
77 |
|
78 |
<target name="move-to-andami" description="Moves the build directory to andami"> |
79 |
<move todir="${targetDir}/${plugin}/"> |
80 |
<fileset dir="${dist}" includes="**/**"/> |
81 |
</move>
|
82 |
</target>
|
83 |
|
84 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
85 |
<mkdir dir="${dist}"/> |
86 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
87 |
</target>
|
88 |
|
89 |
<target name="clean" description="clean up" > |
90 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
91 |
<delete dir="${build}"/> |
92 |
<delete dir="${dist}"/> |
93 |
</target>
|
94 |
|
95 |
</project>
|
96 |
|