svn-gvsig-desktop / branches / v10 / libraries / libUIComponent_praster / build.xml @ 18882
History | View | Annotate | Download (4.4 KB)
1 |
<project name="libBeans" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Generates Beans |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="bin"/> |
8 |
<property name="dist" location="dist"/> |
9 |
<property name="lib" location="lib"/> |
10 |
<property name="beans.home" location="${build}/org/gvsig/gui/beans"/> |
11 |
<property name="jarName" value="gvsig-ui"/> |
12 |
<property name="installBaseDir" location="../_fwAndami"/> |
13 |
<property name="installDir" location="${installBaseDir}/lib"/> |
14 |
<property name="andami" location="../_fwAndami"/> |
15 |
<property name="andamiLibs" location="${andami}/lib"/> |
16 |
<property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar:${lib}/jfreechart-1.0.1.jar:${lib}/jcommon-1.0.0.jar"/> |
17 |
<property name="fmap" location="../libFMap"/> |
18 |
<property name="fmapLib" value="${fmap}/lib"/> |
19 |
<property name="encoding" value="ISO_8859_1"/> |
20 |
<property name="JavaSourceVersion" value="1.4"/> |
21 |
<property name="JavaTargetVersion" value="1.4"/> |
22 |
|
23 |
<target name="init"> |
24 |
<!-- Create the time stamp -->
|
25 |
<tstamp/> |
26 |
<!-- Create the build directory structure used by compile -->
|
27 |
<mkdir dir="${build}"/> |
28 |
</target>
|
29 |
|
30 |
<target name="dist" depends="init" |
31 |
description="generate the distribution" > |
32 |
|
33 |
<!-- Create the distribution directory -->
|
34 |
<mkdir dir="${dist}"/> |
35 |
|
36 |
<!-- Copy the translations -->
|
37 |
<mkdir dir="config"/> |
38 |
<copy todir="${dist}/org/gvsig/gui/beans/resources/translations"> |
39 |
<fileset dir="config" includes="*" /> |
40 |
</copy>
|
41 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
42 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
43 |
<manifest>
|
44 |
<section name="common"> |
45 |
<attribute name="Built-By" value="${user.name}"/> |
46 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
47 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
48 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
49 |
</section>
|
50 |
<!-- finally, use the magically generated libs path -->
|
51 |
</manifest>
|
52 |
</jar>
|
53 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes = "images/*.png" update="true" /> |
54 |
<copy todir="../libFMap/lib"> |
55 |
<fileset dir="${dist}" includes="${jarName}.jar"/> |
56 |
</copy>
|
57 |
|
58 |
</target>
|
59 |
|
60 |
<target name="clean" |
61 |
description="clean up" > |
62 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
63 |
<delete dir="${build}"/> |
64 |
<delete dir="${dist}"/> |
65 |
</target>
|
66 |
|
67 |
|
68 |
<target name="batch-build" |
69 |
description="compile the sources, create the jar file" |
70 |
depends="compile,copy-data-files,create-jar,move-to-installDir"> |
71 |
</target>
|
72 |
|
73 |
<target name="compile" description="compile the source"> |
74 |
<!-- Create the time stamp -->
|
75 |
<tstamp/> |
76 |
<!-- Create the build directory structure used by compile -->
|
77 |
<mkdir dir="${build}"/> |
78 |
<!-- Compile the Java code from ${src} to ${build} -->
|
79 |
<javac srcdir="${src}" |
80 |
destdir="${build}" |
81 |
debug="${debug}" |
82 |
debuglevel="${debuglevel}" |
83 |
classpath="${compile-classpath}" |
84 |
encoding="${encoding}" |
85 |
source="${JavaSourceVersion}" |
86 |
target="${JavaTargetVersion}"/> |
87 |
<copy todir="${build}"> |
88 |
<fileset
|
89 |
dir="${src}" |
90 |
excludes="**/*.java"/> |
91 |
</copy>
|
92 |
|
93 |
</target>
|
94 |
|
95 |
<target name="copy-data-files"> |
96 |
<mkdir dir="config"/> |
97 |
<copy todir="${dist}/org/gvsig/gui/beans/resources/translations"> |
98 |
<fileset dir="config" includes="*" /> |
99 |
</copy>
|
100 |
</target>
|
101 |
|
102 |
<target name="create-jar" description="Creates the jar file"> |
103 |
<mkdir dir="${dist}"/> |
104 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
105 |
<manifest>
|
106 |
<section name="common"> |
107 |
<attribute name="Built-By" value="${user.name}"/> |
108 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
109 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
110 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
111 |
</section>
|
112 |
<!-- finally, use the magically generated libs path -->
|
113 |
</manifest>
|
114 |
</jar>
|
115 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
116 |
</target>
|
117 |
|
118 |
<target name="move-to-installDir" description="Moves the build directory to andami"> |
119 |
<copy todir="${dist}"> |
120 |
<fileset dir="${lib}" includes="**/**"/> |
121 |
</copy>
|
122 |
<copy todir="${fmapLib}"> |
123 |
<fileset dir="${dist}" includes="**/**"/> |
124 |
</copy>
|
125 |
<delete dir="config" failonerror="no"/> |
126 |
</target>
|
127 |
|
128 |
</project>
|
129 |
|