-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
--> |