svn-gvsig-desktop / tags / STABLE / libraries / libUI / build.xml @ 42148
History | View | Annotate | Download (2.45 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="jar" value="beans"/> |
12 |
<property name="targetDir" value="${lib}"/> |
13 |
<property name="mainplugin" value="../_fwAndami/"/> |
14 |
<property name="gvSIGTargetDir" value="${mainplugin}/lib"/> |
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="compile" depends="init" |
24 |
description="compile the source " > |
25 |
</target>
|
26 |
|
27 |
<target name="dist" depends="compile" |
28 |
description="generate the distribution" > |
29 |
<!-- pathconvert property="beans.home" pathsep=" ">
|
30 |
<mapper>
|
31 |
<chainedmapper>
|
32 |
|
33 |
<flattenmapper />
|
34 |
|
35 |
<globmapper from="*" to="lib/*" />
|
36 |
</chainedmapper>
|
37 |
</mapper>
|
38 |
|
39 |
<path>
|
40 |
|
41 |
<fileset dir="${beans.home}">
|
42 |
<include name="**/*.class" />
|
43 |
</fileset>
|
44 |
</path>
|
45 |
</pathconvert -->
|
46 |
<!-- fileset dir="${beans.home}" includes="*.class/*.class" /-->
|
47 |
<!-- Create the distribution directory -->
|
48 |
<mkdir dir="${dist}"/> |
49 |
|
50 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
51 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"> |
52 |
<manifest>
|
53 |
<section name="common"> |
54 |
<attribute name="Built-By" value="${user.name}"/> |
55 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
56 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
57 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
58 |
</section>
|
59 |
<!-- finally, use the magically generated libs path -->
|
60 |
</manifest>
|
61 |
</jar>
|
62 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*.gif" update="true" /> |
63 |
|
64 |
<move todir="${targetDir}/"> |
65 |
<fileset dir="${dist}" includes="**/**"/> |
66 |
</move>
|
67 |
<move todir="${gvSIGTargetDir}"> |
68 |
<fileset dir="${targetDir}" includes="**/**"/> |
69 |
</move>
|
70 |
</target>
|
71 |
|
72 |
<target name="clean" |
73 |
description="clean up" > |
74 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
75 |
<delete dir="${build}"/> |
76 |
<delete dir="${dist}"/> |
77 |
</target>
|
78 |
</project>
|
79 |
|