build.xml

Sat, 30 Dec 2017 20:35:23 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 Dec 2017 20:35:23 +0100
changeset 16
4e0998805276
parent 0
ad22b29e3a40
permissions
-rw-r--r--

adds DatabaseFacade

0
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 <!-- You may freely edit this file. See commented blocks below for -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 <!-- some examples of how to customize the build. -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 <!-- (If you delete it and reopen the project it will be recreated.) -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 <!-- By default, only the Clean and Build commands use this build script. -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 <!-- Commands such as Run, Debug, and Test only use this build script if -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 <!-- the Compile on Save feature is turned off for the project. -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 <!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 <!-- in the project's Project Properties dialog box.-->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 <project name="LightPIT" default="default" basedir=".">
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 <description>Builds, tests, and runs the project LightPIT.</description>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 <import file="nbproject/build-impl.xml"/>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 <!--
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 There exist several targets which are by default empty and which can be
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 used for execution of your tasks. These targets are usually executed
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 before and after some main targets. They are:
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 -pre-init: called before initialization of project properties
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 -post-init: called after initialization of project properties
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 -pre-compile: called before javac compilation
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 -post-compile: called after javac compilation
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 -pre-compile-single: called before javac compilation of single file
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 -post-compile-single: called after javac compilation of single file
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 -pre-compile-test: called before javac compilation of JUnit tests
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 -post-compile-test: called after javac compilation of JUnit tests
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 -pre-compile-test-single: called before javac compilation of single JUnit test
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 -post-compile-test-single: called after javac compilation of single JUunit test
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 -pre-dist: called before archive building
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 -post-dist: called after archive building
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 -post-clean: called after cleaning build products
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 -pre-run-deploy: called before deploying
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 -post-run-deploy: called after deploying
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 Example of pluging an obfuscator after the compilation could look like
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 <target name="-post-compile">
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 <obfuscate>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 <fileset dir="${build.classes.dir}"/>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 </obfuscate>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 </target>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 For list of available properties check the imported
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 nbproject/build-impl.xml file.
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 Other way how to customize the build is by overriding existing main targets.
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 The target of interest are:
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 init-macrodef-javac: defines macro for javac compilation
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 init-macrodef-junit: defines macro for junit execution
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 init-macrodef-debug: defines macro for class debugging
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 do-dist: archive building
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 run: execution of project
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 javadoc-build: javadoc generation
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
57 Example of overriding the target for project execution could look like
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59 <target name="run" depends="<PROJNAME>-impl.jar">
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60 <exec dir="bin" executable="launcher.exe">
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 <arg file="${dist.jar}"/>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 </exec>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 </target>
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 Notice that overridden target depends on jar target and not only on
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66 compile target as regular run target does. Again, for list of available
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67 properties which you can use check the target you are overriding in
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 nbproject/build-impl.xml file.
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 -->
ad22b29e3a40 project initialization
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71 </project>

mercurial