samples/aserverinfo/build.xml
changeset 90 30a0c70c6579
child 292 60bb8519cb2d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/aserverinfo/build.xml	Sat Jun 14 09:53:51 2008 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!-- You may freely edit this file. See commented blocks below for -->
     1.6 +<!-- some examples of how to customize the build. -->
     1.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     1.8 +<project name="aserverinfo" default="default" basedir=".">
     1.9 +    <description>Builds, tests, and runs the project aserverinfo.</description>
    1.10 +    <import file="nbproject/build-impl.xml"/>
    1.11 +    <!--
    1.12 +
    1.13 +    There exist several targets which are by default empty and which can be 
    1.14 +    used for execution of your tasks. These targets are usually executed 
    1.15 +    before and after some main targets. They are: 
    1.16 +
    1.17 +      -pre-init:                 called before initialization of project properties
    1.18 +      -post-init:                called after initialization of project properties
    1.19 +      -pre-compile:              called before javac compilation
    1.20 +      -post-compile:             called after javac compilation
    1.21 +      -pre-compile-single:       called before javac compilation of single file
    1.22 +      -post-compile-single:      called after javac compilation of single file
    1.23 +      -pre-compile-test:         called before javac compilation of JUnit tests
    1.24 +      -post-compile-test:        called after javac compilation of JUnit tests
    1.25 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
    1.26 +      -post-compile-test-single: called after javac compilation of single JUunit test
    1.27 +      -pre-jar:                  called before JAR building
    1.28 +      -post-jar:                 called after JAR building
    1.29 +      -post-clean:               called after cleaning build products
    1.30 +
    1.31 +    (Targets beginning with '-' are not intended to be called on their own.)
    1.32 +
    1.33 +    Example of inserting an obfuscator after compilation could look like this:
    1.34 +
    1.35 +        <target name="-post-compile">
    1.36 +            <obfuscate>
    1.37 +                <fileset dir="${build.classes.dir}"/>
    1.38 +            </obfuscate>
    1.39 +        </target>
    1.40 +
    1.41 +    For list of available properties check the imported 
    1.42 +    nbproject/build-impl.xml file. 
    1.43 +
    1.44 +
    1.45 +    Another way to customize the build is by overriding existing main targets.
    1.46 +    The targets of interest are: 
    1.47 +
    1.48 +      -init-macrodef-javac:     defines macro for javac compilation
    1.49 +      -init-macrodef-junit:     defines macro for junit execution
    1.50 +      -init-macrodef-debug:     defines macro for class debugging
    1.51 +      -init-macrodef-java:      defines macro for class execution
    1.52 +      -do-jar-with-manifest:    JAR building (if you are using a manifest)
    1.53 +      -do-jar-without-manifest: JAR building (if you are not using a manifest)
    1.54 +      run:                      execution of project 
    1.55 +      -javadoc-build:           Javadoc generation
    1.56 +      test-report:              JUnit report generation
    1.57 +
    1.58 +    An example of overriding the target for project execution could look like this:
    1.59 +
    1.60 +        <target name="run" depends="aserverinfo-impl.jar">
    1.61 +            <exec dir="bin" executable="launcher.exe">
    1.62 +                <arg file="${dist.jar}"/>
    1.63 +            </exec>
    1.64 +        </target>
    1.65 +
    1.66 +    Notice that the overridden target depends on the jar target and not only on 
    1.67 +    the compile target as the regular run target does. Again, for a list of available 
    1.68 +    properties which you can use, check the target you are overriding in the
    1.69 +    nbproject/build-impl.xml file. 
    1.70 +
    1.71 +    -->
    1.72 +</project>