Repository: wicket Updated Branches: refs/heads/wicket-6.x b4d770c02 -> bb5a7e842
Revert the old ApacheLicenceHeaderTest to make Clirr happy. Introduce a copy in src/test. Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/0f463a8c Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0f463a8c Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0f463a8c Branch: refs/heads/wicket-6.x Commit: 0f463a8cd00e2f67175650c863a3482d2d9f7baa Parents: b4d770c Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Mon Nov 3 15:26:12 2014 +0200 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Mon Nov 3 15:26:12 2014 +0200 ---------------------------------------------------------------------- .../apache/wicket/util/io/BOMInputStream.java | 4 +- .../util/license/ApacheLicenceHeaderTest.java | 76 ++++++++++++++++++++ .../util/license/ApacheLicenceHeaderTest.java | 76 -------------------- .../WicketUtilApacheLicenceHeaderTest.java | 76 ++++++++++++++++++++ 4 files changed, 154 insertions(+), 78 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java ---------------------------------------------------------------------- diff --git a/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java b/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java index b870278..075dc89 100644 --- a/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java +++ b/wicket-util/src/main/java/org/apache/wicket/util/io/BOMInputStream.java @@ -5,9 +5,9 @@ * 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. http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java ---------------------------------------------------------------------- diff --git a/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java b/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java new file mode 100644 index 0000000..36034cc --- /dev/null +++ b/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java @@ -0,0 +1,76 @@ +/* + * 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. + */ +package org.apache.wicket.util.license; + +/** + * Test that the license headers are in place in this project. The tests are run from + * {@link org.apache.wicket.util.license.ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed. + * + * @author Frank Bille Jensen (frankbille) + */ +public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase +{ + /** + * Construct. + */ + public ApacheLicenceHeaderTest() + { + // addHeaders = true; + + /* + * See NOTICE.txt + */ + htmlIgnore.add("src/main/java/org/apache/wicket/util/diff"); + + xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff"); + + /* + * ASL1.1. Taken from Maven JRCS. See NOTICE.txt + */ + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java"); + + javaScriptIgnore.add("src/site/xdoc/onestat.js"); + + /* + * .js in test is very test specific and a license header would confuse and make it unclear + * what the test is about. + */ + javaScriptIgnore.add("src/test/java"); + + /* + * See NOTICE.txt + */ + javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js"); + javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js"); + } +} http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java ---------------------------------------------------------------------- diff --git a/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java b/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java deleted file mode 100644 index 0a243c0..0000000 --- a/wicket-util/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java +++ /dev/null @@ -1,76 +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. - */ -package org.apache.wicket.util.license; - -/** - * Test that the license headers are in place in this project. The tests are run from - * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed. - * - * @author Frank Bille Jensen (frankbille) - */ -public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase -{ - /** - * Construct. - */ - public ApacheLicenceHeaderTest() - { - // addHeaders = true; - - /* - * See NOTICE.txt - */ - htmlIgnore.add("src/main/java/org/apache/wicket/util/diff"); - - xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff"); - - /* - * ASL1.1. Taken from Maven JRCS. See NOTICE.txt - */ - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java"); - javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java"); - - javaScriptIgnore.add("src/site/xdoc/onestat.js"); - - /* - * .js in test is very test specific and a license header would confuse and make it unclear - * what the test is about. - */ - javaScriptIgnore.add("src/test/java"); - - /* - * See NOTICE.txt - */ - javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js"); - javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js"); - } -} http://git-wip-us.apache.org/repos/asf/wicket/blob/0f463a8c/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java ---------------------------------------------------------------------- diff --git a/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java b/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java new file mode 100644 index 0000000..743cdf4 --- /dev/null +++ b/wicket-util/src/test/java/org/apache/wicket/util/license/WicketUtilApacheLicenceHeaderTest.java @@ -0,0 +1,76 @@ +/* + * 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. + */ +package org.apache.wicket.util.license; + +/** + * Test that the license headers are in place in this project. The tests are run from + * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed. + * + * @author Frank Bille Jensen (frankbille) + */ +public class WicketUtilApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase +{ + /** + * Construct. + */ + public WicketUtilApacheLicenceHeaderTest() + { + // addHeaders = true; + + /* + * See NOTICE.txt + */ + htmlIgnore.add("src/main/java/org/apache/wicket/util/diff"); + + xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff"); + + /* + * ASL1.1. Taken from Maven JRCS. See NOTICE.txt + */ + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java"); + javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java"); + + javaScriptIgnore.add("src/site/xdoc/onestat.js"); + + /* + * .js in test is very test specific and a license header would confuse and make it unclear + * what the test is about. + */ + javaScriptIgnore.add("src/test/java"); + + /* + * See NOTICE.txt + */ + javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js"); + javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js"); + } +}
