You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ko...@apache.org on 2014/09/05 10:15:22 UTC

git commit: [OLINGO-416] fixes for rat tools II

Repository: olingo-odata4-js
Updated Branches:
  refs/heads/master a19ce1e43 -> d41a31a48


[OLINGO-416] fixes for rat tools II


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/commit/d41a31a4
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/tree/d41a31a4
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/diff/d41a31a4

Branch: refs/heads/master
Commit: d41a31a4830587a2b108ee8048e25b2062144097
Parents: a19ce1e
Author: Sven Kobler <sv...@sap.com>
Authored: Fri Sep 5 10:15:16 2014 +0200
Committer: Sven Kobler <sv...@sap.com>
Committed: Fri Sep 5 10:15:16 2014 +0200

----------------------------------------------------------------------
 odatajs/grunt-config/release.js | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/blob/d41a31a4/odatajs/grunt-config/release.js
----------------------------------------------------------------------
diff --git a/odatajs/grunt-config/release.js b/odatajs/grunt-config/release.js
index 57386cd..70ad402 100644
--- a/odatajs/grunt-config/release.js
+++ b/odatajs/grunt-config/release.js
@@ -76,7 +76,10 @@ module.exports = function(grunt) {
       },
       'release-sources' : {
         files: [
-            { dot: true, expand: true, cwd: '', src: ['**'], dest: './../dist/<%= artifactname %>/sources',
+            { expand: true, src :'LICENSE',dest: './../dist/<%= artifactname %>/sources', filter: 'isFile' },
+            { expand: true, src :'NOTICE',dest: './../dist/<%= artifactname %>/sources', filter: 'isFile' },
+            { expand: true, src :'DEPENDENCIES',dest: './../dist/<%= artifactname %>/sources', filter: 'isFile' },
+            { dot: true, expand: true, cwd: './../', src: ['odatajs/**'], dest: './../dist/<%= artifactname %>/sources',
             filter: function(srcPath)  {
               // no node_modules
               if (srcPath === 'node_modules' || contains(srcPath, 'node_modules\\')) {
@@ -94,20 +97,20 @@ module.exports = function(grunt) {
               }
 
               // no c# files
-              if (srcPath === 'obj' || startsWith(srcPath, 'obj\\')) {
+              if (srcPath === 'obj' || contains(srcPath, 'odatajs\\obj')) {
                 return false; 
               }
 
-              if (srcPath === 'bin' || startsWith(srcPath, 'bin\\')) {
+              if (srcPath === 'bin' || contains(srcPath, 'odatajs\\bin')) {
                 return false; 
               }
 
-              if (srcPath === 'packages' || startsWith(srcPath, 'packages\\')) {
+              if (srcPath === 'packages' || contains(srcPath, 'odatajs\\packages')) {
                 return false; 
               }
 
               // no build retults
-              if (srcPath === 'build' || startsWith(srcPath, 'build\\')) {
+              if (srcPath === 'build' || contains(srcPath, 'odatajs\\build')) {
                 return false; 
               }