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