root / trunk / libraries / libUIComponent / build.xml @ 11153
History | View | Annotate | Download (4.26 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="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
17 |
<property name="gvsigLibDir" location="${extensionsDir}/com.iver.cit.gvsig/lib/"/> |
18 |
<property name="targetDir" location="../libFMap/lib"/> |
19 |
|
20 |
|
21 |
<property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar"/> |
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/*.gif" update="true" /> |
54 |
<copy todir="../libCq CMS for java/lib"> |
55 |
<fileset dir="${dist}" includes="${jarName}.jar"/> |
56 |
</copy>
|
57 |
<copy todir="${gvsigLibDir}"> |
58 |
<fileset dir="${dist}" includes="${jarName}.jar"/> |
59 |
</copy>
|
60 |
<copy todir="${targetDir}"> |
61 |
<fileset dir="${lib}" excludes="gvsig-i18n.jar, JWizardComponent.jar, log4j-1.2.8.jar" /> |
62 |
</copy>
|
63 |
</target>
|
64 |
|
65 |
<target name="clean" |
66 |
description="clean up" > |
67 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
68 |
<delete dir="${build}"/> |
69 |
<delete dir="${dist}"/> |
70 |
</target>
|
71 |
|
72 |
|
73 |
<target name="batch-build" |
74 |
description="compile the sources, create the jar file" |
75 |
depends="compile,copy-data-files,create-jar,move-to-installDir"> |
76 |
</target>
|
77 |
|
78 |
<target name="compile" description="compile the source"> |
79 |
<!-- Create the time stamp -->
|
80 |
<tstamp/> |
81 |
<!-- Create the build directory structure used by compile -->
|
82 |
<mkdir dir="${build}"/> |
83 |
<!-- Compile the Java code from ${src} to ${build} -->
|
84 |
<javac srcdir="${src}" |
85 |
destdir="${build}" |
86 |
debug="${debug}" |
87 |
debuglevel="${debuglevel}" |
88 |
classpath="${compile-classpath}"/> |
89 |
</target>
|
90 |
|
91 |
<target name="copy-data-files"> |
92 |
<mkdir dir="config"/> |
93 |
<copy todir="${dist}/org/gvsig/gui/beans/resources/translations"> |
94 |
<fileset dir="config" includes="*" /> |
95 |
</copy>
|
96 |
</target>
|
97 |
|
98 |
<target name="create-jar" description="Creates the jar file"> |
99 |
<mkdir dir="${dist}"/> |
100 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
101 |
<manifest>
|
102 |
<section name="common"> |
103 |
<attribute name="Built-By" value="${user.name}"/> |
104 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
105 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
106 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
107 |
</section>
|
108 |
<!-- finally, use the magically generated libs path -->
|
109 |
</manifest>
|
110 |
</jar>
|
111 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
112 |
</target>
|
113 |
|
114 |
<target name="move-to-installDir" description="Moves the build directory to andami"> |
115 |
<copy todir="${dist}"> |
116 |
<fileset dir="${lib}" includes="**/**"/> |
117 |
</copy>
|
118 |
</target>
|
119 |
|
120 |
</project>
|
121 |
|