1.1 --- a/java/sql-dk/build.xml Mon Mar 04 17:06:42 2019 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,102 +0,0 @@
1.4 -<?xml version="1.0" encoding="UTF-8"?>
1.5 -<!--
1.6 - SQL-DK
1.7 - Copyright © 2013 František Kučera (frantovo.cz)
1.8 -
1.9 - This program is free software: you can redistribute it and/or modify
1.10 - it under the terms of the GNU General Public License as published by
1.11 - the Free Software Foundation, either version 3 of the License, or
1.12 - (at your option) any later version.
1.13 -
1.14 - This program is distributed in the hope that it will be useful,
1.15 - but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 - GNU General Public License for more details.
1.18 -
1.19 - You should have received a copy of the GNU General Public License
1.20 - along with this program. If not, see <http://www.gnu.org/licenses/>.
1.21 --->
1.22 -
1.23 -<!-- You may freely edit this file. See commented blocks below for -->
1.24 -<!-- some examples of how to customize the build. -->
1.25 -<!-- (If you delete it and reopen the project it will be recreated.) -->
1.26 -<!-- By default, only the Clean and Build commands use this build script. -->
1.27 -<!-- Commands such as Run, Debug, and Test only use this build script if -->
1.28 -<!-- the Compile on Save feature is turned off for the project. -->
1.29 -<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
1.30 -<!-- in the project's Project Properties dialog box.-->
1.31 -<project name="sql-dk" default="default" basedir=".">
1.32 - <description>Builds, tests, and runs the project sql-dk.</description>
1.33 - <import file="nbproject/build-impl.xml"/>
1.34 - <!--
1.35 -
1.36 - There exist several targets which are by default empty and which can be
1.37 - used for execution of your tasks. These targets are usually executed
1.38 - before and after some main targets. They are:
1.39 -
1.40 - -pre-init: called before initialization of project properties
1.41 - -post-init: called after initialization of project properties
1.42 - -pre-compile: called before javac compilation
1.43 - -post-compile: called after javac compilation
1.44 - -pre-compile-single: called before javac compilation of single file
1.45 - -post-compile-single: called after javac compilation of single file
1.46 - -pre-compile-test: called before javac compilation of JUnit tests
1.47 - -post-compile-test: called after javac compilation of JUnit tests
1.48 - -pre-compile-test-single: called before javac compilation of single JUnit test
1.49 - -post-compile-test-single: called after javac compilation of single JUunit test
1.50 - -pre-jar: called before JAR building
1.51 - -post-jar: called after JAR building
1.52 - -post-clean: called after cleaning build products
1.53 -
1.54 - (Targets beginning with '-' are not intended to be called on their own.)
1.55 -
1.56 - Example of inserting an obfuscator after compilation could look like this:
1.57 -
1.58 - <target name="-post-compile">
1.59 - <obfuscate>
1.60 - <fileset dir="${build.classes.dir}"/>
1.61 - </obfuscate>
1.62 - </target>
1.63 -
1.64 - For list of available properties check the imported
1.65 - nbproject/build-impl.xml file.
1.66 -
1.67 -
1.68 - Another way to customize the build is by overriding existing main targets.
1.69 - The targets of interest are:
1.70 -
1.71 - -init-macrodef-javac: defines macro for javac compilation
1.72 - -init-macrodef-junit: defines macro for junit execution
1.73 - -init-macrodef-debug: defines macro for class debugging
1.74 - -init-macrodef-java: defines macro for class execution
1.75 - -do-jar-with-manifest: JAR building (if you are using a manifest)
1.76 - -do-jar-without-manifest: JAR building (if you are not using a manifest)
1.77 - run: execution of project
1.78 - -javadoc-build: Javadoc generation
1.79 - test-report: JUnit report generation
1.80 -
1.81 - An example of overriding the target for project execution could look like this:
1.82 -
1.83 - <target name="run" depends="sql-dk-impl.jar">
1.84 - <exec dir="bin" executable="launcher.exe">
1.85 - <arg file="${dist.jar}"/>
1.86 - </exec>
1.87 - </target>
1.88 -
1.89 - Notice that the overridden target depends on the jar target and not only on
1.90 - the compile target as the regular run target does. Again, for a list of available
1.91 - properties which you can use, check the target you are overriding in the
1.92 - nbproject/build-impl.xml file.
1.93 -
1.94 - -->
1.95 -
1.96 - <target name="-pre-compile">
1.97 - <exec executable="./version-info.sh" output="data/info/globalcode/sql/dk/version.txt"/>
1.98 - <exec executable="./help-generator.sh" output="data/info/globalcode/sql/dk/help.txt"/>
1.99 - </target>
1.100 -
1.101 - <target name="-post-jar">
1.102 - <exec executable="./bash-completion.sh" output="dist/bash-completion.sh"/>
1.103 - </target>
1.104 -
1.105 -</project>