Return-Path: X-Original-To: apmail-creadur-dev-archive@www.apache.org Delivered-To: apmail-creadur-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B6C2E7FF for ; Mon, 18 Feb 2013 21:19:13 +0000 (UTC) Received: (qmail 66255 invoked by uid 500); 18 Feb 2013 21:19:13 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 66125 invoked by uid 500); 18 Feb 2013 21:19:12 -0000 Mailing-List: contact dev-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list dev@creadur.apache.org Received: (qmail 66098 invoked by uid 99); 18 Feb 2013 21:19:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 21:19:12 +0000 Date: Mon, 18 Feb 2013 21:19:12 +0000 (UTC) From: "Robert Burrell Donkin (JIRA)" To: dev@creadur.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (RAT-125) Support applied ASL20 license headers, including checking for required copyright header line MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/RAT-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Burrell Donkin reassigned RAT-125: ----------------------------------------- Assignee: Robert Burrell Donkin > Support applied ASL20 license headers, including checking for required copyright header line > -------------------------------------------------------------------------------------------- > > Key: RAT-125 > URL: https://issues.apache.org/jira/browse/RAT-125 > Project: Apache Rat > Issue Type: Improvement > Affects Versions: 0.9 > Reporter: Ate Douma > Assignee: Robert Burrell Donkin > Fix For: 0.9 > > Attachments: RAT-125.patch > > > While checking on an ASL20 license header itself is supported by Apache Rat (duh), properly checking an applied ASL20 license (for usage *outside* the ASF) isn't supported yet. > I've created an AppliedApacheSoftwareLicense20 check which does check this, using the http://apache.org/licenses/LICENSE-2.0.html#apply template as template (duh). > This header matcher itself extends a more generic CopyrightHeader matcher, which only takes care of the copyright header line validation, using a regex pattern + configurable copyright owner. > As an example the following configuration: > > org.apache.rat > apache-rat-plugin > 0.9-SNAPSHOT > > > > FooBar \(www\.foobar\.com\) > > > > > > will properly match a license header like: > Copyright 2012 FooBar (www.foobar.com) > Licensed 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. > > I'll attach a patch with the two header matchers + unit tests shortly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira