openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrutkow...@apache.org
Subject [incubator-openwhisk-wskdeploy] branch master updated: Add .txt as suffix to LICENSE, NOTICE and CHANGELOG (#714)
Date Tue, 06 Feb 2018 18:46:47 GMT
This is an automated email from the ASF dual-hosted git repository.

mrutkowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1425456  Add .txt as suffix to LICENSE, NOTICE and CHANGELOG (#714)
1425456 is described below

commit 1425456e266550cbec1bafeedcaaf211a81c89a3
Author: Vincent <shou@us.ibm.com>
AuthorDate: Tue Feb 6 13:46:44 2018 -0500

    Add .txt as suffix to LICENSE, NOTICE and CHANGELOG (#714)
---
 LICENSE => LICENSE.txt | 0
 build.gradle           | 7 +++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/LICENSE b/LICENSE.txt
similarity index 100%
rename from LICENSE
rename to LICENSE.txt
diff --git a/build.gradle b/build.gradle
index 965aa96..d32b8c7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -44,7 +44,7 @@ task taredSources(type: Tar) {
         include('gradle/**')
         include('README.md', 'CONTRIBUTING.md', 'DEPENDENCIES.md')
         include('gradlew', 'gradlew.bat', 'Dockerfile', 'build.gradle')
-        include('LICENSE', 'NOTICE', 'CHANGELOG')
+        include('LICENSE.txt', 'NOTICE.txt', 'CHANGELOG.txt')
     }
     destinationDir file(buildFolder)
     extension packageExtension
@@ -53,7 +53,10 @@ task taredSources(type: Tar) {
 }
 
 task cleanBuild(type: Delete) {
-    delete file(buildFolder).listFiles()
+    def folder = new File(buildFolder)
+    if(folder.exists()) {
+        delete file(buildFolder).listFiles()
+    }
 }
 
 task removeBinary(type: Delete) {

-- 
To stop receiving notification emails like this one, please contact
mrutkowski@apache.org.

Mime
View raw message