java/sql-dk/build.xml
author František Kučera <franta-hg@frantovo.cz>
Fri, 10 Jan 2014 23:21:28 +0100
branchv_0
changeset 155 eb3676c6929b
parent 96 7ae30649b30b
permissions -rw-r--r--
more JavaDoc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
83
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     2
<!--
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     3
 SQL-DK
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     4
 Copyright © 2013 František Kučera (frantovo.cz)
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     5
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     6
 This program is free software: you can redistribute it and/or modify
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     7
 it under the terms of the GNU General Public License as published by
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     8
 the Free Software Foundation, either version 3 of the License, or
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
     9
 (at your option) any later version.
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    10
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    11
 This program is distributed in the hope that it will be useful,
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    12
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    13
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    14
 GNU General Public License for more details.
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    15
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    16
 You should have received a copy of the GNU General Public License
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    17
 along with this program. If not, see <http://www.gnu.org/licenses/>.
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    18
-->
9563232ea0b7 bash completion: license
František Kučera <franta-hg@frantovo.cz>
parents: 81
diff changeset
    19
0
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
<!-- You may freely edit this file. See commented blocks below for -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
<!-- some examples of how to customize the build. -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
<!-- (If you delete it and reopen the project it will be recreated.) -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
<!-- By default, only the Clean and Build commands use this build script. -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
<!-- Commands such as Run, Debug, and Test only use this build script if -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
<!-- the Compile on Save feature is turned off for the project. -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
<!-- in the project's Project Properties dialog box.-->
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
<project name="sql-dk" default="default" basedir=".">
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
    <description>Builds, tests, and runs the project sql-dk.</description>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
    <import file="nbproject/build-impl.xml"/>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
    <!--
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
    There exist several targets which are by default empty and which can be 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
    used for execution of your tasks. These targets are usually executed 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
    before and after some main targets. They are: 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
      -pre-init:                 called before initialization of project properties
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
      -post-init:                called after initialization of project properties
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
      -pre-compile:              called before javac compilation
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
      -post-compile:             called after javac compilation
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
      -pre-compile-single:       called before javac compilation of single file
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
      -post-compile-single:      called after javac compilation of single file
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
      -pre-compile-test:         called before javac compilation of JUnit tests
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    44
      -post-compile-test:        called after javac compilation of JUnit tests
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
      -pre-compile-test-single:  called before javac compilation of single JUnit test
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
      -post-compile-test-single: called after javac compilation of single JUunit test
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
      -pre-jar:                  called before JAR building
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    48
      -post-jar:                 called after JAR building
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
      -post-clean:               called after cleaning build products
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    50
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    51
    (Targets beginning with '-' are not intended to be called on their own.)
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    52
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    53
    Example of inserting an obfuscator after compilation could look like this:
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    54
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    55
        <target name="-post-compile">
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    56
            <obfuscate>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    57
                <fileset dir="${build.classes.dir}"/>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    58
            </obfuscate>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    59
        </target>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    60
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    61
    For list of available properties check the imported 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    62
    nbproject/build-impl.xml file. 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    63
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    64
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    65
    Another way to customize the build is by overriding existing main targets.
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    66
    The targets of interest are: 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    67
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    68
      -init-macrodef-javac:     defines macro for javac compilation
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    69
      -init-macrodef-junit:     defines macro for junit execution
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    70
      -init-macrodef-debug:     defines macro for class debugging
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    71
      -init-macrodef-java:      defines macro for class execution
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    72
      -do-jar-with-manifest:    JAR building (if you are using a manifest)
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    73
      -do-jar-without-manifest: JAR building (if you are not using a manifest)
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    74
      run:                      execution of project 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    75
      -javadoc-build:           Javadoc generation
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    76
      test-report:              JUnit report generation
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    77
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    78
    An example of overriding the target for project execution could look like this:
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    79
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    80
        <target name="run" depends="sql-dk-impl.jar">
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    81
            <exec dir="bin" executable="launcher.exe">
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    82
                <arg file="${dist.jar}"/>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    83
            </exec>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    84
        </target>
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    85
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    86
    Notice that the overridden target depends on the jar target and not only on 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    87
    the compile target as the regular run target does. Again, for a list of available 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    88
    properties which you can use, check the target you are overriding in the
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    89
    nbproject/build-impl.xml file. 
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    90
18
7900bb1666f6 version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    91
	-->
7900bb1666f6 version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    92
	
7900bb1666f6 version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    93
	<target name="-pre-compile">
7900bb1666f6 version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    94
		<exec executable="./version-info.sh" output="data/info/globalcode/sql/dk/version.txt"/>
96
7ae30649b30b basic generated help
František Kučera <franta-hg@frantovo.cz>
parents: 83
diff changeset
    95
		<exec executable="./help-generator.sh" output="data/info/globalcode/sql/dk/help.txt"/>
18
7900bb1666f6 version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    96
	</target>
7900bb1666f6 version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    97
	
81
847c83288d01 bash completion: perl + bash + ant for generating completion script
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
    98
	<target name="-post-jar">
847c83288d01 bash completion: perl + bash + ant for generating completion script
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
    99
		<exec executable="./bash-completion.sh" output="dist/bash-completion.sh"/>
847c83288d01 bash completion: perl + bash + ant for generating completion script
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
   100
	</target>
847c83288d01 bash completion: perl + bash + ant for generating completion script
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
   101
	
0
29df3b2e34df empty netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   102
</project>