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