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="NhincSubjectDiscoveryEJB" default="default" basedir="." xmlns:ejbjarproject="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
|
---|
6 | <description>Builds, tests, and runs the project NhincSubjectDiscoveryEJB.</description>
|
---|
7 | <import file="nbproject/build-impl.xml"/>
|
---|
8 |
|
---|
9 | <import file="../../../build.lib.xml" />
|
---|
10 |
|
---|
11 | <target name="build">
|
---|
12 | <property name="target-to-call" value="dist" />
|
---|
13 | <antcall target="call-target-in-isolation-if-out-of-date" />
|
---|
14 | </target>
|
---|
15 | <target name="clean-build" depends="clean,dist" />
|
---|
16 | <target name="clean-test" depends="clean,dist" />
|
---|
17 | <target name="build-test" depends="dist" />
|
---|
18 |
|
---|
19 | <!--
|
---|
20 |
|
---|
21 | There exist several targets which are by default empty and which can be
|
---|
22 | used for execution of your tasks. These targets are usually executed
|
---|
23 | before and after some main targets. They are:
|
---|
24 |
|
---|
25 | -pre-init: called before initialization of project properties
|
---|
26 | -post-init: called after initialization of project properties
|
---|
27 | -pre-compile: called before javac compilation
|
---|
28 | -post-compile: called after javac compilation
|
---|
29 | -pre-compile-single: called before javac compilation of single file
|
---|
30 | -post-compile-single: called after javac compilation of single file
|
---|
31 | -pre-dist: called before archive building
|
---|
32 | -post-dist: called after archive building
|
---|
33 | -post-clean: called after cleaning build products
|
---|
34 | -pre-run-deploy: called before deploying
|
---|
35 | -post-run-deploy: called after deploying
|
---|
36 |
|
---|
37 | (Targets beginning with '-' are not intended to be called on their own.)
|
---|
38 |
|
---|
39 | Example of pluging an obfuscator after the compilation could look like
|
---|
40 |
|
---|
41 | <target name="-post-compile">
|
---|
42 | <obfuscate>
|
---|
43 | <fileset dir="${build.classes.dir}"/>
|
---|
44 | </obfuscate>
|
---|
45 | </target>
|
---|
46 |
|
---|
47 | For list of available properties check the imported
|
---|
48 | nbproject/build-impl.xml file.
|
---|
49 |
|
---|
50 |
|
---|
51 | Other way how to customize the build is by overriding existing main targets.
|
---|
52 | The target of interest are:
|
---|
53 |
|
---|
54 | init-macrodef-javac: defines macro for javac compilation
|
---|
55 | init-macrodef-debug: defines macro for class debugging
|
---|
56 | do-dist: archive building
|
---|
57 | run: execution of project
|
---|
58 | javadoc-build: javadoc generation
|
---|
59 |
|
---|
60 | Example of overriding the target for project execution could look like
|
---|
61 |
|
---|
62 | <target name="run" depends="<PROJNAME>-impl.jar">
|
---|
63 | <exec dir="bin" executable="launcher.exe">
|
---|
64 | <arg file="${dist.jar}"/>
|
---|
65 | </exec>
|
---|
66 | </target>
|
---|
67 |
|
---|
68 | Notice that overridden target depends on jar target and not only on
|
---|
69 | compile target as regular run target does. Again, for list of available
|
---|
70 | properties which you can use check the target you are overriding in
|
---|
71 | nbproject/build-impl.xml file.
|
---|
72 |
|
---|
73 | -->
|
---|
74 | <!-- Had to pull this out of jaxws-build.xml because it copied the wsdl, but for some reason it
|
---|
75 | did not copy the schemas. We have to copy the schemas ourselves or it will not deploy. -->
|
---|
76 | <target name="wsimport-service-SubjectDiscovery" depends="wsimport-init,wsimport-service-check-SubjectDiscovery" unless="wsimport-service-SubjectDiscovery.notRequired">
|
---|
77 | <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/SubjectDiscovery/wsdl/NhinSubjectDiscovery.wsdl" catalog="catalog.xml"/>
|
---|
78 | <echo message="copy wsdl's" />
|
---|
79 | <copy todir="${basedir}/${meta.inf}/wsdl/SubjectDiscovery">
|
---|
80 | <fileset dir="${basedir}/${meta.inf}/xml-resources/web-services/SubjectDiscovery/wsdl/"/>
|
---|
81 | </copy>
|
---|
82 |
|
---|
83 | <echo message="copy schemas" />
|
---|
84 | <copy todir="${basedir}/${meta.inf}/wsdl/schemas/">
|
---|
85 | <fileset dir="${basedir}/${meta.inf}/xml-resources/web-services/SubjectDiscovery/schemas/" />
|
---|
86 | </copy>
|
---|
87 | </target>
|
---|
88 |
|
---|
89 | <target name="wsimport-client-NhincSubjectDiscovery" depends="wsimport-init,wsimport-client-check-NhincSubjectDiscovery" unless="wsimport-client-NhincSubjectDiscovery.notRequired">
|
---|
90 | <wsimport xendorsed="true" sourcedestdir="${build.generated.dir}/wsimport/client" extension="true" destdir="${build.generated.dir}/wsimport/binaries" wsdl="${basedir}/${meta.inf}/xml-resources/web-service-references/NhincSubjectDiscovery/wsdl/NhincSubjectDiscovery.wsdl" wsdlLocation="file:/C:/projects/NHINC/Current/Product/Production/Common/Interfaces/src/wsdl/NhincSubjectDiscovery.wsdl" catalog="catalog.xml"/>
|
---|
91 | <echo message="generating binaries for referenced wsdl"/>
|
---|
92 | <copy todir="${classes.dir}">
|
---|
93 | <fileset dir="${build.generated.dir}/wsimport/binaries" includes="**/*.xml"/>
|
---|
94 | </copy>
|
---|
95 |
|
---|
96 | <echo message="copy wsdl's" />
|
---|
97 | <copy todir="${basedir}/${meta.inf}/wsdl/client/NhincSubjectDiscovery">
|
---|
98 | <fileset dir="${basedir}/${meta.inf}/xml-resources/web-service-references/NhincSubjectDiscovery/wsdl/"/>
|
---|
99 | </copy>
|
---|
100 |
|
---|
101 | <echo message="copy schemas" />
|
---|
102 | <copy todir="${basedir}/${meta.inf}/wsdl/client/schemas/">
|
---|
103 | <fileset dir="${basedir}/${meta.inf}/xml-resources/web-service-references/NhincSubjectDiscovery/schemas/" />
|
---|
104 | </copy>
|
---|
105 | </target>
|
---|
106 |
|
---|
107 |
|
---|
108 |
|
---|
109 | <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
|
---|
110 | <property name="project.NhincHL7JaxbLib.Absolute" location="${project.NhincHL7JaxbLib}"/>
|
---|
111 | <property name="project.NhincLib.Absolute" location="${project.NhincLib}"/>
|
---|
112 | <property name="project.NhincSamlTokenExtractionLib.Absolute" location="${project.NhincSamlTokenExtractionLib}"/>
|
---|
113 |
|
---|
114 | <ant dir="${project.NhincHL7JaxbLib.Absolute}" antfile="${project.NhincHL7JaxbLib.Absolute}/build.xml" inheritall="false" target="jar"/>
|
---|
115 | <ant dir="${project.NhincLib.Absolute}" antfile="${project.NhincLib.Absolute}/build.xml" inheritall="false" target="jar"/>
|
---|
116 | <ant dir="${project.NhincSamlTokenExtractionLib.Absolute}" antfile="${project.NhincSamlTokenExtractionLib.Absolute}/build.xml" inheritall="false" target="jar"/>
|
---|
117 | </target>
|
---|
118 | <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
|
---|
119 | <property name="project.NhincHL7JaxbLib.Absolute" location="${project.NhincHL7JaxbLib}"/>
|
---|
120 | <property name="project.NhincLib.Absolute" location="${project.NhincLib}"/>
|
---|
121 | <property name="project.NhincSamlTokenExtractionLib.Absolute" location="${project.NhincSamlTokenExtractionLib}"/>
|
---|
122 |
|
---|
123 | <ant dir="${project.NhincHL7JaxbLib.Absolute}" antfile="${project.NhincHL7JaxbLib.Absolute}/build.xml" inheritall="false" target="jar"/>
|
---|
124 | <ant dir="${project.NhincLib.Absolute}" antfile="${project.NhincLib.Absolute}/build.xml" inheritall="false" target="jar"/>
|
---|
125 | <ant dir="${project.NhincSamlTokenExtractionLib.Absolute}" antfile="${project.NhincSamlTokenExtractionLib.Absolute}/build.xml" inheritall="false" target="jar"/>
|
---|
126 | </target>
|
---|
127 | <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
|
---|
128 | <property name="project.NhincHL7JaxbLib.Absolute" location="${project.NhincHL7JaxbLib}"/>
|
---|
129 | <property name="project.NhincLib.Absolute" location="${project.NhincLib}"/>
|
---|
130 | <property name="project.NhincSamlTokenExtractionLib.Absolute" location="${project.NhincSamlTokenExtractionLib}"/>
|
---|
131 |
|
---|
132 | <ant dir="${project.NhincHL7JaxbLib.Absolute}" antfile="${project.NhincHL7JaxbLib.Absolute}/build.xml" inheritall="false" target="clean"/>
|
---|
133 | <ant dir="${project.NhincLib.Absolute}" antfile="${project.NhincLib.Absolute}/build.xml" inheritall="false" target="clean"/>
|
---|
134 | <ant dir="${project.NhincSamlTokenExtractionLib.Absolute}" antfile="${project.NhincSamlTokenExtractionLib.Absolute}/build.xml" inheritall="false" target="clean"/>
|
---|
135 | </target>
|
---|
136 |
|
---|
137 |
|
---|
138 | <target depends="compile" name="library-inclusion-in-archive">
|
---|
139 | <copy file="${reference.NhincSamlTokenExtractionLib.jar}" todir="${build.classes.dir}"/>
|
---|
140 | <copy file="${reference.NhincLib.jar}" todir="${build.classes.dir}"/>
|
---|
141 | </target>
|
---|
142 | <target depends="compile" name="library-inclusion-in-manifest">
|
---|
143 | <basename file="${reference.NhincSamlTokenExtractionLib.jar}" property="included.lib.reference.NhincSamlTokenExtractionLib.jar"/>
|
---|
144 | <copy file="${reference.NhincSamlTokenExtractionLib.jar}" todir="${dist.ear.dir}"/>
|
---|
145 | <basename file="${reference.NhincLib.jar}" property="included.lib.reference.NhincLib.jar"/>
|
---|
146 | <copy file="${reference.NhincLib.jar}" todir="${dist.ear.dir}"/>
|
---|
147 | <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
|
---|
148 | <attribute name="Class-Path" value="${included.lib.reference.NhincSamlTokenExtractionLib.jar} ${included.lib.reference.NhincLib.jar}"/>
|
---|
149 | </manifest>
|
---|
150 | </target>
|
---|
151 | </project>
|
---|