[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="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
|
---|
| 6 | <description>Builds, tests, and runs the project .</description>
|
---|
| 7 | <import file="nbproject/build-impl.xml"/>
|
---|
| 8 | <import file="../../../build.lib.xml" />
|
---|
| 9 | <target name="build">
|
---|
| 10 | <property name="target-to-call" value="dist" />
|
---|
| 11 | <antcall target="call-target-in-isolation-if-out-of-date" />
|
---|
| 12 | </target>
|
---|
| 13 |
|
---|
| 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 |
|
---|
| 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 jar building
|
---|
| 31 | post-dist: called after jar building
|
---|
| 32 | post-clean: called after cleaning build products
|
---|
| 33 |
|
---|
| 34 | Example of pluging an obfuscator after the compilation could look like
|
---|
| 35 |
|
---|
| 36 | <target name="post-compile">
|
---|
| 37 | <obfuscate>
|
---|
| 38 | <fileset dir="${build.classes.dir}"/>
|
---|
| 39 | </obfuscate>
|
---|
| 40 | </target>
|
---|
| 41 |
|
---|
| 42 | For list of available properties check the imported
|
---|
| 43 | nbproject/build-impl.xml file.
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | Other way how to customize the build is by overriding existing main targets.
|
---|
| 47 | The target of interest are:
|
---|
| 48 |
|
---|
| 49 | init-macrodef-javac: defines macro for javac compilation
|
---|
| 50 | init-macrodef-debug: defines macro for class debugging
|
---|
| 51 | do-dist: jar archive building
|
---|
| 52 | run: execution of project
|
---|
| 53 | javadoc-build: javadoc generation
|
---|
| 54 |
|
---|
| 55 | Example of overriding the target for project execution could look like
|
---|
| 56 |
|
---|
| 57 | <target name="run" depends="<PROJNAME>-impl.jar">
|
---|
| 58 | <exec dir="bin" executable="launcher.exe">
|
---|
| 59 | <arg file="${dist.jar}"/>
|
---|
| 60 | </exec>
|
---|
| 61 | </target>
|
---|
| 62 |
|
---|
| 63 | Notice that overridden target depends on jar target and not only on
|
---|
| 64 | compile target as regular run target does. Again, for list of available
|
---|
| 65 | properties which you can use check the target you are overriding in
|
---|
| 66 | nbproject/build-impl.xml file.
|
---|
| 67 |
|
---|
| 68 | -->
|
---|
| 69 | <target name="-check-catd-context">
|
---|
| 70 | <condition property="no.catd.context">
|
---|
| 71 | <not>
|
---|
| 72 | <isset property="org.netbeans.modules.compapp.catd.context"/>
|
---|
| 73 | </not>
|
---|
| 74 | </condition>
|
---|
| 75 | </target>
|
---|
| 76 | <target name="-init-catd" if="no.catd.context">
|
---|
| 77 | <property name="org.netbeans.modules.compapp.catd.context" value=""/>
|
---|
| 78 | </target>
|
---|
| 79 | <!-- <target name="pre-init" depends="-check-netbeans-home,-init-caps,-check-catd-context,-init-catd"/> -->
|
---|
| 80 | <target name="pre-init" depends="-check-catd-context,-init-catd"/>
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 | <!--
|
---|
| 85 | <target name="deps-jar" depends="init" unless="${no.dependencies}">
|
---|
| 86 | <ant dir="${project.PatientCorrelationFacadeBpel}" target="dist_se" inheritall="false" antfile="${project.PatientCorrelationFacadeBpel}/build.xml"/>
|
---|
| 87 | <property name="PatientCorrelationFacadeBpel.su.name" value="PatientCorrelationFacadeBpel"/>
|
---|
| 88 | <unzip src="${reference.PatientCorrelationFacadeBpel.dist_se}" dest="${src.dir}/../jbiServiceUnits/${PatientCorrelationFacadeBpel.su.name}">
|
---|
| 89 | <patternset>
|
---|
| 90 | <include name="**/*.wsdl"/>
|
---|
| 91 | <include name="**/*.WSDL"/>
|
---|
| 92 | <include name="**/*.xsd"/>
|
---|
| 93 | <include name="**/*.XSD"/>
|
---|
| 94 | <include name="META-INF/jbi.xml"/>
|
---|
| 95 | <include name="META-INF/catalog.xml"/>
|
---|
| 96 | </patternset>
|
---|
| 97 | </unzip>
|
---|
| 98 | <property name="PatientCorrelationFacadeBpel.su.dir" value="${src.dir}/../jbiServiceUnits/${PatientCorrelationFacadeBpel.su.name}"/>
|
---|
| 99 | <copy file="${PatientCorrelationFacadeBpel.su.dir}/META-INF/jbi.xml" todir="${PatientCorrelationFacadeBpel.su.dir}"/>
|
---|
| 100 | <copy todir="${src.dir}/../jbiServiceUnits/META-INF/${PatientCorrelationFacadeBpel.su.name}">
|
---|
| 101 | <fileset dir="${PatientCorrelationFacadeBpel.su.dir}/META-INF"/>
|
---|
| 102 | </copy>
|
---|
| 103 | </target>
|
---|
| 104 | -->
|
---|
| 105 |
|
---|
| 106 | <target name="deps-javaee-jar" depends="init" unless="${no.dependencies}">
|
---|
| 107 | <ant dir="${project.PatientCorrelationEJB}" target="dist" inheritall="false" antfile="${project.PatientCorrelationEJB}/build.xml"/>
|
---|
| 108 | <basename property="PatientCorrelationEJB.su.name" file="${project.PatientCorrelationEJB}"/>
|
---|
| 109 | <property name="PatientCorrelationEJB.su.dir" value="${src.dir}/../jbiServiceUnits/${PatientCorrelationEJB.su.name}"/>
|
---|
| 110 | <unzip src="${reference.PatientCorrelationEJB.dist}" dest="${src.dir}/../jbiServiceUnits/${PatientCorrelationEJB.su.name}">
|
---|
| 111 | <patternset>
|
---|
| 112 | <include name="**/*.wsdl"/>
|
---|
| 113 | <include name="**/*.WSDL"/>
|
---|
| 114 | <include name="**/*.xsd"/>
|
---|
| 115 | <include name="**/*.XSD"/>
|
---|
| 116 | <include name="META-INF/jbi.xml"/>
|
---|
| 117 | </patternset>
|
---|
| 118 | </unzip>
|
---|
| 119 | <unzip src="${reference.PatientCorrelationEJB.dist}" dest="${src.dir}/../jbiServiceUnits/META-INF/PatientCorrelationEJB">
|
---|
| 120 | <patternset>
|
---|
| 121 | <include name="META-INF/catalog.xml"/>
|
---|
| 122 | </patternset>
|
---|
| 123 | </unzip>
|
---|
| 124 | <jbi-javaee-dist projectName="PatientCorrelationEJB" subprojJar="${reference.PatientCorrelationEJB.dist}" subprojDir="${project.PatientCorrelationEJB}" suExtractDir="${PatientCorrelationEJB.su.dir}" subprojResource="${resource.PatientCorrelationEJB}"/>
|
---|
| 125 | <!--
|
---|
| 126 | <ant dir="${project.PatientCorrelationFacadeDteEjb}" target="dist" inheritall="false" antfile="${project.PatientCorrelationFacadeDteEjb}/build.xml"/>
|
---|
| 127 | <basename property="PatientCorrelationFacadeDteEjb.su.name" file="${project.PatientCorrelationFacadeDteEjb}"/>
|
---|
| 128 | <property name="PatientCorrelationFacadeDteEjb.su.dir" value="${src.dir}/../jbiServiceUnits/${PatientCorrelationFacadeDteEjb.su.name}"/>
|
---|
| 129 | <unzip src="${reference.PatientCorrelationFacadeDteEjb.dist}" dest="${src.dir}/../jbiServiceUnits/${PatientCorrelationFacadeDteEjb.su.name}">
|
---|
| 130 | <patternset>
|
---|
| 131 | <include name="**/*.wsdl"/>
|
---|
| 132 | <include name="**/*.WSDL"/>
|
---|
| 133 | <include name="**/*.xsd"/>
|
---|
| 134 | <include name="**/*.XSD"/>
|
---|
| 135 | <include name="META-INF/jbi.xml"/>
|
---|
| 136 | </patternset>
|
---|
| 137 | </unzip>
|
---|
| 138 | <unzip src="${reference.PatientCorrelationFacadeDteEjb.dist}" dest="${src.dir}/../jbiServiceUnits/META-INF/PatientCorrelationFacadeDteEjb">
|
---|
| 139 | <patternset>
|
---|
| 140 | <include name="META-INF/catalog.xml"/>
|
---|
| 141 | </patternset>
|
---|
| 142 | </unzip>
|
---|
| 143 | <jbi-javaee-dist projectName="PatientCorrelationFacadeDteEjb" subprojJar="${reference.PatientCorrelationFacadeDteEjb.dist}" subprojDir="${project.PatientCorrelationFacadeDteEjb}" suExtractDir="${PatientCorrelationFacadeDteEjb.su.dir}" subprojResource="${resource.PatientCorrelationFacadeDteEjb}"/>
|
---|
| 144 | -->
|
---|
| 145 | </target>
|
---|
| 146 | <target name="deps-clean" depends="init" unless="${no.dependencies}">
|
---|
| 147 | <ant dir="${project.PatientCorrelationEJB}" target="clean" inheritall="false" antfile="${project.PatientCorrelationEJB}/build.xml"/>
|
---|
| 148 | <!--
|
---|
| 149 | <ant dir="${project.PatientCorrelationFacadeBpel}" target="clean" inheritall="false" antfile="${project.PatientCorrelationFacadeBpel}/build.xml"/>
|
---|
| 150 | <ant dir="${project.PatientCorrelationFacadeDteEjb}" target="clean" inheritall="false" antfile="${project.PatientCorrelationFacadeDteEjb}/build.xml"/>
|
---|
| 151 | -->
|
---|
| 152 | </target>
|
---|
| 153 |
|
---|
| 154 | <target name="jbi-build" depends="init,init-deploy,deps-jar, deps-javaee-jar" description="Build Service Assembly.">
|
---|
| 155 | <mkdir dir="${src.dir}"/>
|
---|
| 156 | <copy todir="${src.dir}/../jbiServiceUnits" overwrite="true">
|
---|
| 157 | <fileset dir="${src.dir}"/>
|
---|
| 158 | </copy>
|
---|
| 159 | <mkdir dir="${build.dir}/META-INF"/>
|
---|
| 160 |
|
---|
| 161 | <!--
|
---|
| 162 | <copy todir="${build.dir}/META-INF/${PatientCorrelationFacadeBpel.su.name}">
|
---|
| 163 | <fileset dir="${src.dir}/../jbiServiceUnits/META-INF/${PatientCorrelationFacadeBpel.su.name}"/>
|
---|
| 164 | </copy>
|
---|
| 165 | -->
|
---|
| 166 |
|
---|
| 167 | <jar compress="true" jarfile="${build.dir}/BCDeployment.jar">
|
---|
| 168 | <fileset dir="${src.dir}/../jbiServiceUnits">
|
---|
| 169 | <exclude name="**/catalog.xml"/>
|
---|
| 170 | <exclude name="**/jbi.xml"/>
|
---|
| 171 | </fileset>
|
---|
| 172 | </jar>
|
---|
| 173 | <jbi-build-service-assembly/>
|
---|
| 174 | <delete file="${build.dir}/BCDeployment.jar"/>
|
---|
| 175 | <dirname property="dist.jar.dir" file="${dist.jar}"/>
|
---|
| 176 | <mkdir dir="${dist.jar.dir}"/>
|
---|
| 177 | <jar compress="${jar.compress}" jarfile="${dist.jar}" filesetmanifest="merge">
|
---|
| 178 | <fileset dir="${build.dir}" excludes="jar/*"/>
|
---|
| 179 | </jar>
|
---|
| 180 | </target>
|
---|
| 181 | </project>
|
---|