www-legal-discuss mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: Test files with no license information
Date Thu, 03 Apr 2008 08:04:07 GMT
Bertrand Delacretaz ha scritto:
> On Thu, Apr 3, 2008 at 1:17 AM, Santiago Gala <sgala@apache.org> wrote:
> 
>>  ....wouldn't it work to have a per project plain text file somewhere which
>>  rat uses as input for "exceptional" files? I mean, changed on this file
>>  could be voted on a case by case basis, say, when a release is going to
>>  be cut after new tests are added, etc....
> 
> +1, I've thinking about that for a while but didn't find time to help
> implementing it.
> 
> IMHO, the output of rat should be a single pass/fail value, based on
> the list of exceptions defined in that file, where file patterns are
> mapped to reasons for not having license headers.
> 
> And those reasons could be agreed upon constants like TEST_DATA,
> NOT_CREATIVE, etc.
> 
> -Bertrand

In jSPF we use maven to run RAT and we configured it to exclude files we 
know have no header.:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rat-maven-plugin</artifactId>
<configuration>
   <excludes>
     <!-- 3rd party resources described in NOTICE:
          see the maven-remote-resources-plugin configuration, in this 
file -->
 
<exclude>src/test/resources/org/apache/james/jspf/pyspf-tests.yml</exclude>
 
<exclude>src/test/resources/org/apache/james/jspf/rfc4408-tests.yml</exclude>
     <exclude>src/test/resources/org/apache/james/jspf/tests.yml</exclude>
 
<exclude>src/test/resources/org/apache/james/jspf/test_live.txt</exclude>
 
<exclude>src/test/resources/org/apache/james/jspf/test_parser.txt</exclude>
 
<exclude>src/test/resources/org/apache/james/jspf/test_rfc_examples.txt</exclude>
     <!-- 3rd party descriptors distributed via maven repositories
          and included "as is" -->
     <exclude>stage/commons-cli/poms/commons-cli-1.1.pom</exclude>
 
<exclude>stage/org.apache.james/xmls/james-parent-1.1-site.xml</exclude>
 
<exclude>stage/org.apache.james/xmls/james-parent-1.1-site_en.xml</exclude>
 
<exclude>stage/org.apache.james/xmls/james-project-1.2-site.xml</exclude>
 
<exclude>stage/org.apache.james/xmls/james-project-1.2-site_en.xml</exclude>
     <exclude>release.properties</exclude>
   </excludes>
</configuration>
</plugin>

Then we added informations about the license/copyright also in the pom:
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.0-alpha-5</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles>
<resourceBundle>org.apache:apache-jar-resource-bundle:1.2</resourceBundle>
</resourceBundles>
<properties>
       <!--  <preProjectText>PRE PROCESS TEXT</preProjectText>  -->
       <postProjectText>This product includes/uses software, JUnit 
(http://www.junit.org/),
developed by Kent Beck, Erich Gamma, and David Saff
License: Common Public License Version 1.0 
(http://www.opensource.org/licenses/cpl.php)

This product has been inspired from the spfjava library
written by Roger Fullerton and Neil Murray.

This product contains DNS-aware tests inspired by DNSJava
test code written and copyrighted by Brian Wellington, too.
(see src\test\java\org\apache\james\jspf\dnsserver\ files)

This product contains resources (SPF parser tests: test_parser.txt
and test_rfc_examples.txt) derived from the libspf2 library
(http://www.libspf2.org/) and distributed under the BSD license
and copyright by Wayne Schlitt, Shevek.
(see src\test\resources\org\apache\james\jspf\libspf2.LICENSE)

This product contains resources (rfc4408-tests.yml) from the
openspf group, distributed under the BSD license and copyright
by Stuart D. Gathman and Julian Mehnle.
(see src\test\resources\org\apache\james\jspf\rfc4408-tests.LICENSE)

This product contains resources (tests.yml, pyspf-tests.yml)
from the pyspf library (http://cheeseshop.python.org/pypi/pyspf)
distributed under the Python Software Foundation License and
copyright by Terence Way, Stuart Gathman (stuart@bmsi.com) and
Scott Kitterman.
(see src\test\resources\org\apache\james\jspf\pyspf.LICENSE)

This file is automatically generated by dependencies declared in pom.xml
						</postProjectText>
       <addLicense>true</addLicense>
</properties>
</configuration>
</execution>
</executions>
</plugin>

This way the final NOTICE contains informations about that files.

Stefano


---------------------------------------------------------------------
DISCLAIMER: Discussions on this list are informational and educational
only.  Statements made on this list are not privileged, do not
constitute legal advice, and do not necessarily reflect the opinions
and policies of the ASF.  See <http://www.apache.org/licenses/> for
official ASF policies and documents.
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org


Mime
View raw message