Statistics
| Branch: | Revision:

root / java / gssclient / build.xml @ 18:7a2e7c4355bf

History | View | Annotate | Download (3.6 kB)

1 8:10e6c9a56ace louridas
<?xml version="1.0" encoding="UTF-8"?>
2 8:10e6c9a56ace louridas
<!-- You may freely edit this file. See commented blocks below for -->
3 8:10e6c9a56ace louridas
<!-- some examples of how to customize the build. -->
4 8:10e6c9a56ace louridas
<!-- (If you delete it and reopen the project it will be recreated.) -->
5 8:10e6c9a56ace louridas
<!-- By default, only the Clean and Build commands use this build script. -->
6 8:10e6c9a56ace louridas
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7 8:10e6c9a56ace louridas
<!-- the Compile on Save feature is turned off for the project. -->
8 8:10e6c9a56ace louridas
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9 8:10e6c9a56ace louridas
<!-- in the project's Project Properties dialog box.-->
10 8:10e6c9a56ace louridas
<project name="gssclient" default="default" basedir=".">
11 8:10e6c9a56ace louridas
    <description>Builds, tests, and runs the project gssclient.</description>
12 8:10e6c9a56ace louridas
    <import file="nbproject/build-impl.xml"/>
13 8:10e6c9a56ace louridas
    <!--
14 8:10e6c9a56ace louridas

15 8:10e6c9a56ace louridas
    There exist several targets which are by default empty and which can be
16 8:10e6c9a56ace louridas
    used for execution of your tasks. These targets are usually executed
17 8:10e6c9a56ace louridas
    before and after some main targets. They are:
18 8:10e6c9a56ace louridas

19 8:10e6c9a56ace louridas
      -pre-init:                 called before initialization of project properties
20 8:10e6c9a56ace louridas
      -post-init:                called after initialization of project properties
21 8:10e6c9a56ace louridas
      -pre-compile:              called before javac compilation
22 8:10e6c9a56ace louridas
      -post-compile:             called after javac compilation
23 8:10e6c9a56ace louridas
      -pre-compile-single:       called before javac compilation of single file
24 8:10e6c9a56ace louridas
      -post-compile-single:      called after javac compilation of single file
25 8:10e6c9a56ace louridas
      -pre-compile-test:         called before javac compilation of JUnit tests
26 8:10e6c9a56ace louridas
      -post-compile-test:        called after javac compilation of JUnit tests
27 8:10e6c9a56ace louridas
      -pre-compile-test-single:  called before javac compilation of single JUnit test
28 8:10e6c9a56ace louridas
      -post-compile-test-single: called after javac compilation of single JUunit test
29 8:10e6c9a56ace louridas
      -pre-jar:                  called before JAR building
30 8:10e6c9a56ace louridas
      -post-jar:                 called after JAR building
31 8:10e6c9a56ace louridas
      -post-clean:               called after cleaning build products
32 8:10e6c9a56ace louridas

33 8:10e6c9a56ace louridas
    (Targets beginning with '-' are not intended to be called on their own.)
34 8:10e6c9a56ace louridas

35 8:10e6c9a56ace louridas
    Example of inserting an obfuscator after compilation could look like this:
36 8:10e6c9a56ace louridas

37 8:10e6c9a56ace louridas
        <target name="-post-compile">
38 8:10e6c9a56ace louridas
            <obfuscate>
39 8:10e6c9a56ace louridas
                <fileset dir="${build.classes.dir}"/>
40 8:10e6c9a56ace louridas
            </obfuscate>
41 8:10e6c9a56ace louridas
        </target>
42 8:10e6c9a56ace louridas

43 8:10e6c9a56ace louridas
    For list of available properties check the imported
44 8:10e6c9a56ace louridas
    nbproject/build-impl.xml file.
45 8:10e6c9a56ace louridas

46 8:10e6c9a56ace louridas

47 8:10e6c9a56ace louridas
    Another way to customize the build is by overriding existing main targets.
48 8:10e6c9a56ace louridas
    The targets of interest are:
49 8:10e6c9a56ace louridas

50 8:10e6c9a56ace louridas
      -init-macrodef-javac:     defines macro for javac compilation
51 8:10e6c9a56ace louridas
      -init-macrodef-junit:     defines macro for junit execution
52 8:10e6c9a56ace louridas
      -init-macrodef-debug:     defines macro for class debugging
53 8:10e6c9a56ace louridas
      -init-macrodef-java:      defines macro for class execution
54 8:10e6c9a56ace louridas
      -do-jar-with-manifest:    JAR building (if you are using a manifest)
55 8:10e6c9a56ace louridas
      -do-jar-without-manifest: JAR building (if you are not using a manifest)
56 8:10e6c9a56ace louridas
      run:                      execution of project
57 8:10e6c9a56ace louridas
      -javadoc-build:           Javadoc generation
58 8:10e6c9a56ace louridas
      test-report:              JUnit report generation
59 8:10e6c9a56ace louridas

60 8:10e6c9a56ace louridas
    An example of overriding the target for project execution could look like this:
61 8:10e6c9a56ace louridas

62 8:10e6c9a56ace louridas
        <target name="run" depends="gssclient-impl.jar">
63 8:10e6c9a56ace louridas
            <exec dir="bin" executable="launcher.exe">
64 8:10e6c9a56ace louridas
                <arg file="${dist.jar}"/>
65 8:10e6c9a56ace louridas
            </exec>
66 8:10e6c9a56ace louridas
        </target>
67 8:10e6c9a56ace louridas

68 8:10e6c9a56ace louridas
    Notice that the overridden target depends on the jar target and not only on
69 8:10e6c9a56ace louridas
    the compile target as the regular run target does. Again, for a list of available
70 8:10e6c9a56ace louridas
    properties which you can use, check the target you are overriding in the
71 8:10e6c9a56ace louridas
    nbproject/build-impl.xml file.
72 8:10e6c9a56ace louridas

73 8:10e6c9a56ace louridas
    -->
74 8:10e6c9a56ace louridas
</project>