Updated the rat check so that build can run from root or console directory
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/5599ce90 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/5599ce90 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/5599ce90 Branch: refs/heads/apache-blur-0.2 Commit: 5599ce9096eb4ee912f6e8899134a71e51a62854 Parents: d609201 Author: Chris Rohr <[email protected]> Authored: Mon May 19 07:27:12 2014 -0400 Committer: Chris Rohr <[email protected]> Committed: Mon May 19 07:27:12 2014 -0400 ---------------------------------------------------------------------- .../src/main/webapp/test/spec/test.js | 32 -------------------- .../src/main/webapp/test/spec/utils.js | 32 -------------------- .../src/main/webapp/test/unit/spec/test.js | 32 ++++++++++++++++++++ .../src/main/webapp/test/unit/spec/utils.js | 32 ++++++++++++++++++++ pom.xml | 26 ++++++++-------- 5 files changed, 77 insertions(+), 77 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5599ce90/contrib/blur-console/src/main/webapp/test/spec/test.js ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/main/webapp/test/spec/test.js b/contrib/blur-console/src/main/webapp/test/spec/test.js deleted file mode 100644 index 9ac8df8..0000000 --- a/contrib/blur-console/src/main/webapp/test/spec/test.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. -*/ -/* global describe, it */ - -(function () { - 'use strict'; - - describe('Give it some context', function () { - describe('maybe a bit more context here', function () { - it('should run here few assertions', function () { - - }); - }); - }); -})(); http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5599ce90/contrib/blur-console/src/main/webapp/test/spec/utils.js ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/main/webapp/test/spec/utils.js b/contrib/blur-console/src/main/webapp/test/spec/utils.js deleted file mode 100644 index 927567d..0000000 --- a/contrib/blur-console/src/main/webapp/test/spec/utils.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. -*/ -/* global describe, it, assert, blurconsole */ - -(function () { - 'use strict'; - - describe('Test blurconsole.utils', function () { - describe('inject', function () { - it('[1,2,3,4,5] should be 15 with simple summing', function () { - assert(blurconsole.utils.inject([1,2,3,4,5], 0, function(sum, item){ return sum + item; })); - }); - }); - }); -})(); http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5599ce90/contrib/blur-console/src/main/webapp/test/unit/spec/test.js ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/main/webapp/test/unit/spec/test.js b/contrib/blur-console/src/main/webapp/test/unit/spec/test.js new file mode 100644 index 0000000..9ac8df8 --- /dev/null +++ b/contrib/blur-console/src/main/webapp/test/unit/spec/test.js @@ -0,0 +1,32 @@ +/* + +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +*/ +/* global describe, it */ + +(function () { + 'use strict'; + + describe('Give it some context', function () { + describe('maybe a bit more context here', function () { + it('should run here few assertions', function () { + + }); + }); + }); +})(); http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5599ce90/contrib/blur-console/src/main/webapp/test/unit/spec/utils.js ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/main/webapp/test/unit/spec/utils.js b/contrib/blur-console/src/main/webapp/test/unit/spec/utils.js new file mode 100644 index 0000000..927567d --- /dev/null +++ b/contrib/blur-console/src/main/webapp/test/unit/spec/utils.js @@ -0,0 +1,32 @@ +/* + +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +*/ +/* global describe, it, assert, blurconsole */ + +(function () { + 'use strict'; + + describe('Test blurconsole.utils', function () { + describe('inject', function () { + it('[1,2,3,4,5] should be 15 with simple summing', function () { + assert(blurconsole.utils.inject([1,2,3,4,5], 0, function(sum, item){ return sum + item; })); + }); + }); + }); +})(); http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5599ce90/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 72162dc..ad4ff24 100644 --- a/pom.xml +++ b/pom.xml @@ -238,27 +238,27 @@ under the License. <exclude>**/build/**</exclude> <!-- These javascript libs are added at build time but are not included in the src --> - <exclude>contrib/blur-console/src/main/webapp/libs/**</exclude> + <exclude>**/src/main/webapp/libs/**</exclude> <!-- Generated CSS files --> - <exclude>contrib/blur-console/src/main/webapp/css/**</exclude> + <exclude>**/src/main/webapp/css/**</exclude> <!-- These files are used for UI testing and are added at development but not included in the src --> - <exclude>contrib/blur-console/src/main/webapp/test/bower_components/**</exclude> + <!-- exclude>contrib/blur-console/src/main/webapp/test/bower_components/**</exclude --> <!-- JS Libraries that could not be included through bower --> - <exclude>contrib/blur-console/src/main/webapp/js/utils/**</exclude> + <exclude>**/src/main/webapp/js/utils/**</exclude> <!-- Files used for building the UI --> - <exclude>contrib/blur-console/src/main/webapp/node_modules/**</exclude> - <exclude>contrib/blur-console/src/main/webapp/.sass-cache/**</exclude> - <exclude>contrib/blur-console/src/main/webapp/.tmp/**</exclude> - <exclude>contrib/blur-console/**/.bowerrc</exclude> - <exclude>contrib/blur-console/**/.editorconfig</exclude> - <exclude>contrib/blur-console/**/.jshintrc</exclude> - <exclude>contrib/blur-console/**/package.json</exclude> - <exclude>contrib/blur-console/**/bower.json</exclude> - <exclude>contrib/blur-console/src/main/scripts/grunt.sh</exclude> + <exclude>**/src/main/webapp/node_modules/**</exclude> + <exclude>**/src/main/webapp/.sass-cache/**</exclude> + <exclude>**/src/main/webapp/.tmp/**</exclude> + <exclude>**/.bowerrc</exclude> + <exclude>**/.editorconfig</exclude> + <exclude>**/.jshintrc</exclude> + <exclude>**/package.json</exclude> + <exclude>**/bower.json</exclude> + <exclude>**/src/main/scripts/grunt.sh</exclude> <!-- Legacy blur console --> <exclude>contrib/blur-console-v1/**</exclude>
