-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
executable file
·138 lines (121 loc) · 3.46 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
<?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="${src.dir}" property="src.dir.exist"/>
<condition property="war.dir" value="${src.archive.dir}">
<available file="${src.archive.dir}" type="dir"/>
</condition>
<condition property="war.dir" value="WebContent">
<not>
<available file="${src.archive.dir}" type="dir"/>
</not>
</condition>
<!-- format -->
<condition property="build.jar.required">
<equals arg1="${format}" arg2="jar"/>
</condition>
<condition property="build.war.required">
<equals arg1="${format}" arg2="war"/>
</condition>
<condition property="compile.required">
<and>
<or>
<equals arg1="${format}" arg2="jar"/>
<equals arg1="${format}" arg2="war"/>
</or>
<isset property="src.dir.exist"/>
</and>
</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 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>
</target>
<target name="config.build" depends="config">
<mkdir dir="${codegen.dir}"/>
</target>
<!-- ======= -->
<!-- TARGETS -->
<!-- ======= -->
&targets;
</project>