root / branches / v10 / libraries / libUI / build.xml @ 13997
History | View | Annotate | Download (5.41 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 | 8071 | cesar | <property name="andamiJar" location="${andami}/andami.jar"/> |
17 | 8765 | jjdelcerro | <property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar:${andamiJar}:${andamiLibs}/log4j-1.2.8.jar:${lib}/JWizardComponent.jar:${andamiLibs}/jcalendar.jar"/> |
18 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
19 | <property name="JavaTargetVersion" value="1.4"/> |
||
20 | 12967 | cesar | <property name="encoding" value="ISO_8859_1"/> |
21 | 4520 | jaume | |
22 | <target name="init"> |
||
23 | <!-- Create the time stamp -->
|
||
24 | <tstamp/> |
||
25 | <!-- Create the build directory structure used by compile -->
|
||
26 | <mkdir dir="${build}"/> |
||
27 | </target>
|
||
28 | |||
29 | 6285 | cesar | <target name="dist" depends="init" |
30 | 4520 | jaume | description="generate the distribution" > |
31 | <!-- pathconvert property="beans.home" pathsep=" ">
|
||
32 | <mapper>
|
||
33 | <chainedmapper>
|
||
34 | 6325 | jaume | |
35 | 4520 | jaume | <flattenmapper />
|
36 | 6325 | jaume | |
37 | 4520 | jaume | <globmapper from="*" to="lib/*" />
|
38 | </chainedmapper>
|
||
39 | </mapper>
|
||
40 | 6325 | jaume | |
41 | 4520 | jaume | <path>
|
42 | 6325 | jaume | |
43 | 4520 | jaume | <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 | 6292 | cesar | <!-- Copy the translations -->
|
53 | 6308 | cesar | <mkdir dir="config"/> |
54 | 7005 | cesar | <copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
55 | 6292 | cesar | <fileset dir="config" includes="*" /> |
56 | </copy>
|
||
57 | 8070 | cesar | <!-- copy the images -->
|
58 | <copy todir="${build}/org/gvsig/gui/beans/images"> |
||
59 | <fileset dir="images" includes="*" /> |
||
60 | </copy>
|
||
61 | 6325 | jaume | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
62 | 6285 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
63 | 4520 | jaume | <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 | 6285 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes = "images/*.gif" update="true" /> |
74 | 6325 | jaume | <copy todir="${dist}"> |
75 | <fileset dir="${lib}" includes="**/**"/> |
||
76 | </copy>
|
||
77 | 6285 | cesar | <move todir="${installDir}"> |
78 | <fileset dir="${dist}" includes="**/**"/> |
||
79 | 4520 | jaume | </move>
|
80 | 6290 | cesar | <!--<eclipse.refreshLocal resource="." depth="infinite"/>
|
81 | <eclipse.refreshLocal resource="${installDir}" depth="infinite"/>-->
|
||
82 | 4520 | jaume | </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 | 6285 | cesar | |
91 | 6325 | jaume | |
92 | 6285 | cesar | <target name="batch-build" |
93 | description="compile the sources, create the jar file" |
||
94 | 6292 | cesar | depends="compile,copy-data-files,create-jar,move-to-installDir"> |
95 | 6285 | cesar | </target>
|
96 | 6325 | jaume | |
97 | 6285 | cesar | <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 | 10565 | jmvivo | source="${JavaSourceVersion}" |
106 | target="${JavaTargetVersion}" |
||
107 | 6285 | cesar | debug="${debug}" |
108 | debuglevel="${debuglevel}" |
||
109 | 12967 | cesar | encoding="${encoding}" |
110 | 6285 | cesar | classpath="${compile-classpath}"/> |
111 | 8070 | cesar | <!-- copy any images or resources present in the src dir -->
|
112 | <copy todir="${build}"> |
||
113 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
114 | </copy>
|
||
115 | 6325 | jaume | </target>
|
116 | 6285 | cesar | |
117 | 6292 | cesar | <target name="copy-data-files"> |
118 | 6319 | cesar | <mkdir dir="config"/> |
119 | 7005 | cesar | <copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
120 | 6292 | cesar | <fileset dir="config" includes="*" /> |
121 | </copy>
|
||
122 | 8070 | cesar | <!-- copy the images -->
|
123 | <copy todir="${build}/org/gvsig/gui/beans/images"> |
||
124 | <fileset dir="images" includes="*" /> |
||
125 | </copy>
|
||
126 | 6292 | cesar | </target>
|
127 | 6325 | jaume | |
128 | 6285 | cesar | <target name="create-jar" description="Creates the jar file"> |
129 | <mkdir dir="${dist}"/> |
||
130 | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
||
131 | <manifest>
|
||
132 | <section name="common"> |
||
133 | <attribute name="Built-By" value="${user.name}"/> |
||
134 | <attribute name="Implementation-Title" value="$gvSIG Beans" /> |
||
135 | <attribute name="Implementation-Version" value="${TODAY}" /> |
||
136 | <attribute name="Implementation-Vendor" value="the gvSIG project" /> |
||
137 | </section>
|
||
138 | <!-- finally, use the magically generated libs path -->
|
||
139 | </manifest>
|
||
140 | </jar>
|
||
141 | 6290 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
142 | 6285 | cesar | </target>
|
143 | 6325 | jaume | |
144 | 6285 | cesar | <target name="move-to-installDir" description="Moves the build directory to andami"> |
145 | 6325 | jaume | <copy todir="${dist}"> |
146 | <fileset dir="${lib}" includes="**/**"/> |
||
147 | </copy>
|
||
148 | 6285 | cesar | <move todir="${installDir}"> |
149 | <fileset dir="${dist}" includes="**/**"/> |
||
150 | </move>
|
||
151 | 6325 | jaume | |
152 | <!--move todir="${installDir}">
|
||
153 | <fileset dir="${dist}" includes="**/**"/>
|
||
154 | </move-->
|
||
155 | 6285 | cesar | </target>
|
156 | 6325 | jaume | |
157 | 4520 | jaume | </project>
|