source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Examples/DynamicPolicyExample/NhincProxyCA/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.2 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" />
10 <antcall target="call-target-in-isolation-if-out-of-date" />
11 </target>
12 <target name="clean-build" depends="clean,dist" />
13 <target name="clean-test" depends="clean,dist" />
14 <target name="build-test" depends="dist" />
15 <!--
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
43 Other way how to customize the build is by overriding existing main targets.
44 The target of interest are:
45
46 init-macrodef-javac: defines macro for javac compilation
47 init-macrodef-debug: defines macro for class debugging
48 do-dist: jar archive building
49 run: execution of project
50 javadoc-build: javadoc generation
51
52 Example of overriding the target for project execution could look like
53
54 <target name="run" depends="<PROJNAME>-impl.jar">
55 <exec dir="bin" executable="launcher.exe">
56 <arg file="${dist.jar}"/>
57 </exec>
58 </target>
59
60 Notice that overridden target depends on jar target and not only on
61 compile target as regular run target does. Again, for list of available
62 properties which you can use check the target you are overriding in
63 nbproject/build-impl.xml file.
64
65 -->
66
67 <target name="deps-jar" depends="init" unless="${no.dependencies}">
68 <ant dir="${project.NhincProxyBPEL}" target="dist_se" inheritall="false" antfile="${project.NhincProxyBPEL}/build.xml"/>
69 <property name="NhincProxyBPEL.su.name" value="NhincProxyBPEL"/>
70 <unzip src="${reference.NhincProxyBPEL.dist_se}" dest="${src.dir}/../jbiServiceUnits/${NhincProxyBPEL.su.name}">
71 <patternset>
72 <include name="**/*.wsdl"/>
73 <include name="**/*.WSDL"/>
74 <include name="**/*.xsd"/>
75 <include name="**/*.XSD"/>
76 <include name="META-INF/jbi.xml"/>
77 <include name="META-INF/catalog.xml"/>
78 </patternset>
79 </unzip>
80 <property name="NhincProxyBPEL.su.dir" value="${src.dir}/../jbiServiceUnits/${NhincProxyBPEL.su.name}"/>
81 <move file="${NhincProxyBPEL.su.dir}/META-INF/jbi.xml" todir="${NhincProxyBPEL.su.dir}"/>
82 <move todir="${src.dir}/../jbiServiceUnits/META-INF/${NhincProxyBPEL.su.name}">
83 <fileset dir="${NhincProxyBPEL.su.dir}/META-INF"/>
84 </move>
85 </target>
86 <target name="deps-clean" depends="init" unless="${no.dependencies}">
87 <ant dir="${project.NhincProxyBPEL}" target="clean" inheritall="false" antfile="${project.NhincProxyBPEL}/build.xml"/>
88 </target>
89
90</project>
Note: See TracBrowser for help on using the repository browser.