-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
113 lines (95 loc) · 5.09 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0"?>
<!-- Copyright 2004 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at:
http://adventurebuilder.dev.java.net/LICENSE.txt
$Id: build.xml,v 1.12 2004/10/08 18:15:32 yutayoshida Exp $ -->
<!DOCTYPE project [
<!ENTITY commonAntCommands SYSTEM "setup/common-ant.xml">
<!ENTITY appServerAntCommands SYSTEM "setup/app-server-ant.xml">
]>
<project name="blueprints" default="core" basedir=".">
<!-- path to root -->
<property name="root.dir" value="."/>
&commonAntCommands; <!-- include common ant commands -->
<property name="adventure.javadocs.dir" value="docs/api"/>
<property name="verify.dest.dir" value="verifierResult"/>
<target name="core">
<ant dir="components" target="core" inheritAll="false" inheritRefs="false"/>
<!-- waf is moved under components
<ant dir="waf" target="core" inheritAll="false" inheritRefs="false"/>
-->
<ant dir="apps" target="core" inheritAll="false" inheritRefs="false"/>
</target>
<target name="deploy-apps">
<ant dir="apps" target="deploy-apps" inheritAll="false" inheritRefs="false"/>
</target>
<target name="verify-apps" description="Static archive tests for all apps">
<mkdir dir="${verify.dest.dir}"/>
<echo>Adventurebuilder must be built before invoking this task.</echo>
<echo>The result files are stored in ${verify.dest.dir}</echo>
<ant dir="apps" target="verify-apps" inheritAll="false" inheritRefs="false"/>
</target>
<target name="undeploy-apps">
<ant dir="apps" target="undeploy-apps" inheritAll="false" inheritRefs="false"/>
</target>
<target name="check_if_ContactInfo_OrderDetails_classes_exist">
<available file="apps/consumerwebsite/build/jaxrpc/client/classes" type="dir" property="already.built"/>
</target>
<target name="check_if_CreditCardIntf_class_exist">
<available file="apps/opc/opc-ejb/build/jaxrpc/client/classes" type="dir" property="already.built"/>
</target>
<target name="check_if_built" depends="check_if_ContactInfo_OrderDetails_classes_exist, check_if_CreditCardIntf_class_exist"/>
<target name="build_if_needed" unless="already.built">
<antcall target="core"/>
</target>
<target name="docs" depends="check_if_built, build_if_needed">
<echo message="Generating API Javadocs...."/>
<mkdir dir="${adventure.javadocs.dir}"/>
<javadoc packagenames="com.sun.j2ee.blueprints.*"
destdir="${adventure.javadocs.dir}"
author="false" version="true" use="true"
windowtitle="Java Adventure Builder Reference application API"
doctitle="Java Adventure Builder Reference application"
additionalparam="-linksource"
bottom="Copyright © 2004 Sun Microsystems Inc. All Rights Reserved.">
<classpath>
<pathelement path="${j2ee.home}/lib/j2ee.jar"/>
<pathelement path="lib/base64/base64.jar"/>
<pathelement path="components/servicelocator/build/classes"/>
<pathelement path="components/util/dao/build/classes"/>
<pathelement path="components/util/tracer/build/classes"/>
<pathelement path="components/waf/build/classes"/>
<pathelement path="apps/consumerwebsite/build/classes"/>
<pathelement path="apps/consumerwebsite/build/jaxrpc/client/classes"/>
<pathelement path="apps/activitysupplier/activitysupplier-ejb/build/classes"/>
<pathelement path="apps/airlinesupplier/airlinesupplier-ejb/build/classes"/>
<pathelement path="apps/bank/bank-ejb/build/classes"/>
<pathelement path="apps/lodgingsupplier/lodgingsupplier-ejb/build/classes"/>
<pathelement path="apps/opc/opc-ejb/build/classes"/>
<pathelement path="apps/opc/opc-ejb/build/jaxrpc/client/classes"/>
<pathelement path="apps/opc/processmanager-ejb/build/classes"/>
</classpath>
<sourcepath>
<pathelement path="components/servicelocator/src/java"/>
<pathelement path="components/util/dao/src/java"/>
<pathelement path="components/util/tracer/src/java"/>
<pathelement path="components/waf/src/java"/>
<pathelement path="apps/consumerwebsite/src/java"/>
<pathelement path="apps/activitysupplier/activitysupplier-ejb/src/java"/>
<pathelement path="apps/airlinesupplier/airlinesupplier-ejb/src/java"/>
<pathelement path="apps/bank/bank-ejb/src/java"/>
<pathelement path="apps/lodgingsupplier/lodgingsupplier-ejb/src/java"/>
<pathelement path="apps/opc/opc-ejb/src/java"/>
<pathelement path="apps/opc/processmanager-ejb/src/java"/>
</sourcepath>
</javadoc>
</target>
<target name="cleanall">
<ant dir="components" target="clean" inheritAll="false" inheritRefs="false"/>
<!-- waf is moved under components
<ant dir="waf" target="clean" inheritAll="false" inheritRefs="false"/>
-->
<ant dir="apps" target="clean" inheritAll="false" inheritRefs="false"/>
<delete dir="${adventure.javadocs.dir}"/>
</target>
<target name="all" depends="core, docs"/>
</project>