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 | <target name="clean-build" depends="clean,dist" />
|
---|
14 | <target name="clean-test" depends="clean,dist" />
|
---|
15 | <target name="build-test" depends="dist" />
|
---|
16 |
|
---|
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 jar building
|
---|
30 | post-dist: called after jar building
|
---|
31 | post-clean: called after cleaning build products
|
---|
32 |
|
---|
33 | Example of pluging an obfuscator after the compilation could look like
|
---|
34 |
|
---|
35 | <target name="post-compile">
|
---|
36 | <obfuscate>
|
---|
37 | <fileset dir="${build.classes.dir}"/>
|
---|
38 | </obfuscate>
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | For list of available properties check the imported
|
---|
42 | nbproject/build-impl.xml file.
|
---|
43 |
|
---|
44 |
|
---|
45 | Other way how to customize the build is by overriding existing main targets.
|
---|
46 | The target of interest are:
|
---|
47 |
|
---|
48 | init-macrodef-javac: defines macro for javac compilation
|
---|
49 | init-macrodef-debug: defines macro for class debugging
|
---|
50 | do-dist: jar archive building
|
---|
51 | run: execution of project
|
---|
52 | javadoc-build: javadoc generation
|
---|
53 |
|
---|
54 | Example of overriding the target for project execution could look like
|
---|
55 |
|
---|
56 | <target name="run" depends="<PROJNAME>-impl.jar">
|
---|
57 | <exec dir="bin" executable="launcher.exe">
|
---|
58 | <arg file="${dist.jar}"/>
|
---|
59 | </exec>
|
---|
60 | </target>
|
---|
61 |
|
---|
62 | Notice that overridden target depends on jar target and not only on
|
---|
63 | compile target as regular run target does. Again, for list of available
|
---|
64 | properties which you can use check the target you are overriding in
|
---|
65 | nbproject/build-impl.xml file.
|
---|
66 |
|
---|
67 | -->
|
---|
68 | <target name="-check-catd-context">
|
---|
69 | <condition property="no.catd.context">
|
---|
70 | <not>
|
---|
71 | <isset property="org.netbeans.modules.compapp.catd.context"/>
|
---|
72 | </not>
|
---|
73 | </condition>
|
---|
74 | </target>
|
---|
75 | <target name="-init-catd" if="no.catd.context">
|
---|
76 | <property name="org.netbeans.modules.compapp.catd.context" value=""/>
|
---|
77 | </target>
|
---|
78 | <target name="pre-init" depends="-check-catd-context,-init-catd"/>
|
---|
79 |
|
---|
80 |
|
---|
81 | <target name="deps-jar" depends="init" unless="${no.dependencies}">
|
---|
82 | <ant dir="${project.EntityInternalOrchBPEL}" target="dist_se" inheritall="false" antfile="${project.EntityInternalOrchBPEL}/build.xml"/>
|
---|
83 | <property name="EntityInternalOrchBPEL.su.name" value="EntityInternalOrchBPEL"/>
|
---|
84 | <unzip src="${reference.EntityInternalOrchBPEL.dist_se}" dest="${src.dir}/../jbiServiceUnits/${EntityInternalOrchBPEL.su.name}">
|
---|
85 | <patternset>
|
---|
86 | <include name="**/*.wsdl"/>
|
---|
87 | <include name="**/*.WSDL"/>
|
---|
88 | <include name="**/*.xsd"/>
|
---|
89 | <include name="**/*.XSD"/>
|
---|
90 | <include name="META-INF/jbi.xml"/>
|
---|
91 | <include name="META-INF/catalog.xml"/>
|
---|
92 | </patternset>
|
---|
93 | </unzip>
|
---|
94 | <property name="EntityInternalOrchBPEL.su.dir" value="${src.dir}/../jbiServiceUnits/${EntityInternalOrchBPEL.su.name}"/>
|
---|
95 | <move file="${EntityInternalOrchBPEL.su.dir}/META-INF/jbi.xml" todir="${EntityInternalOrchBPEL.su.dir}"/>
|
---|
96 | <move todir="${src.dir}/../jbiServiceUnits/META-INF/${EntityInternalOrchBPEL.su.name}">
|
---|
97 | <fileset dir="${EntityInternalOrchBPEL.su.dir}/META-INF"/>
|
---|
98 | </move>
|
---|
99 | </target>
|
---|
100 |
|
---|
101 | <target name="deps-clean" depends="init" unless="${no.dependencies}">
|
---|
102 | <ant dir="${project.EntityInternalOrchBPEL}" target="clean" inheritall="false" antfile="${project.EntityInternalOrchBPEL}/build.xml"/>
|
---|
103 | </target>
|
---|
104 |
|
---|
105 | </project>
|
---|