source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Examples/WSDLClientFileIssue_OldESB/SampleService1EJB/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="SampleService1EJB" default="default" basedir="." xmlns:ejbjarproject="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
6 <description>Builds, tests, and runs the project SampleService1EJB.</description>
7 <import file="nbproject/build-impl.xml"/>
8 <!--
9
10 There exist several targets which are by default empty and which can be
11 used for execution of your tasks. These targets are usually executed
12 before and after some main targets. They are:
13
14 -pre-init: called before initialization of project properties
15 -post-init: called after initialization of project properties
16 -pre-compile: called before javac compilation
17 -post-compile: called after javac compilation
18 -pre-compile-single: called before javac compilation of single file
19 -post-compile-single: called after javac compilation of single file
20 -pre-dist: called before archive building
21 -post-dist: called after archive building
22 -post-clean: called after cleaning build products
23 -pre-run-deploy: called before deploying
24 -post-run-deploy: called after deploying
25
26 (Targets beginning with '-' are not intended to be called on their own.)
27
28 Example of pluging an obfuscator after the compilation could look like
29
30 <target name="-post-compile">
31 <obfuscate>
32 <fileset dir="${build.classes.dir}"/>
33 </obfuscate>
34 </target>
35
36 For list of available properties check the imported
37 nbproject/build-impl.xml file.
38
39
40 Other way how to customize the build is by overriding existing main targets.
41 The target of interest are:
42
43 init-macrodef-javac: defines macro for javac compilation
44 init-macrodef-debug: defines macro for class debugging
45 do-dist: archive building
46 run: execution of project
47 javadoc-build: javadoc generation
48
49 Example of overriding the target for project execution could look like
50
51 <target name="run" depends="<PROJNAME>-impl.jar">
52 <exec dir="bin" executable="launcher.exe">
53 <arg file="${dist.jar}"/>
54 </exec>
55 </target>
56
57 Notice that overridden target depends on jar target and not only on
58 compile target as regular run target does. Again, for list of available
59 properties which you can use check the target you are overriding in
60 nbproject/build-impl.xml file.
61
62 -->
63
64 <target name="wsimport-service-SampleService" depends="wsimport-init,wsimport-service-check-SampleService" unless="wsimport-service-SampleService.notRequired">
65 <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/SampleService/wsdl/SampleService.wsdl" catalog="catalog.xml"/>
66 <copy todir="${basedir}/${meta.inf}/wsdl/SampleService">
67 <fileset dir="${basedir}/${meta.inf}/xml-resources/web-services/SampleService/wsdl/"/>
68 </copy>
69
70 <!-- QUESTION FOR SUN: Why do we have to do this by hand? If we do not pull this forward
71 and copy the schemas to these locations, they do not end up in the
72 dest file and we cannot deploy it. -->
73 <echo message="copy schemas" />
74 <copy todir="${basedir}/${meta.inf}/wsdl/schemas/">
75 <fileset dir="${basedir}/${meta.inf}/xml-resources/web-services/SampleService/schemas/" />
76 </copy>
77 <echo message="copy UDDI Client Schemas" />
78 <copy todir="${basedir}/${meta.inf}/wsdl/client/schemas/">
79 <fileset dir="${basedir}/${meta.inf}/xml-resources/web-service-references/uddi_v3_service/schemas/" />
80 </copy>
81
82 </target>
83
84</project>
Note: See TracBrowser for help on using the repository browser.