[507] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!-- You may freely edit this file. See commented blocks below for -->
|
---|
| 3 | <!-- some examples of how to customize the build. -->
|
---|
| 4 | <!-- (If you delete it and reopen the project it will be recreated.) -->
|
---|
| 5 | <project name="NhincSAMLCallbackLib" default="default" basedir=".">
|
---|
| 6 | <description>Builds, tests, and runs the project NhincSAMLCallbackLib.</description>
|
---|
| 7 | <import file="nbproject/build-impl.xml"/>
|
---|
| 8 | <import file="../../../build.lib.xml" />
|
---|
| 9 |
|
---|
| 10 | <target name="build">
|
---|
| 11 | <property name="target-to-call" value="jar" />
|
---|
| 12 | <antcall target="call-target-in-isolation-if-out-of-date" />
|
---|
| 13 | </target>
|
---|
| 14 | <target name="clean-build" depends="clean,jar" />
|
---|
| 15 | <target name="clean-test" depends="clean,jar" />
|
---|
| 16 | <target name="build-test" depends="jar" />
|
---|
| 17 | <!--
|
---|
| 18 |
|
---|
| 19 | There exist several targets which are by default empty and which can be
|
---|
| 20 | used for execution of your tasks. These targets are usually executed
|
---|
| 21 | before and after some main targets. They are:
|
---|
| 22 |
|
---|
| 23 | -pre-init: called before initialization of project properties
|
---|
| 24 | -post-init: called after initialization of project properties
|
---|
| 25 | -pre-compile: called before javac compilation
|
---|
| 26 | -post-compile: called after javac compilation
|
---|
| 27 | -pre-compile-single: called before javac compilation of single file
|
---|
| 28 | -post-compile-single: called after javac compilation of single file
|
---|
| 29 | -pre-compile-test: called before javac compilation of JUnit tests
|
---|
| 30 | -post-compile-test: called after javac compilation of JUnit tests
|
---|
| 31 | -pre-compile-test-single: called before javac compilation of single JUnit test
|
---|
| 32 | -post-compile-test-single: called after javac compilation of single JUunit test
|
---|
| 33 | -pre-jar: called before JAR building
|
---|
| 34 | -post-jar: called after JAR building
|
---|
| 35 | -post-clean: called after cleaning build products
|
---|
| 36 |
|
---|
| 37 | (Targets beginning with '-' are not intended to be called on their own.)
|
---|
| 38 |
|
---|
| 39 | Example of inserting an obfuscator after compilation could look like this:
|
---|
| 40 |
|
---|
| 41 | <target name="-post-compile">
|
---|
| 42 | <obfuscate>
|
---|
| 43 | <fileset dir="${build.classes.dir}"/>
|
---|
| 44 | </obfuscate>
|
---|
| 45 | </target>
|
---|
| 46 |
|
---|
| 47 | For list of available properties check the imported
|
---|
| 48 | nbproject/build-impl.xml file.
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | Another way to customize the build is by overriding existing main targets.
|
---|
| 52 | The targets of interest are:
|
---|
| 53 |
|
---|
| 54 | -init-macrodef-javac: defines macro for javac compilation
|
---|
| 55 | -init-macrodef-junit: defines macro for junit execution
|
---|
| 56 | -init-macrodef-debug: defines macro for class debugging
|
---|
| 57 | -init-macrodef-java: defines macro for class execution
|
---|
| 58 | -do-jar-with-manifest: JAR building (if you are using a manifest)
|
---|
| 59 | -do-jar-without-manifest: JAR building (if you are not using a manifest)
|
---|
| 60 | run: execution of project
|
---|
| 61 | -javadoc-build: Javadoc generation
|
---|
| 62 | test-report: JUnit report generation
|
---|
| 63 |
|
---|
| 64 | An example of overriding the target for project execution could look like this:
|
---|
| 65 |
|
---|
| 66 | <target name="run" depends="NhincSAMLCallbackLib-impl.jar">
|
---|
| 67 | <exec dir="bin" executable="launcher.exe">
|
---|
| 68 | <arg file="${dist.jar}"/>
|
---|
| 69 | </exec>
|
---|
| 70 | </target>
|
---|
| 71 |
|
---|
| 72 | Notice that the overridden target depends on the jar target and not only on
|
---|
| 73 | the compile target as the regular run target does. Again, for a list of available
|
---|
| 74 | properties which you can use, check the target you are overriding in the
|
---|
| 75 | nbproject/build-impl.xml file.
|
---|
| 76 |
|
---|
| 77 | -->
|
---|
| 78 | </project>
|
---|