source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/NhincSamlTokenExtractionLib/build.xml@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- You may freely edit this file. See commented blocks below for -->
3<!-- some examples of how to customize the build. -->
4<!-- (If you delete it and reopen the project it will be recreated.) -->
5<project name="NhincSamlTokenExtractionLib" default="default" basedir=".">
6 <description>Builds, tests, and runs the project NhincSamlTokenExtractionLib.</description>
7 <import file="nbproject/build-impl.xml"/>
8 <import file="../../../build.lib.xml" />
9
10 <target name="build">
11 <property name="target-to-call" value="jar" />
12 <antcall target="call-target-in-isolation-if-out-of-date" />
13 </target>
14 <target name="clean-build" depends="clean,jar" />
15 <target name="clean-test" depends="clean,jar" />
16 <target name="build-test" depends="jar" />
17
18 <!--
19
20 There exist several targets which are by default empty and which can be
21 used for execution of your tasks. These targets are usually executed
22 before and after some main targets. They are:
23
24 -pre-init: called before initialization of project properties
25 -post-init: called after initialization of project properties
26 -pre-compile: called before javac compilation
27 -post-compile: called after javac compilation
28 -pre-compile-single: called before javac compilation of single file
29 -post-compile-single: called after javac compilation of single file
30 -pre-compile-test: called before javac compilation of JUnit tests
31 -post-compile-test: called after javac compilation of JUnit tests
32 -pre-compile-test-single: called before javac compilation of single JUnit test
33 -post-compile-test-single: called after javac compilation of single JUunit test
34 -pre-jar: called before JAR building
35 -post-jar: called after JAR building
36 -post-clean: called after cleaning build products
37
38 (Targets beginning with '-' are not intended to be called on their own.)
39
40 Example of inserting an obfuscator after compilation could look like this:
41
42 <target name="-post-compile">
43 <obfuscate>
44 <fileset dir="${build.classes.dir}"/>
45 </obfuscate>
46 </target>
47
48 For list of available properties check the imported
49 nbproject/build-impl.xml file.
50
51
52 Another way to customize the build is by overriding existing main targets.
53 The targets of interest are:
54
55 -init-macrodef-javac: defines macro for javac compilation
56 -init-macrodef-junit: defines macro for junit execution
57 -init-macrodef-debug: defines macro for class debugging
58 -init-macrodef-java: defines macro for class execution
59 -do-jar-with-manifest: JAR building (if you are using a manifest)
60 -do-jar-without-manifest: JAR building (if you are not using a manifest)
61 run: execution of project
62 -javadoc-build: Javadoc generation
63 test-report: JUnit report generation
64
65 An example of overriding the target for project execution could look like this:
66
67 <target name="run" depends="NhincSamlTokenExtractionLib-impl.jar">
68 <exec dir="bin" executable="launcher.exe">
69 <arg file="${dist.jar}"/>
70 </exec>
71 </target>
72
73 Notice that the overridden target depends on the jar target and not only on
74 the compile target as the regular run target does. Again, for a list of available
75 properties which you can use, check the target you are overriding in the
76 nbproject/build-impl.xml file.
77
78 -->
79 <target depends="init" name="deps-jar" unless="no.deps">
80 <property name="project.NhincHL7JaxbLib.Absolute" location="${project.NhincHL7JaxbLib}"/>
81 <property name="project.NhincLib.Absolute" location="${project.NhincLib}"/>
82
83 <ant dir="${project.NhincLib.Absolute}" antfile="${project.NhincLib.Absolute}/build.xml" inheritall="false" target="jar"/>
84 </target>
85 <target depends="init" name="deps-clean" unless="no.deps">
86 <property name="project.NhincHL7JaxbLib.Absolute" location="${project.NhincHL7JaxbLib}"/>
87 <property name="project.NhincLib.Absolute" location="${project.NhincLib}"/>
88
89 <ant dir="${project.NhincLib.Absolute}" antfile="${project.NhincLib.Absolute}/build.xml" inheritall="false" target="clean"/>
90 </target>
91</project>
Note: See TracBrowser for help on using the repository browser.