You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Philipp Ottlinger (JIRA)" <ji...@apache.org> on 2019/06/12 19:51:00 UTC
[jira] [Comment Edited] (RAT-255) How to put the location of the
license header on top of the package
[ https://issues.apache.org/jira/browse/RAT-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862399#comment-16862399 ]
Philipp Ottlinger edited comment on RAT-255 at 6/12/19 7:50 PM:
----------------------------------------------------------------
Just had a look into the code - the "package" is used as a marker to add licenses into Java files:
https://github.com/apache/creadur-rat/blob/de8e688a0e161c3bc5b3d2b2cb74506c1bc9c422/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenseAppender.java#L308
If you do not set a copyrightMessage ApacheV2LicenseAppender should add a proper ASF2.0 license text.
Did you try this out?
Is there a problem with line endings?
https://github.com/apache/creadur-rat/blob/de8e688a0e161c3bc5b3d2b2cb74506c1bc9c422/apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenseAppender.java#L54
seems to add a fixed license header.
Reformatting may depend on your IDE'S settings?!
was (Author: hugo.hirsch):
Just had a look into the code - the "package" is used as a marker to add licenses into Java files:
https://github.com/apache/creadur-rat/blob/de8e688a0e161c3bc5b3d2b2cb74506c1bc9c422/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenseAppender.java#L308
If you do not set a copyrightMessage ApacheV2LicenseAppender should add a proper ASF2.0 license text.
Did you try this out?
Is there a problem with line endings?
> How to put the location of the license header on top of the package
> -------------------------------------------------------------------
>
> Key: RAT-255
> URL: https://issues.apache.org/jira/browse/RAT-255
> Project: Apache Rat
> Issue Type: Improvement
> Components: maven
> Affects Versions: 0.13
> Reporter: slievrly
> Priority: Major
> Fix For: 0.14
>
> Attachments: image-2019-06-11-18-28-02-474.png, image-2019-06-12-11-38-26-729.png, image-2019-06-12-11-39-52-228.png
>
>
> How to put the location of the license header on top of the package?I expect the result as shown.
> !image-2019-06-11-18-28-02-474.png!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)