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