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="SampleService4EJB" default="default" basedir="." xmlns:ejbjarproject="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
|
---|
6 | <description>Builds, tests, and runs the project SampleService4EJB.</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 | </target>
|
---|
82 |
|
---|
83 | <!-- Copied from the jaxws-build.xml - Need to remove the wsdlLocation attribute... -->
|
---|
84 |
|
---|
85 | <target name="wsimport-client-uddi_v3_service" depends="wsimport-init,wsimport-client-check-uddi_v3_service" unless="wsimport-client-uddi_v3_service.notRequired">
|
---|
86 | <!-- <wsimport xendorsed="true" sourcedestdir="${build.generated.dir}/wsimport/client"
|
---|
87 | extension="true" destdir="${build.generated.dir}/wsimport/binaries"
|
---|
88 | wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/uddi_v3_service/wsdl/uddi_v3_service.wsdl"
|
---|
89 | wsdlLocation="file:/C:/projects/nhinc/Current/Product/Production/Examples/WSDLClientFileIssue_OldESB/WSDLInterfaces/src/wsdl/uddi_v3_service.wsdl"
|
---|
90 | catalog="catalog.xml"/> -->
|
---|
91 | <wsimport xendorsed="true" sourcedestdir="${build.generated.dir}/wsimport/client"
|
---|
92 | extension="true" destdir="${build.generated.dir}/wsimport/binaries"
|
---|
93 | wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/uddi_v3_service/wsdl/uddi_v3_service.wsdl"
|
---|
94 | catalog="catalog.xml"/>
|
---|
95 |
|
---|
96 | <copy todir="${classes.dir}">
|
---|
97 | <fileset dir="${build.generated.dir}/wsimport/binaries" includes="**/*.xml"/>
|
---|
98 | </copy>
|
---|
99 | </target>
|
---|
100 |
|
---|
101 |
|
---|
102 |
|
---|
103 | </project>
|
---|