PHOENIX-3087 Add missing license headers to files
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/e921ef27 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e921ef27 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e921ef27 Branch: refs/heads/4.x-HBase-0.98 Commit: e921ef274177f2c3a898b5bb4fc1de84d57cf3c7 Parents: 0f00bc2 Author: Josh Elser <els...@apache.org> Authored: Mon Jul 18 18:36:30 2016 -0400 Committer: Josh Elser <els...@apache.org> Committed: Thu Jul 21 15:46:28 2016 -0400 ---------------------------------------------------------------------- README.md | 17 ++++++ bin/hadoop-metrics2-hbase.properties | 16 ++++++ bin/hadoop-metrics2-phoenix.properties | 19 ++++++- examples/pig/test.pig | 17 ++++++ .../test/resources/hadoop-metrics2.properties | 18 +++++- .../src/test/resources/pherf.test.properties | 60 +++++--------------- .../src/main/webapp/js/api/chart-model.js | 20 ++++++- .../src/main/webapp/js/app.js | 20 ++++++- .../src/main/webapp/js/config/chart-config.js | 20 ++++++- .../js/controllers/accordion-controllers.js | 18 ++++++ .../controllers/dependency-tree-controllers.js | 20 ++++++- .../webapp/js/controllers/list-controllers.js | 20 ++++++- .../webapp/js/controllers/search-controllers.js | 20 ++++++- .../js/controllers/timeline-controllers.js | 20 ++++++- .../js/controllers/trace-count-controllers.js | 20 ++++++- .../trace-distribution-controllers.js | 20 ++++++- .../js/factories/statement-factory-config.js | 20 ++++++- .../webapp/js/factories/statement-factory.js | 20 ++++++- .../js/services/generate-statement-service.js | 20 ++++++- .../src/test/webapp/js/specs/app-route-spec.js | 20 ++++++- .../test/webapp/js/specs/timeline-ctrl-spec.js | 20 ++++++- .../webapp/js/specs/trace-list-ctrl-spec.js | 20 ++++++- .../webapp/js/specs/tracing-app-ctrl-spec.js | 20 ++++++- pom.xml | 24 ++++++++ 24 files changed, 446 insertions(+), 63 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 41b562b..f6d4991 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ +<!-- +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. +--> + ![logo](http://phoenix.apache.org/images/logo.png) <b>[Apache Phoenix](http://phoenix.apache.org/)</b> is a SQL skin over HBase delivered as a client-embedded JDBC driver targeting low latency queries over HBase data. Visit the Apache Phoenix website <b>[here](http://phoenix.apache.org/)</b>. http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/bin/hadoop-metrics2-hbase.properties ---------------------------------------------------------------------- diff --git a/bin/hadoop-metrics2-hbase.properties b/bin/hadoop-metrics2-hbase.properties index 499ab6b..bafd444 100644 --- a/bin/hadoop-metrics2-hbase.properties +++ b/bin/hadoop-metrics2-hbase.properties @@ -1,3 +1,19 @@ +# 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. + # HBase Server Sink Configuration ################################# # http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/bin/hadoop-metrics2-phoenix.properties ---------------------------------------------------------------------- diff --git a/bin/hadoop-metrics2-phoenix.properties b/bin/hadoop-metrics2-phoenix.properties index 4a5794d..f8c7223 100644 --- a/bin/hadoop-metrics2-phoenix.properties +++ b/bin/hadoop-metrics2-phoenix.properties @@ -1,3 +1,20 @@ +# 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. + # Metrics properties for phoenix #################################### # @@ -50,4 +67,4 @@ phoenix.sink.tracing.class=org.apache.phoenix.trace.PhoenixMetricsSink # Tell the sink where to write the metrics phoenix.sink.tracing.writer-class=org.apache.phoenix.trace.PhoenixTableMetricsWriter # Only handle traces with a context of "tracing" -phoenix.sink.tracing.context=tracing \ No newline at end of file +phoenix.sink.tracing.context=tracing http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/examples/pig/test.pig ---------------------------------------------------------------------- diff --git a/examples/pig/test.pig b/examples/pig/test.pig index aba5b1b..6835d00 100644 --- a/examples/pig/test.pig +++ b/examples/pig/test.pig @@ -1,2 +1,19 @@ +/* + * 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. + */ + A = load 'examples/pig/testdata' as (a:chararray, b:chararray, c:int, d:chararray, e: datetime) ; STORE A into 'hbase://TESTPHX' using org.apache.phoenix.pig.PhoenixHBaseStorage('localhost','-batchSize 1000'); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-core/src/test/resources/hadoop-metrics2.properties ---------------------------------------------------------------------- diff --git a/phoenix-core/src/test/resources/hadoop-metrics2.properties b/phoenix-core/src/test/resources/hadoop-metrics2.properties index ebbbe84..3f227f6 100644 --- a/phoenix-core/src/test/resources/hadoop-metrics2.properties +++ b/phoenix-core/src/test/resources/hadoop-metrics2.properties @@ -1,3 +1,19 @@ +# 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. + #There are two options with file names: # 1. hadoop-metrics2-[prefix].properties # 2. hadoop-metrics2.properties @@ -22,4 +38,4 @@ *.source.start_mbeans=false # Frequency, in seconds, of sampling from the sources -*.period=10 \ No newline at end of file +*.period=10 http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-pherf/src/test/resources/pherf.test.properties ---------------------------------------------------------------------- diff --git a/phoenix-pherf/src/test/resources/pherf.test.properties b/phoenix-pherf/src/test/resources/pherf.test.properties index 9816fc8..13bb9cf 100644 --- a/phoenix-pherf/src/test/resources/pherf.test.properties +++ b/phoenix-pherf/src/test/resources/pherf.test.properties @@ -1,47 +1,17 @@ -# # 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. -# 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. -# 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. -# 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. -# 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. -# +# 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. -SOME_TEST_PROP=test_prop \ No newline at end of file +SOME_TEST_PROP=test_prop http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/api/chart-model.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/api/chart-model.js b/phoenix-tracing-webapp/src/main/webapp/js/api/chart-model.js index 9189bdf..c7b1b50 100644 --- a/phoenix-tracing-webapp/src/main/webapp/js/api/chart-model.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/api/chart-model.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + var timeLine = {}; var dependencyChart = {}; var chartObject = { @@ -174,4 +192,4 @@ var ClearRow = [ } ] } - ]; \ No newline at end of file + ]; http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/app.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/app.js b/phoenix-tracing-webapp/src/main/webapp/js/app.js index 3ab4974..bc02411 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/app.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/app.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + var TraceApp = angular.module('TracingAppCtrl', [ 'ngRoute', 'TracingCtrl', @@ -49,4 +67,4 @@ TraceApp.config(['$routeProvider', otherwise({ redirectTo: '/home' }); - }]); \ No newline at end of file + }]); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/config/chart-config.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/config/chart-config.js b/phoenix-tracing-webapp/src/main/webapp/js/config/chart-config.js index 5516fd1..7a44a61 100644 --- a/phoenix-tracing-webapp/src/main/webapp/js/config/chart-config.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/config/chart-config.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; angular.module('TimeLineCtrl') @@ -42,4 +60,4 @@ angular.module('TimeLineCtrl') "options": {}, "formatters": {} } - }); \ No newline at end of file + }); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/accordion-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/accordion-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/accordion-controllers.js index 81a2231..66fe337 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/accordion-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/accordion-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; var UICtrl = angular.module('UICtrl', ['ui.bootstrap']); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/dependency-tree-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/dependency-tree-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/dependency-tree-controllers.js index 01d5aa6..58c4a84 100644 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/dependency-tree-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/dependency-tree-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; var DepTreeCtrl = angular.module('DepTreeCtrl', ['ui.bootstrap']); @@ -140,4 +158,4 @@ DepTreeCtrl.controller('TraceDepTreeCtrl', function($scope, $http, $location) { }; $scope.loadDependencyTree(searchURL); -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/list-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/list-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/list-controllers.js index 8d0fcd6..de9ef66 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/list-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/list-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; var TraceCtrl = angular.module('TracingCtrl', ['googlechart', 'ui.bootstrap']); @@ -19,4 +37,4 @@ TraceCtrl.controller('TraceListCtrl', function($scope, $http) { }; $scope.loadTrace(); -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/search-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/search-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/search-controllers.js index b66ad0a..ac95c96 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/search-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/search-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; var SearchCtrl = angular.module('SearchCtrl', ['ui.bootstrap']); @@ -68,4 +86,4 @@ $scope.search = function(sqlQuery) { return ''; }; -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/timeline-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/timeline-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/timeline-controllers.js index d44e344..93d0929 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/timeline-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/timeline-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; var TimeLineCtrl = angular.module('TimeLineCtrl', ['ui.bootstrap']); @@ -150,4 +168,4 @@ TimeLineCtrl.controller('TraceTimeLineCtrl', function($scope, $http, $location) } $scope.loadTimeLine('../trace?action=getall&limit=7'); -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-count-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-count-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-count-controllers.js index 8d2db7c..36351be 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-count-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-count-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; TraceCtrl.controller('TraceCountChartCtrl', function($scope,$http) { @@ -37,4 +55,4 @@ TraceCtrl.controller('TraceCountChartCtrl', function($scope,$http) { $scope.loadData(); $scope.chartObject.type = "ColumnChart"; -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-distribution-controllers.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-distribution-controllers.js b/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-distribution-controllers.js index efe7247..3f3d10c 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-distribution-controllers.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/controllers/trace-distribution-controllers.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; TraceCtrl.controller('TraceDistChartCtrl', function($scope, $http) { @@ -36,4 +54,4 @@ TraceCtrl.controller('TraceDistChartCtrl', function($scope, $http) { $scope.chartObject = {}; $scope.loadData(); //$scope.chartObject = chartObject -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory-config.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory-config.js b/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory-config.js index 4c38738..37db23f 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory-config.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory-config.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; /** * @ngdoc function @@ -11,4 +29,4 @@ angular.module('TracingAppCtrl') 'command': {'select': 'FULL SCAN OVER '}, 'start': 'Creating basic query for [', 'end': ']' - }); \ No newline at end of file + }); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory.js b/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory.js index 7a11f80..76a5b61 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/factories/statement-factory.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; /** @@ -26,4 +44,4 @@ angular.module('TracingAppCtrl').factory('StatementFactory', function(stateConfi }; return StatementFactory; -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/main/webapp/js/services/generate-statement-service.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/main/webapp/js/services/generate-statement-service.js b/phoenix-tracing-webapp/src/main/webapp/js/services/generate-statement-service.js index a736656..17ccb6f 100755 --- a/phoenix-tracing-webapp/src/main/webapp/js/services/generate-statement-service.js +++ b/phoenix-tracing-webapp/src/main/webapp/js/services/generate-statement-service.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; /** * this services was writtern following different pattern. @@ -43,4 +61,4 @@ angular.module('TracingAppCtrl').service('GenerateStatementService', function( SQLQueryObject.commands = SQLQuery.split(" ")[0]; SQLQueryObject.tabel = SQLQuery.split("from ")[1].split(" ")[0]; }; -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/test/webapp/js/specs/app-route-spec.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/test/webapp/js/specs/app-route-spec.js b/phoenix-tracing-webapp/src/test/webapp/js/specs/app-route-spec.js index 63b665b..51c2814 100644 --- a/phoenix-tracing-webapp/src/test/webapp/js/specs/app-route-spec.js +++ b/phoenix-tracing-webapp/src/test/webapp/js/specs/app-route-spec.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; @@ -52,4 +70,4 @@ describe('The Tracing Web App Routes', function() { })); }); -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/test/webapp/js/specs/timeline-ctrl-spec.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/test/webapp/js/specs/timeline-ctrl-spec.js b/phoenix-tracing-webapp/src/test/webapp/js/specs/timeline-ctrl-spec.js index 1527345..47a4e67 100644 --- a/phoenix-tracing-webapp/src/test/webapp/js/specs/timeline-ctrl-spec.js +++ b/phoenix-tracing-webapp/src/test/webapp/js/specs/timeline-ctrl-spec.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; @@ -24,4 +42,4 @@ describe('Controller : TimeLineCtrl', function() { expect(scope.clear).toBeDefined(); }); */ -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/test/webapp/js/specs/trace-list-ctrl-spec.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/test/webapp/js/specs/trace-list-ctrl-spec.js b/phoenix-tracing-webapp/src/test/webapp/js/specs/trace-list-ctrl-spec.js index c024013..c2866e0 100644 --- a/phoenix-tracing-webapp/src/test/webapp/js/specs/trace-list-ctrl-spec.js +++ b/phoenix-tracing-webapp/src/test/webapp/js/specs/trace-list-ctrl-spec.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; @@ -86,4 +104,4 @@ describe('TracingCtrl', function() { expect($rootScope.traces[0].description).toBe('Committing mutations to tables'); }); -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/phoenix-tracing-webapp/src/test/webapp/js/specs/tracing-app-ctrl-spec.js ---------------------------------------------------------------------- diff --git a/phoenix-tracing-webapp/src/test/webapp/js/specs/tracing-app-ctrl-spec.js b/phoenix-tracing-webapp/src/test/webapp/js/specs/tracing-app-ctrl-spec.js index 8984d7f..5e7c78d 100644 --- a/phoenix-tracing-webapp/src/test/webapp/js/specs/tracing-app-ctrl-spec.js +++ b/phoenix-tracing-webapp/src/test/webapp/js/specs/tracing-app-ctrl-spec.js @@ -1,3 +1,21 @@ +/* + * 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. + */ + 'use strict'; @@ -20,4 +38,4 @@ describe('The Tracing Web App ', function() { }); }); -}); \ No newline at end of file +}); http://git-wip-us.apache.org/repos/asf/phoenix/blob/e921ef27/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 3084b5d..46f97f8 100644 --- a/pom.xml +++ b/pom.xml @@ -456,6 +456,30 @@ </reportPlugins> </configuration> </plugin> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <!-- Header on changelog isn't normal --> + <exclude>CHANGES</exclude> + <!-- IDE configuration --> + <exclude>dev/phoenix.importorder</exclude> + <!-- Release L&N --> + <exclude>dev/release_files/LICENSE</exclude> + <exclude>dev/release_files/NOTICE</exclude> + <!-- Exclude data files for examples --> + <exclude>docs/*.csv</exclude> + <exclude>examples/*.csv</exclude> + <!-- Exclude SQL files from rat. Sqlline 1.1.9 doesn't work with + comments on the first line of a file. --> + <exclude>examples/*.sql</exclude> + <exclude>examples/pig/testdata</exclude> + <!-- precommit? --> + <exclude>**/patchprocess/**</exclude> + </excludes> + </configuration> + </plugin> </plugins> </build>