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