Updated Branches: refs/heads/master 7ba4c8c86 -> 9706eb97f
Update RAT excludes for Android / mobile-spec / JS Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/9706eb97 Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/9706eb97 Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/9706eb97 Branch: refs/heads/master Commit: 9706eb97f661a9201a258066a61d3bf239b2ad6b Parents: 7ba4c8c Author: Andrew Grieve <[email protected]> Authored: Tue May 28 17:12:59 2013 -0400 Committer: Andrew Grieve <[email protected]> Committed: Tue May 28 17:12:59 2013 -0400 ---------------------------------------------------------------------- coho | 40 ++++++++++++++++++++++++++++++---------- 1 files changed, 30 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/9706eb97/coho ---------------------------------------------------------------------- diff --git a/coho b/coho index 585e98e..5c7ac2c 100755 --- a/coho +++ b/coho @@ -25,13 +25,17 @@ var shjs = require('shelljs'); var origWorkingDir = process.cwd(); -var COMMON_RAT_FLAGS = ['-e "*.wav"', - '-e "*.webloc"', - '-e "*jasmine-1.2.0*"', - '-e "*.xcodeproj"', - '-e ".*"', - '-e "*-Info.plist"', - '-e "VERSION"' +var COMMON_RAT_EXCLUDES = [ + '*.wav', + '*.webloc', + '*jasmine-1.2.0*', + '*.xcodeproj', + '.*', + '*-Info.plist', + 'VERSION', + 'node_modules', + 'thirdparty', + 'package.json', ]; var platformRepos = [ @@ -39,7 +43,13 @@ var platformRepos = [ title: 'Android', id: 'android', repoName: 'cordova-android', - cordovaJsPaths: ['framework/assets/www/cordova.js'] + cordovaJsPaths: ['framework/assets/www/cordova.js'], + ratExcludes: [ + '*.properties', + 'bin', + 'gen', + 'proguard-project.txt' + ] }, { title: 'iOS', id: 'ios', @@ -106,7 +116,12 @@ var nonPlatformRepos = [ }, { title: 'MobileSpec', id: 'mobile-spec', - repoName: 'cordova-mobile-spec' + repoName: 'cordova-mobile-spec', + ratExcludes: [ + 'jasmine.*', + 'html', + 'uubench.js', + ] }, { title: 'Cordova JS', id: 'js', @@ -779,7 +794,12 @@ function ratCommand() { } } forEachRepo(repos, function(repo) { - execHelper('java -jar "' + ratPath + '" -d . ' + COMMON_RAT_FLAGS.join(' ')); + var allExcludes = COMMON_RAT_EXCLUDES; + if (repo.ratExcludes) { + allExcludes = allExcludes.concat(repo.ratExcludes); + } + var excludeFlags = '-e "' + allExcludes.join('" -e "') + '"'; + execHelper('java -jar "' + ratPath + '" -d . ' + excludeFlags); }); }
