-
Notifications
You must be signed in to change notification settings - Fork 63
/
build.xml
199 lines (179 loc) · 5.04 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?xml version="1.0"?>
<!DOCTYPE project [
<!ENTITY properties SYSTEM "build.prop.xml">
<!ENTITY targets SYSTEM "build.target.xml">
]>
<!-- build.xml
Purpose:
The internal build file for ant.
Description:
It is invoked by the bash script, build, to do the proper
intialization.
This build file is used only internally. For SDK to build user's
projects, use another file
History:
March 29 15:11 2001, Created by henrichen
August 21 14:27 2002, Created by tomyeh
Copyright (C) 2002 Potix Corporation. All Rights Reserved.
-->
<project name="potix.inside" default="build" basedir=".">
<!-- ======= -->
<!-- INITIAL -->
<!-- ======= -->
&properties;
<!-- ====== -->
<!-- CONFIG -->
<!-- ====== -->
<target name="verbose" if="verbose.required">
<!-- show the current environment -->
<echo message="${project.name}: ${project.version}"/>
<echo message=""/>
<echo message="java.class.path = ${java.class.path}"/>
<echo message=""/>
<echo message="java.home = ${java.home}"/>
<echo message="out.dir = ${out.dir}"/>
<echo message="debug = ${debug}"/>
<echo message="optimize = ${optimize}"/>
</target>
<target name="config" depends="verbose">
<!--tstamp/-->
<available file="${src.mesg.dir}" property="src.mesg.dir.exist"/>
<available file="${bin.dir}/CVS" property="bin.CVS.dir.exist"/>
<available file="${bin.dir}/.svn" property="bin.svn.dir.exist"/>
<available file="${dist.lib.ext.dir}/CVS" property="lib.ext.CVS.dir.exist"/>
<available file="${dist.lib.ext.dir}/.svn" property="lib.ext.svn.dir.exist"/>
<available file="${src.archive.dir}/META-INF/${jad.name}" property="jad.exist"/>
<condition property="war.dir" value="WebContent">
<available file="WebContent" type="dir"/>
</condition>
<condition property="war.dir" value="${src.archive.dir}">
<not>
<available file="WebContent" type="dir"/>
</not>
</condition>
<!-- format -->
<condition property="build.ear.required">
<equals arg1="${format}" arg2="ear"/>
</condition>
<condition property="build.jad.required">
<and>
<equals arg1="${format}" arg2="jar"/>
<isset property="jad.exist"/>
</and>
</condition>
<condition property="build.jar.required">
<and>
<or>
<equals arg1="${format}" arg2="jar"/>
<equals arg1="${format}" arg2="jar2"/>
</or>
<not>
<isset property="jad.exist"/>
</not>
</and>
</condition>
<condition property="build.jar2.required">
<equals arg1="${format}" arg2="jar2"/>
</condition>
<condition property="build.war.required">
<equals arg1="${format}" arg2="war"/>
</condition>
<condition property="compile.required">
<or>
<or>
<equals arg1="${format}" arg2="jar"/>
<equals arg1="${format}" arg2="jar2"/>
</or>
<equals arg1="${format}" arg2="war"/>
</or>
</condition>
<condition property="gentime.required">
<not>
<equals arg1="${gentime}" arg2=""/>
</not>
</condition>
<!-- deploy -->
<condition property="deploy.lib.required">
<equals arg1="${deploy}" arg2="lib"/>
</condition>
<condition property="deploy.server.required">
<equals arg1="${deploy}" arg2="server"/>
</condition>
<!-- deploy jboss -->
<condition property="deploy.jboss.required">
<and>
<isset property="deploy.server.required"/>
<equals arg1="${format}" arg2="ear"/>
</and>
</condition>
<condition property="deploy.jboss.intact.required">
<and>
<isset property="deploy.jboss.required"/>
<not>
<isset property="deploy.unzip.list"/>
</not>
</and>
</condition>
<condition property="deploy.jboss.unzip.required">
<and>
<isset property="deploy.jboss.required"/>
<isset property="deploy.unzip.list"/>
</and>
</condition>
<!-- deploy tomcat -->
<available file="${tomcat.home}" property="tomcat.exist"/>
<condition property="deploy.tomcat.required">
<and>
<isset property="tomcat.exist"/>
<isset property="deploy.server.required"/>
<equals arg1="${format}" arg2="deploy"/>
</and>
</condition>
<condition property="deploy.tomcat.intact.required">
<and>
<isset property="deploy.tomcat.required"/>
<not>
<isset property="deploy.unzip.list"/>
</not>
</and>
</condition>
<condition property="deploy.tomcat.unzip.required">
<and>
<isset property="deploy.tomcat.required"/>
<isset property="deploy.unzip.list"/>
</and>
</condition>
<condition property="start.service.required">
<and>
<isset property="deploy.tomcat.required"/>
<not>
<equals arg1="${start.service}" arg2=""/>
</not>
</and>
</condition>
<!-- clean relevant -->
<condition property="clean.all.required">
<isset property="do.all"/>
</condition>
<!--
<condition property="clean.bin.required">
<and>
<isset property="do.all"/>
<not>
<or>
<isset property="bin.CVS.dir.exist"/>
<isset property="bin.svn.dir.exist"/>
</or>
</not>
</and>
</condition>
-->
</target>
<target name="config.build" depends="config">
<mkdir dir="${codegen.dir}"/>
</target>
<!-- ======= -->
<!-- TARGETS -->
<!-- ======= -->
&targets;
</project>