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