aboutsummaryrefslogtreecommitdiff
path: root/build-reader.xml
diff options
context:
space:
mode:
authorJ08nY2017-11-12 13:49:54 +0100
committerJ08nY2017-11-12 13:54:11 +0100
commita45fa0d3cde29728a252c2ca5b7ed4f3e6c87849 (patch)
treebe5a22f4d30d36dc2f36c98bd4d209d96579c696 /build-reader.xml
parenta2f5316ad96b6e78844c371f8dd5483095cf4af3 (diff)
downloadECTester-a45fa0d3cde29728a252c2ca5b7ed4f3e6c87849.tar.gz
ECTester-a45fa0d3cde29728a252c2ca5b7ed4f3e6c87849.tar.zst
ECTester-a45fa0d3cde29728a252c2ca5b7ed4f3e6c87849.zip
Separate build files for standalone and reader apps.
Diffstat (limited to 'build-reader.xml')
-rw-r--r--build-reader.xml82
1 files changed, 82 insertions, 0 deletions
diff --git a/build-reader.xml b/build-reader.xml
new file mode 100644
index 0000000..ec62f6f
--- /dev/null
+++ b/build-reader.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<!-- By default, only the Clean and Build commands use this build script. -->
+<!-- Commands such as Run, Debug, and Test only use this build script if -->
+<!-- the Compile on Save feature is turned off for the project. -->
+<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
+<!-- in the project's Project Properties dialog box.-->
+<project name="ECTesterReader" default="default" basedir=".">
+ <description>Builds, tests, and runs the project ECTesterReader.</description>
+ <import file="nbproject/reader/build-impl.xml"/>
+ <import file="nbproject/dist-build.xml"/>
+ <!--
+
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ -pre-init: called before initialization of project properties
+ -post-init: called after initialization of project properties
+ -pre-compile: called before javac compilation
+ -post-compile: called after javac compilation
+ -pre-compile-single: called before javac compilation of single file
+ -post-compile-single: called after javac compilation of single file
+ -pre-compile-test: called before javac compilation of JUnit tests
+ -post-compile-test: called after javac compilation of JUnit tests
+ -pre-compile-test-single: called before javac compilation of single JUnit test
+ -post-compile-test-single: called after javac compilation of single JUunit test
+ -pre-jar: called before JAR building
+ -post-jar: called after JAR building
+ -post-clean: called after cleaning build products
+
+ (Targets beginning with '-' are not intended to be called on their own.)
+
+ Example of inserting an obfuscator after compilation could look like this:
+
+ <target name="-post-compile">
+ <obfuscate>
+ <fileset dir="${build.classes.dir}"/>
+ </obfuscate>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+
+ Another way to customize the build is by overriding existing main targets.
+ The targets of interest are:
+
+ -init-macrodef-javac: defines macro for javac compilation
+ -init-macrodef-junit: defines macro for junit execution
+ -init-macrodef-debug: defines macro for class debugging
+ -init-macrodef-java: defines macro for class execution
+ -do-jar: JAR building
+ run: execution of project
+ -javadoc-build: Javadoc generation
+ test-report: JUnit report generation
+
+ An example of overriding the target for project execution could look like this:
+
+ <target name="run" depends="SimpleECC-impl.jar">
+ <exec dir="bin" executable="launcher.exe">
+ <arg file="${dist.jar}"/>
+ </exec>
+ </target>
+
+ Notice that the overridden target depends on the jar target and not only on
+ the compile target as the regular run target does. Again, for a list of available
+ properties which you can use, check the target you are overriding in the
+ nbproject/build-impl.xml file.
+
+ -->
+ <target name="-post-jar">
+ <copy file="src/cz/crcs/ectester/scripts/ectester-reader.sh" todir="${dist.dir}"/>
+ <copy file="src/cz/crcs/ectester/scripts/ectester-reader.bat" todir="${dist.dir}"/>
+ </target>
+ <target name="package" depends="jar">
+ <property name="store.jar.name" value="ECTesterReader-dist"/>
+ <antcall target="dist-build.package"/>
+ </target>
+</project>