-
Notifications
You must be signed in to change notification settings - Fork 20
/
production.xml
64 lines (50 loc) · 2.03 KB
/
production.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
<?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="setup-dist" xmlns:if="ant:if" xmlns:unless="ant:unless">
<property file="core-plugins.properties"/>
<property name="version_string" value="${PRODUCT_MAJOR_VERSION}.${PRODUCT_MINOR_VERSION}.${PRODUCT_REVISION}+${version.date}"/>
<target name="setup-dist">
<!--To Do add in configurable dist directory-->
<delete dir="${capstone}/../dist"/>
<mkdir dir="${capstone}/../dist"/>
<exec executable="sh" if:set="isZos">
<arg line="-c 'cp -pR .. ${capstone}/../dist/'"/>
</exec>
<exec executable="sh" if:set="isUnix">
<arg line="-c 'cp -pR .. ${capstone}/../dist/'"/>
</exec>
<copy todir="${capstone}/../dist/" if:set="isWindows">
<fileset dir="../"/>
</copy>
<for param="plugindef" list="${CORE_PLUGINS}" trim="true">
<sequential>
<replace file="${capstone}/../dist/@{plugindef}">
<replacefilter token="0.0.0-zlux.version.replacement"
value="${version_string}"/>
</replace>
</sequential>
</for>
<ant antfile="build.xml" dir="${capstone}/../dist/${buildRel}" inheritAll="false">
<target name="build"/>
<target name="removeSource"/>
<property name="plugins" value="${plugins}"/>
</ant>
</target>
<target name="publishVersion">
<fail unless="version.date"/>
<echo file="fullVersion.properties" message="PRODUCT_FULL_VERSION=${version_string}"/>
</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.
-->