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