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