350 <arg value="-title"/> |
350 <arg value="-title"/> |
351 <arg value="Examples of javac diagnostics"/> |
351 <arg value="Examples of javac diagnostics"/> |
352 </java> |
352 </java> |
353 </target> |
353 </target> |
354 |
354 |
|
355 <!-- a patching facility to speed up incorporating the langtools' classfiles |
|
356 into a jdk of your choice. Either target.java.home or patch.jdk can be |
|
357 set on the command line; setting target.java.home has the advantage of |
|
358 patching the jdk used for jtreg and other tests. |
|
359 --> |
|
360 <target name="patch" depends="build-all-classes"> |
|
361 <condition property="patch.jdk" value="${target.java.home}"> |
|
362 <available file="${target.java.home}" type="dir"/> |
|
363 </condition> |
|
364 <fail message="patch.jdk or target.java.home is not set, please set target.java.home, or patch.jdk for an alternate jdk image to patch"> |
|
365 <condition> |
|
366 <not> |
|
367 <isset property="patch.jdk"/> |
|
368 </not> |
|
369 </condition> |
|
370 </fail> |
|
371 <property name="patch.tools.jar" location="${patch.jdk}/lib/tools.jar"/> |
|
372 <property name="patch.rt.jar" location="${patch.jdk}/jre/lib/rt.jar"/> |
|
373 <fail message="patch.jdk or target.java.home must point to a valid jdk image: missing tools.jar"> |
|
374 <condition> |
|
375 <not> |
|
376 <available file="${patch.tools.jar}" type="file"/> |
|
377 </not> |
|
378 </condition> |
|
379 </fail> |
|
380 <fail message="patch.jdk or target.java.home must point to a valid jdk image: missing rt.jar"> |
|
381 <condition> |
|
382 <not> |
|
383 <available file="${patch.rt.jar}" type="file"/> |
|
384 </not> |
|
385 </condition> |
|
386 </fail> |
|
387 <zip zipfile="${patch.tools.jar}" update="true"> |
|
388 <zipfileset dir="${build.classes.dir}" includes="com/**"/> |
|
389 </zip> |
|
390 <zip zipfile="${patch.rt.jar}" update="true"> |
|
391 <zipfileset dir="${build.classes.dir}" includes="javax/**"/> |
|
392 </zip> |
|
393 </target> |
355 |
394 |
356 <!-- |
395 <!-- |
357 **** Debugging/diagnostic targets. |
396 **** Debugging/diagnostic targets. |
358 --> |
397 --> |
359 |
398 |