You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by du...@apache.org on 2018/01/23 22:39:21 UTC

[incubator-openwhisk-cli] branch master updated: Add i18n process to build.gradle (#209)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new ce9b6be  Add i18n process to build.gradle (#209)
ce9b6be is described below

commit ce9b6bea93bb77e5efbad10b6938949a107f4f1d
Author: Jonathan Springer <jo...@gmail.com>
AuthorDate: Tue Jan 23 17:39:19 2018 -0500

    Add i18n process to build.gradle (#209)
---
 build.gradle | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/build.gradle b/build.gradle
index d94e87f..ba6171d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -152,6 +152,20 @@ if (rootProject.hasProperty('buildPlatforms')) {
 }
 
 /*
+    I18n support
+ */
+task getGoI18n(type: com.github.blindpirate.gogradle.Go) {
+    go 'get -u github.com/jteeuwen/go-bindata/...'
+}
+
+task goI18n(type: com.github.blindpirate.gogradle.Go, dependsOn: getGoI18n) {
+    // WARNING:  The single quotes are intentional!  The gogradle plugin will
+    //           parse the command with the GString engine at execution time.
+    run '${GOPATH}/bin/go-bindata -pkg wski18n -o wski18n/i18n_resources.go wski18n/resources'
+}
+resolveBuildDependencies.dependsOn(goI18n)
+
+/*
     Checks -- add golint and scancode to the checks run prior to build.
        The get step is needed to be sure a golint binary is available to run.
  */

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