svn-gvsig-desktop / trunk / libraries / libUI / build.xml @ 7282
History | View | Annotate | Download (4.85 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="beans"/> |
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"/> |
17 |
|
18 |
<target name="init"> |
19 |
<!-- Create the time stamp -->
|
20 |
<tstamp/> |
21 |
<!-- Create the build directory structure used by compile -->
|
22 |
<mkdir dir="${build}"/> |
23 |
</target>
|
24 |
|
25 |
<target name="dist" depends="init" |
26 |
description="generate the distribution" > |
27 |
<!-- pathconvert property="beans.home" pathsep=" ">
|
28 |
<mapper>
|
29 |
<chainedmapper>
|
30 |
|
31 |
<flattenmapper />
|
32 |
|
33 |
<globmapper from="*" to="lib/*" />
|
34 |
</chainedmapper>
|
35 |
</mapper>
|
36 |
|
37 |
<path>
|
38 |
|
39 |
<fileset dir="${beans.home}">
|
40 |
<include name="**/*.class" />
|
41 |
</fileset>
|
42 |
</path>
|
43 |
</pathconvert -->
|
44 |
<!-- fileset dir="${beans.home}" includes="*.class/*.class" /-->
|
45 |
<!-- Create the distribution directory -->
|
46 |
<mkdir dir="${dist}"/> |
47 |
|
48 |
<!-- Copy the translations -->
|
49 |
<mkdir dir="config"/> |
50 |
<copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
51 |
<fileset dir="config" includes="*" /> |
52 |
</copy>
|
53 |
<!-- copy the images -->
|
54 |
<copy todir="${build}/org/gvsig/gui/beans/images"> |
55 |
<fileset dir="images" includes="*" /> |
56 |
</copy>
|
57 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
58 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
59 |
<manifest>
|
60 |
<section name="common"> |
61 |
<attribute name="Built-By" value="${user.name}"/> |
62 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
63 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
64 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
65 |
</section>
|
66 |
<!-- finally, use the magically generated libs path -->
|
67 |
</manifest>
|
68 |
</jar>
|
69 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes = "images/*.gif" update="true" /> |
70 |
<copy todir="${dist}"> |
71 |
<fileset dir="${lib}" includes="**/**"/> |
72 |
</copy>
|
73 |
<move todir="${installDir}"> |
74 |
<fileset dir="${dist}" includes="**/**"/> |
75 |
</move>
|
76 |
<!--<eclipse.refreshLocal resource="." depth="infinite"/>
|
77 |
<eclipse.refreshLocal resource="${installDir}" depth="infinite"/>-->
|
78 |
</target>
|
79 |
|
80 |
<target name="clean" |
81 |
description="clean up" > |
82 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
83 |
<delete dir="${build}"/> |
84 |
<delete dir="${dist}"/> |
85 |
</target>
|
86 |
|
87 |
|
88 |
<target name="batch-build" |
89 |
description="compile the sources, create the jar file" |
90 |
depends="compile,copy-data-files,create-jar,move-to-installDir"> |
91 |
</target>
|
92 |
|
93 |
<target name="compile" description="compile the source"> |
94 |
<!-- Create the time stamp -->
|
95 |
<tstamp/> |
96 |
<!-- Create the build directory structure used by compile -->
|
97 |
<mkdir dir="${build}"/> |
98 |
<!-- Compile the Java code from ${src} to ${build} -->
|
99 |
<javac srcdir="${src}" |
100 |
destdir="${build}" |
101 |
debug="${debug}" |
102 |
debuglevel="${debuglevel}" |
103 |
classpath="${compile-classpath}"/> |
104 |
</target>
|
105 |
|
106 |
<target name="copy-data-files"> |
107 |
<mkdir dir="config"/> |
108 |
<copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
109 |
<fileset dir="config" includes="*" /> |
110 |
</copy>
|
111 |
<!-- copy the images -->
|
112 |
<copy todir="${build}/org/gvsig/gui/beans/images"> |
113 |
<fileset dir="images" includes="*" /> |
114 |
</copy>
|
115 |
</target>
|
116 |
|
117 |
<target name="create-jar" description="Creates the jar file"> |
118 |
<mkdir dir="${dist}"/> |
119 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
120 |
<manifest>
|
121 |
<section name="common"> |
122 |
<attribute name="Built-By" value="${user.name}"/> |
123 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
124 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
125 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
126 |
</section>
|
127 |
<!-- finally, use the magically generated libs path -->
|
128 |
</manifest>
|
129 |
</jar>
|
130 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
131 |
</target>
|
132 |
|
133 |
<target name="move-to-installDir" description="Moves the build directory to andami"> |
134 |
<copy todir="${dist}"> |
135 |
<fileset dir="${lib}" includes="**/**"/> |
136 |
</copy>
|
137 |
<move todir="${installDir}"> |
138 |
<fileset dir="${dist}" includes="**/**"/> |
139 |
</move>
|
140 |
|
141 |
<!--move todir="${installDir}">
|
142 |
<fileset dir="${dist}" includes="**/**"/>
|
143 |
</move-->
|
144 |
</target>
|
145 |
|
146 |
</project>
|
147 |
|