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