[ 
https://issues.apache.org/jira/browse/GEODE-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029314#comment-15029314
 ] 

Niall Pemberton commented on GEODE-18:
--------------------------------------

 - I actually wrote a bit of crappy code to detect the Pivotal/VMWare/AS-IS 
licenses and replace them, plus add licenses to those files with none, so I 
dont actually use RAT to do this

 - However you can add the {{-A -f}} flags to the RAT command to add license 
headers
   ** Note though RAT adds the license after the java package, whereas my 
utility did it before (which is what the other ASF projects I worked on do)

Example RAT Command to add license headers:

{code}
java -jar /j/apache-rat-0.11/apache-rat-0.11.jar -A -f -d 
/git/geode/geode-develop -E /git/geode/geode-rat-excludes.txt
{code}

> Initial Code Cleanup
> --------------------
>
>                 Key: GEODE-18
>                 URL: https://issues.apache.org/jira/browse/GEODE-18
>             Project: Geode
>          Issue Type: Task
>          Components: general
>    Affects Versions: 1.0.0-incubating
>            Reporter: Niall Pemberton
>            Assignee: Dick Cavender
>             Fix For: 1.0.0-incubating
>
>         Attachments: 
> 0001-Replace-Pivotal-License-Header-with-Apache-License.patch, 
> 0002-Add-Missing-Apache-License-headers.patch, 
> 0003-Remove-Pivotal-VMWare-AsIs-License-and-add-ASF-Licen.patch, 
> 0004-Add-ASF-License-Header-to-scala-files.patch, 
> 0005-Add-ASF-License-Header-to-XML-files.patch, 
> 0006-Add-ASF-License-Header-to-DTD-XSD-files.patch, 
> 0007-Add-ASF-License-Header-to-HTML-files.patch, 
> 0008-Change-Swagger-ApiInfo-from-Pivotal-Gemfire-to-Apach.patch, 
> 0009-Add-Update-ASF-License-to-java-files.patch, 
> 0010-Add-ASF-License-to-html-xml-xsd-dtd-files.patch, 
> geode-rat-excludes-2015-10-19.txt, geode-rat-excludes-2015-10-24.txt, 
> geode-rat-excludes-2015-11-22.txt, geode-rat-report-2015-05-11.txt, 
> geode-rat-report-2015-05-17.txt, geode-rat-report-2015-10-19.txt, 
> geode-rat-report-2015-10-24.txt, geode-rat-report-2015-11-17.txt, 
> geode-rat-report-2015-11-22.txt
>
>
> Please see the Incubator guide:
>     * http://incubator.apache.org/guides/mentor.html#initial-clean-up
> Source & Notice File policy:
>     * http://www.apache.org/legal/src-headers.html
> Apache RAT is a tool that can help with source file headers:
>      * http://creadur.apache.org/rat/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to