edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EDGENT-284) Check all source files have license headers
Date Fri, 21 Oct 2016 21:31:59 GMT

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

Justin Mclean commented on EDGENT-284:
--------------------------------------

Apache rat will do this (and more):
https://creadur.apache.org/rat/

> Check all source files have license headers
> -------------------------------------------
>
>                 Key: EDGENT-284
>                 URL: https://issues.apache.org/jira/browse/EDGENT-284
>             Project: Edgent
>          Issue Type: Sub-task
>            Reporter: Dale LaBossiere
>            Assignee: Dale LaBossiere
>
> TODO check into existing tools for this.
> In the mean time, these steps should be a sensible substitute:
> cd edgent
> find . -name '*.java' >all.java.txt
> grep -l "Licensed to the Apache" `cat all.java.txt` > lic.java.txt
> diff {all,lic}.java.txt
> find . -name '*.sh' >all.sh.txt
> grep -l "Licensed to the Apache" `cat all.sh.txt` > lic.sh.txt
> diff {all,lic}.sh.txt
> find . -name '*.cmd' >all.cmd.txt
> grep -l "Licensed to the Apache" `cat all.cmd.txt` > lic.cmd.txt
> diff {all,lic}.cmd.txt



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

Mime
View raw message