Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/make/netbeans/jdwpgen/build.xml
38813 views
<?xml version="1.0" encoding="UTF-8"?>1<!-- You may freely edit this file. See commented blocks below for -->2<!-- some examples of how to customize the build. -->3<!-- (If you delete it and reopen the project it will be recreated.) -->4<!-- By default, only the Clean and Build commands use this build script. -->5<!-- Commands such as Run, Debug, and Test only use this build script if -->6<!-- the Compile on Save feature is turned off for the project. -->7<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->8<!-- in the project's Project Properties dialog box.-->9<project name="jdwpgen" default="default" basedir=".">10<description>Builds, tests, and runs the project jdwpgen.</description>11<import file="nbproject/build-impl.xml"/>12<!--1314There exist several targets which are by default empty and which can be15used for execution of your tasks. These targets are usually executed16before and after some main targets. They are:1718-pre-init: called before initialization of project properties19-post-init: called after initialization of project properties20-pre-compile: called before javac compilation21-post-compile: called after javac compilation22-pre-compile-single: called before javac compilation of single file23-post-compile-single: called after javac compilation of single file24-pre-compile-test: called before javac compilation of JUnit tests25-post-compile-test: called after javac compilation of JUnit tests26-pre-compile-test-single: called before javac compilation of single JUnit test27-post-compile-test-single: called after javac compilation of single JUunit test28-pre-jar: called before JAR building29-post-jar: called after JAR building30-post-clean: called after cleaning build products3132(Targets beginning with '-' are not intended to be called on their own.)3334Example of inserting an obfuscator after compilation could look like this:3536<target name="-post-compile">37<obfuscate>38<fileset dir="${build.classes.dir}"/>39</obfuscate>40</target>4142For list of available properties check the imported43nbproject/build-impl.xml file.444546Another way to customize the build is by overriding existing main targets.47The targets of interest are:4849-init-macrodef-javac: defines macro for javac compilation50-init-macrodef-junit: defines macro for junit execution51-init-macrodef-debug: defines macro for class debugging52-init-macrodef-java: defines macro for class execution53-do-jar-with-manifest: JAR building (if you are using a manifest)54-do-jar-without-manifest: JAR building (if you are not using a manifest)55run: execution of project56-javadoc-build: Javadoc generation57test-report: JUnit report generation5859An example of overriding the target for project execution could look like this:6061<target name="run" depends="jdwpgen-impl.jar">62<exec dir="bin" executable="launcher.exe">63<arg file="${dist.jar}"/>64</exec>65</target>6667Notice that the overridden target depends on the jar target and not only on68the compile target as the regular run target does. Again, for a list of available69properties which you can use, check the target you are overriding in the70nbproject/build-impl.xml file.7172-->73</project>747576