source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/DocumentRepositoryCA/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: 5.0 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" />
11 <antcall target="call-target-in-isolation-if-out-of-date" />
12 </target>
13 <target name="clean-build" depends="clean,dist" />
14 <target name="clean-test" depends="clean,dist" />
15 <target name="build-test" depends="dist" />
16 <!--
17
18 There exist several targets which are by default empty and which can be
19 used for execution of your tasks. These targets are usually executed
20 before and after some main targets. They are:
21
22 pre-init: called before initialization of project properties
23 post-init: called after initialization of project properties
24 pre-compile: called before javac compilation
25 post-compile: called after javac compilation
26 pre-compile-single: called before javac compilation of single file
27 post-compile-single: called after javac compilation of single file
28 pre-dist: called before jar building
29 post-dist: called after jar building
30 post-clean: called after cleaning build products
31
32 Example of pluging an obfuscator after the compilation could look like
33
34 <target name="post-compile">
35 <obfuscate>
36 <fileset dir="${build.classes.dir}"/>
37 </obfuscate>
38 </target>
39
40 For list of available properties check the imported
41 nbproject/build-impl.xml file.
42
43
44 Other way how to customize the build is by overriding existing main targets.
45 The target of interest are:
46
47 init-macrodef-javac: defines macro for javac compilation
48 init-macrodef-debug: defines macro for class debugging
49 do-dist: jar archive building
50 run: execution of project
51 javadoc-build: javadoc generation
52
53 Example of overriding the target for project execution could look like
54
55 <target name="run" depends="<PROJNAME>-impl.jar">
56 <exec dir="bin" executable="launcher.exe">
57 <arg file="${dist.jar}"/>
58 </exec>
59 </target>
60
61 Notice that overridden target depends on jar target and not only on
62 compile target as regular run target does. Again, for list of available
63 properties which you can use check the target you are overriding in
64 nbproject/build-impl.xml file.
65
66 -->
67
68 <target name="-check-catd-context">
69 <condition property="no.catd.context">
70 <not>
71 <isset property="org.netbeans.modules.compapp.catd.context"/>
72 </not>
73 </condition>
74 </target>
75 <target name="-init-catd" if="no.catd.context">
76 <property name="org.netbeans.modules.compapp.catd.context" value=""/>
77 </target>
78 <target name="pre-init" depends="-check-catd-context,-init-catd"/>
79
80 <target name="deps-javaee-jar" depends="init" unless="${no.dependencies}">
81 <ant dir="${project.DocumentRepositoryEJB}" target="dist" inheritall="false" antfile="${project.DocumentRepositoryEJB}/build.xml"/>
82 <basename property="DocumentRepositoryEJB.su.name" file="${project.DocumentRepositoryEJB}"/>
83 <property name="DocumentRepositoryEJB.su.dir" value="${src.dir}/../jbiServiceUnits/${DocumentRepositoryEJB.su.name}"/>
84 <unzip src="${reference.DocumentRepositoryEJB.dist}" dest="${src.dir}/../jbiServiceUnits/${DocumentRepositoryEJB.su.name}">
85 <patternset>
86 <include name="**/*.wsdl"/>
87 <include name="**/*.WSDL"/>
88 <include name="**/*.xsd"/>
89 <include name="**/*.XSD"/>
90 <include name="META-INF/jbi.xml"/>
91 </patternset>
92 </unzip>
93 <unzip src="${reference.DocumentRepositoryEJB.dist}" dest="${src.dir}/../jbiServiceUnits/META-INF/DocumentRepositoryEJB">
94 <patternset>
95 <include name="META-INF/catalog.xml"/>
96 </patternset>
97 </unzip>
98 <jbi-javaee-dist projectName="DocumentRepositoryEJB" subprojJar="${reference.DocumentRepositoryEJB.dist}" subprojDir="${project.DocumentRepositoryEJB}" suExtractDir="${DocumentRepositoryEJB.su.dir}" subprojResource="${resource.DocumentRepositoryEJB}"/>
99 </target>
100
101 <target name="deps-clean" depends="init" unless="${no.dependencies}">
102 <ant dir="${project.DocumentRepositoryEJB}" target="clean" inheritall="false" antfile="${project.DocumentRepositoryEJB}/build.xml"/>
103 </target>
104</project>
Note: See TracBrowser for help on using the repository browser.