001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.wicket.util.license; 018 019/** 020 * Test that the license headers are in place in this project. The tests are run from 021 * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed. 022 * 023 * @author Frank Bille Jensen (frankbille) 024 */ 025public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase 026{ 027 /** 028 * Construct. 029 */ 030 public ApacheLicenceHeaderTest() 031 { 032 // addHeaders = true; 033 034 /* 035 * See NOTICE.txt 036 */ 037 htmlIgnore.add("src/main/java/org/apache/wicket/util/diff"); 038 039 xmlPrologIgnore.add("src/main/java/org/apache/wicket/util/diff"); 040 041 /* 042 * ASL1.1. Taken from Maven JRCS. See NOTICE.txt 043 */ 044 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/AddDelta.java"); 045 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ChangeDelta.java"); 046 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Chunk.java"); 047 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DeleteDelta.java"); 048 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Delta.java"); 049 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Diff.java"); 050 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffAlgorithm.java"); 051 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DifferentiationFailedException.java"); 052 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/DiffException.java"); 053 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/PatchFailedException.java"); 054 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/Revision.java"); 055 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/RevisionVisitor.java"); 056 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/ToString.java"); 057 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/DiffNode.java"); 058 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java"); 059 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/PathNode.java"); 060 javaIgnore.add("src/main/java/org/apache/wicket/util/diff/myers/Snake.java"); 061 062 javaScriptIgnore.add("src/site/xdoc/onestat.js"); 063 064 /* 065 * .js in test is very test specific and a license header would confuse and make it unclear 066 * what the test is about. 067 */ 068 javaScriptIgnore.add("src/test/java"); 069 070 /* 071 * See NOTICE.txt 072 */ 073 javaScriptIgnore.add("src/main/java/org/apache/wicket/ajax/wicket-ajax-debug-drag.js"); 074 javaScriptIgnore.add("src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.js"); 075 } 076}