source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Examples/JAXBBindingExample/JAXBBindingEJB/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.8 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="JAXBBindingEJB" default="default" basedir="."
6 xmlns:ejbjarproject="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
7<!-- xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2"> -->
8 <description>Builds, tests, and runs the project JAXBBindingEJB.</description>
9 <import file="nbproject/build-impl.xml"/>
10 <!--
11
12 There exist several targets which are by default empty and which can be
13 used for execution of your tasks. These targets are usually executed
14 before and after some main targets. They are:
15
16 -pre-init: called before initialization of project properties
17 -post-init: called after initialization of project properties
18 -pre-compile: called before javac compilation
19 -post-compile: called after javac compilation
20 -pre-compile-single: called before javac compilation of single file
21 -post-compile-single: called after javac compilation of single file
22 -pre-dist: called before archive building
23 -post-dist: called after archive building
24 -post-clean: called after cleaning build products
25 -pre-run-deploy: called before deploying
26 -post-run-deploy: called after deploying
27
28 (Targets beginning with '-' are not intended to be called on their own.)
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
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: 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
66 <target name="wsimport-service-PropertyAccessor" depends="wsimport-init,wsimport-service-check-PropertyAccessor" unless="wsimport-service-PropertyAccessor.notRequired">
67 <wsimport xendorsed="true" sourcedestdir="${build.generated.dir}/wsimport/service" extension="true" verbose="true" destdir="${build.generated.dir}/wsimport/binaries" wsdl="${basedir}/${meta.inf}/xml-resources/web-services/PropertyAccessor/wsdl/NhincComponentPropAccessor.wsdl" catalog="catalog.xml"/>
68
69 <!-- Try to delete the artifacts that we do not want -->
70 <echo message="XXXXXX Deleting directory ${build.generated.dir}/wsimport/service/gov/hhs/fha/nhinc/common" />
71 <delete dir="${build.generated.dir}/wsimport/service/gov/hhs/fha/nhinc/common" />
72 <echo message="XXXXXX Done deleting directory ${build.generated.dir}/wsimport/service/gov/hhs/fha/nhinc/common" />
73 <!-- end of custom code -->
74
75
76 <copy todir="${basedir}/${meta.inf}/wsdl/PropertyAccessor">
77 <fileset dir="${basedir}/${meta.inf}/xml-resources/web-services/PropertyAccessor/wsdl/"/>
78 </copy>
79
80 <echo message="copy schemas" />
81 <copy todir="${basedir}/${meta.inf}/wsdl/schemas/">
82 <fileset dir="${basedir}/${meta.inf}/xml-resources/web-services/PropertyAccessor/schemas/" />
83 </copy>
84 </target>
85
86 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
87 <ant dir="${project.JAXBBindingLib}" antfile="build.xml" inheritall="false" target="jar"/>
88 </target>
89 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
90 <ant dir="${project.JAXBBindingLib}" antfile="build.xml" inheritall="false" target="jar"/>
91 </target>
92
93 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
94 <ant dir="${project.JAXBBindingLib}" antfile="build.xml" inheritall="false" target="clean"/>
95 </target>
96
97 <!-- Targets to remove the JAXB stuff -->
98
99 <!--
100 <target depends="init,deps-jar" name="-pre-pre-compile">
101 <mkdir dir="${build.classes.dir}"/>
102 <mkdir dir="${build.ear.classes.dir}"/>
103 </target>
104
105 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
106 <ejbjarproject2:javac destdir="${classes.dir}"/>
107 <copy todir="${classes.dir}">
108 <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
109 </copy>
110 </target>
111
112 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
113 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
114 <ejbjarproject2:javac>
115 <customize>
116 <include name="${javac.includes}"/>
117 </customize>
118 </ejbjarproject2:javac>
119 </target>
120 -->
121</project>
Note: See TracBrowser for help on using the repository browser.