-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.xml
85 lines (65 loc) · 3.2 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
<?xml version="1.0"?>
<!--
This program and the accompanying materials are
made available under the terms of the Eclipse Public License v2.0 which accompanies
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
-->
<project default="help" xmlns:if="ant:if" xmlns:unless="ant:unless">
<record name="build.log" loglevel="info"/>
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<property environment="env"/>
<property name="capstone" location="../"/>
<property name="zlux-app-server" value="${capstone}/zlux-app-server"/>
<property name="home" value="${zlux-app-server}"/>
<property name="buildRel" value="zlux-build"/>
<property name="build" value="${capstone}/zlux-build"/>
<condition property="instanceMode">
<isset property="env.INSTANCE_DIR"/>
</condition>
<!-- instanceMode is the new standard, non-instanceMode is for compatibility -->
<property name="instanceDir" value="${zlux-app-server}/deploy/instance" unless:set="instanceMode"/>
<property name="siteDir" value="${zlux-app-server}/deploy/site" unless:set="instanceMode"/>
<property name="instanceDir" value="${env.INSTANCE_DIR}/workspace/app-server" if:set="instanceMode"/>
<property name="siteDir" value="${env.INSTANCE_DIR}/workspace/app-server/site" if:set="instanceMode"/>
<import file="common.xml" unless:set="version.date"/>
<target name="buildAll" depends="deploy, build"/>
<target name="production">
<ant antfile="production.xml" dir="."/>
</target>
<target name="testing">
<ant antfile="testing.xml" dir="."/>
</target>
<target name="getVersion">
<ant antfile="production.xml" dir="." target="publishVersion"/>
</target>
<target name="deploy" description="Deploy ZLUX with the plugins defined in a 'pluginDir' directory">
<ant antfile="deploy.xml" dir="."/>
</target>
<target name="audit" description="Audit all the plugins to check for security violations">
<ant antfile="audit.xml" dir="."/>
</target>
<target name="cleanDeploy" description="Clean the deploy directory">
<ant antfile="deploy.xml" dir="." target="cleanDeploy"/>
</target>
<target name="devClean" description="Clean the deploy product and plugins directories">
<ant antfile="deploy.xml" dir="." target="devClean"/>
</target>
<target name="build" description="Build zLUX with the plugins defined in a 'pluginDir' directory">
<ant antfile="build_ng2.xml" dir="."/>
</target>
<target name="bootstrapBuild" description="Build zLUX with the plugins defined in a 'pluginDir' directory">
<ant antfile="build_ng2.xml" target="bootstrapBuild" dir="."/>
</target>
<target name="removeSource" description="Remove source code and all files that are not needed for production">
<ant antfile="build_ng2.xml" target="removeSource" dir="."/>
</target>
</project>
<!--
This program and the accompanying materials are
made available under the terms of the Eclipse Public License v2.0 which accompanies
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
-->