33 . cd to the directory containing this build.xml file |
33 . cd to the directory containing this build.xml file |
34 . Launch the build by typing: ant |
34 . Launch the build by typing: ant |
35 . Please also read the important comment on basedir definition below. |
35 . Please also read the important comment on basedir definition below. |
36 --> |
36 --> |
37 |
37 |
38 <project name="JMX API Version 1.4 - Java SE 6 implementation" |
38 <project name="JMX API Version 1.4 - Java SE 6 implementation" |
39 default="jar" |
39 default="jar" |
40 basedir="../../../../.." |
40 basedir="../../../../.." |
41 > |
41 > |
42 |
42 |
43 <!-- IMPORTANT: BASEDIR DEFINITION |
43 <!-- IMPORTANT: BASEDIR DEFINITION |
44 This file is assumed to be in: |
44 This file is assumed to be in: |
45 <src_bundle_dir>/j2se/src/share/classes/javax/management |
45 <src_bundle_dir>/j2se/src/share/classes/javax/management |
46 Thus the basedir for this project is defined above as: |
46 Thus the basedir for this project is defined above as: |
47 basedir="../../../../.." |
47 basedir="../../../../.." |
48 in order to be the parent dir of src subdir. |
48 in order to be the parent dir of src subdir. |
49 Result of the build will be placed in ${basedir}/build_jmx |
49 Result of the build will be placed in ${basedir}/build_jmx |
50 as defined by ${dir.build} property below. |
50 as defined by ${dir.build} property below. |
51 --> |
51 --> |
52 |
52 |
53 <description> |
53 <description> |
54 Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. |
54 Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. |
161 <echo message=" flag.javac.source = ${flag.javac.source}" /> |
161 <echo message=" flag.javac.source = ${flag.javac.source}" /> |
162 <echo message=" flag.deprecation = ${flag.deprecation}" /> |
162 <echo message=" flag.deprecation = ${flag.deprecation}" /> |
163 <echo message=" BUILD_DATE = ${BUILD_DATE}" /> |
163 <echo message=" BUILD_DATE = ${BUILD_DATE}" /> |
164 |
164 |
165 </target> |
165 </target> |
166 |
166 |
167 |
167 |
168 |
168 |
169 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
169 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
170 <!-- Call classes subtargets and rmic stubs generation --> |
170 <!-- Call classes subtargets and rmic stubs generation --> |
171 |
171 |
172 <target name="classes" depends="init,classes-javac,classes-rmic" |
172 <target name="classes" depends="init,classes-javac,classes-rmic" |
173 description="Call classes subtargets and rmic stubs generation" |
173 description="Call classes subtargets and rmic stubs generation" |
174 /> |
174 /> |
175 |
175 |
176 |
176 |
177 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
177 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
178 <!-- Build JMX java files --> |
178 <!-- Build JMX java files --> |
181 description="Build JMX java files" > |
181 description="Build JMX java files" > |
182 |
182 |
183 <mkdir dir="${dir.build.classes}" /> |
183 <mkdir dir="${dir.build.classes}" /> |
184 |
184 |
185 <javac srcdir="${dir.src}" |
185 <javac srcdir="${dir.src}" |
186 destdir="${dir.build.classes}" |
186 destdir="${dir.build.classes}" |
187 source="${flag.javac.source}" |
187 source="${flag.javac.source}" |
188 debug="${flag.debug}" |
188 debug="${flag.debug}" |
189 debuglevel="${flag.debug.level}" |
189 debuglevel="${flag.debug.level}" |
190 optimize="${flag.optimize}" |
190 optimize="${flag.optimize}" |
191 includeAntRuntime="no" |
191 includeAntRuntime="no" |
192 includeJavaRuntime="no" |
192 includeJavaRuntime="no" |
193 > |
193 > |
194 <include name="javax/management/**"/> |
194 <include name="javax/management/**"/> |
195 <include name="com/sun/jmx/**"/> |
195 <include name="com/sun/jmx/**"/> |
196 </javac> |
196 </javac> |
197 |
197 |
251 <target name="jar" depends="init,classes" |
251 <target name="jar" depends="init,classes" |
252 description="Jar all JMX classes" > |
252 description="Jar all JMX classes" > |
253 |
253 |
254 <mkdir dir="${dir.build.lib}" /> |
254 <mkdir dir="${dir.build.lib}" /> |
255 |
255 |
256 <jar jarfile="${dir.build.lib}/jmx.jar" |
256 <jar jarfile="${dir.build.lib}/jmx.jar" |
257 update="true" |
257 update="true" |
258 > |
258 > |
259 |
259 |
260 <fileset dir="${dir.build.classes}" |
260 <fileset dir="${dir.build.classes}" |
261 includes="**/*.class" |
261 includes="**/*.class" |
267 <attribute name="Build-User" value="${user.name}" /> |
267 <attribute name="Build-User" value="${user.name}" /> |
268 <section name="common"> |
268 <section name="common"> |
269 <attribute name="Sealed" value="true" /> |
269 <attribute name="Sealed" value="true" /> |
270 <attribute name="Specification-Title" value="JMX(TM) API" /> |
270 <attribute name="Specification-Title" value="JMX(TM) API" /> |
271 <attribute name="Specification-Version" value="1.4" /> |
271 <attribute name="Specification-Version" value="1.4" /> |
272 <attribute name="Specification-Vendor" value="Sun Microsystems, Inc." /> |
272 <attribute name="Specification-Vendor" value="Oracle Corporation" /> |
273 <attribute name="Implementation-Title" value="JMX(TM) API, Java SE 6 implementation" /> |
273 <attribute name="Implementation-Title" value="JMX(TM) API, Java SE 6 implementation" /> |
274 <attribute name="Implementation-Version" value="${BUILD_DATE} rebuild of Mustang JMX sources" /> |
274 <attribute name="Implementation-Version" value="${BUILD_DATE} rebuild of Java SE JMX sources" /> |
275 <attribute name="Implementation-Vendor" value="Source bundle from Sun Microsystems, Inc. - Customer rebuilt" /> |
275 <attribute name="Implementation-Vendor" value="Source bundle from Oracle Corporation - Customer rebuilt" /> |
276 </section> |
276 </section> |
277 </manifest> |
277 </manifest> |
278 </jar> |
278 </jar> |
279 |
279 |
280 </target> |
280 </target> |
293 |
293 |
294 |
294 |
295 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
295 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
296 <!-- Delete build directory and all its contents --> |
296 <!-- Delete build directory and all its contents --> |
297 |
297 |
298 <target name="clean-all" |
298 <target name="clean-all" |
299 description="Delete build directory and all its contents" > |
299 description="Delete build directory and all its contents" > |
300 <delete dir="${dir.build}" /> |
300 <delete dir="${dir.build}" /> |
301 </target> |
301 </target> |
302 |
302 |
303 |
303 |
304 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
304 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
305 <!-- Clean all and build everything --> |
305 <!-- Clean all and build everything --> |
306 |
306 |
307 <target name="all" depends="clean-all,jar" |
307 <target name="all" depends="clean-all,jar" |
308 description="Clean all and build everything" /> |
308 description="Clean all and build everything" /> |
309 |
309 |
310 |
310 |
311 </project> |
311 </project> |
312 |
312 |