source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Examples/DynamicPolicyExample/Interfaces/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: 3.6 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="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
6 <description>Builds, tests, and runs the project .</description>
7 <import file="nbproject/build-impl.xml"/>
8 <target name="build">
9 <property name="target-to-call" value="dist_se" />
10 <antcall target="call-target-in-isolation-if-out-of-date" />
11 </target>
12 <target name="clean-build" depends="clean,dist_se" />
13 <target name="clean-test" depends="clean,dist_se" />
14 <target name="build-test" depends="dist_se" />
15 <!--
16 There exist several targets which are by default empty and which can be
17 used for execution of your tasks. These targets are usually executed
18 before and after some main targets. They are:
19
20 -pre-init called before initialization of project properties
21 -post-init called after initialization of project properties
22 -pre-compile called before javac compilation
23 -post-compile called after javac compilation
24 -pre-compile-single called before javac compilation of single file
25 -post-compile-single called after javac compilation of single file
26 -pre-dist called before jar building
27 -post-dist called after jar building
28 -post-clean called after cleaning build products
29
30 Example of pluging an obfuscator after the compilation could look like
31
32 <target name="post-compile">
33 <obfuscate>
34 <fileset dir="${build.classes.dir}"/>
35 </obfuscate>
36 </target>
37
38 For list of available properties check the imported
39 nbproject/build-impl.xml file.
40
41 Other way how to customize the build is by overriding existing main targets.
42 The target of interest are:
43
44 init-macrodef-javac defines macro for javac compilation
45 init-macrodef-debug defines macro for class debugging
46 do-dist jar archive building
47 run execution of project
48 javadoc-build javadoc generation
49
50 Example of overriding the target for project execution could look like
51
52 <target name="run" depends="<PROJNAME>-impl.jar">
53 <exec dir="bin" executable="launcher.exe">
54 <arg file="${dist.jar}"/>
55 </exec>
56 </target>
57
58 Notice that overridden target depends on jar target and not only on
59 compile target as regular run target does. Again, for list of available
60 properties which you can use check the target you are overriding in
61 nbproject/build-impl.xml file.
62 -->
63 <!--
64 <target name="-check-netbeans-home">
65 <condition property="no.netbeans.home">
66 <not>
67 <isset property="netbeans.home"/>
68 </not>
69 </condition>
70 </target>
71 <target name="-init-caps" if="no.netbeans.home">
72 <property file="../../../build.properties" />
73 <property file="${basedir}/nbproject/private/private.properties"/>
74 <property name="netbeans.home" value="${caps.netbeans.home}/platform8"/>
75 <property name="netbeans.user" value="${caps.netbeans.user}"/>
76 <property name="from.commandline" value="true"/>
77 </target>
78 <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/>
79 -->
80</project>
Note: See TracBrowser for help on using the repository browser.