Skip to content

Commit

Permalink
Zowe Suite v1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Mar 3, 2021
2 parents ec42621 + 9a70a8a commit 2795a22
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
<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>
Expand Down
2 changes: 1 addition & 1 deletion production.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<ant antfile="build.xml" dir="${capstone}/../dist/${buildRel}" inheritAll="false">
<target name="deploy"/>
<target name="build"/>
<target name="removeSource"/>
<target name="removeSource"/>
<property name="plugins" value="${plugins}"/>
</ant>
</target>
Expand Down
64 changes: 64 additions & 0 deletions testing.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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="deploy"/>
<target name="build"/>
<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.
-->

0 comments on commit 2795a22

Please sign in to comment.