root / tags / v1_0_2_Build_905 / libraries / libUI / build.xml @ 10767
History | View | Annotate | Download (5.33 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 | 4520 | jaume | |
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 | 6285 | cesar | <target name="dist" depends="init" |
29 | 4520 | jaume | description="generate the distribution" > |
30 | <!-- pathconvert property="beans.home" pathsep=" ">
|
||
31 | <mapper>
|
||
32 | <chainedmapper>
|
||
33 | 6325 | jaume | |
34 | 4520 | jaume | <flattenmapper />
|
35 | 6325 | jaume | |
36 | 4520 | jaume | <globmapper from="*" to="lib/*" />
|
37 | </chainedmapper>
|
||
38 | </mapper>
|
||
39 | 6325 | jaume | |
40 | 4520 | jaume | <path>
|
41 | 6325 | jaume | |
42 | 4520 | jaume | <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 | 6292 | cesar | <!-- Copy the translations -->
|
52 | 6308 | cesar | <mkdir dir="config"/> |
53 | 7005 | cesar | <copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
54 | 6292 | cesar | <fileset dir="config" includes="*" /> |
55 | </copy>
|
||
56 | 8070 | cesar | <!-- copy the images -->
|
57 | <copy todir="${build}/org/gvsig/gui/beans/images"> |
||
58 | <fileset dir="images" includes="*" /> |
||
59 | </copy>
|
||
60 | 6325 | jaume | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
61 | 6285 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
62 | 4520 | jaume | <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 | 6285 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes = "images/*.gif" update="true" /> |
73 | 6325 | jaume | <copy todir="${dist}"> |
74 | <fileset dir="${lib}" includes="**/**"/> |
||
75 | </copy>
|
||
76 | 6285 | cesar | <move todir="${installDir}"> |
77 | <fileset dir="${dist}" includes="**/**"/> |
||
78 | 4520 | jaume | </move>
|
79 | 6290 | cesar | <!--<eclipse.refreshLocal resource="." depth="infinite"/>
|
80 | <eclipse.refreshLocal resource="${installDir}" depth="infinite"/>-->
|
||
81 | 4520 | jaume | </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 | 6285 | cesar | |
90 | 6325 | jaume | |
91 | 6285 | cesar | <target name="batch-build" |
92 | description="compile the sources, create the jar file" |
||
93 | 6292 | cesar | depends="compile,copy-data-files,create-jar,move-to-installDir"> |
94 | 6285 | cesar | </target>
|
95 | 6325 | jaume | |
96 | 6285 | cesar | <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 | 10565 | jmvivo | source="${JavaSourceVersion}" |
105 | target="${JavaTargetVersion}" |
||
106 | 6285 | cesar | debug="${debug}" |
107 | debuglevel="${debuglevel}" |
||
108 | classpath="${compile-classpath}"/> |
||
109 | 8070 | cesar | <!-- 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 | 6325 | jaume | </target>
|
114 | 6285 | cesar | |
115 | 6292 | cesar | <target name="copy-data-files"> |
116 | 6319 | cesar | <mkdir dir="config"/> |
117 | 7005 | cesar | <copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
118 | 6292 | cesar | <fileset dir="config" includes="*" /> |
119 | </copy>
|
||
120 | 8070 | cesar | <!-- copy the images -->
|
121 | <copy todir="${build}/org/gvsig/gui/beans/images"> |
||
122 | <fileset dir="images" includes="*" /> |
||
123 | </copy>
|
||
124 | 6292 | cesar | </target>
|
125 | 6325 | jaume | |
126 | 6285 | cesar | <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 | 6290 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
140 | 6285 | cesar | </target>
|
141 | 6325 | jaume | |
142 | 6285 | cesar | <target name="move-to-installDir" description="Moves the build directory to andami"> |
143 | 6325 | jaume | <copy todir="${dist}"> |
144 | <fileset dir="${lib}" includes="**/**"/> |
||
145 | </copy>
|
||
146 | 6285 | cesar | <move todir="${installDir}"> |
147 | <fileset dir="${dist}" includes="**/**"/> |
||
148 | </move>
|
||
149 | 6325 | jaume | |
150 | <!--move todir="${installDir}">
|
||
151 | <fileset dir="${dist}" includes="**/**"/>
|
||
152 | </move-->
|
||
153 | 6285 | cesar | </target>
|
154 | 6325 | jaume | |
155 | 4520 | jaume | </project>
|