Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-19 Thread slievrly
Hi, 3. Here we don't have to set a header, it can be generated automatically. But it is automatically generated inconsistent with the location of our current existing header and the broken line words for each line. We want a fixed header, so we need to consider setting the copyrightMessage

Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-18 Thread Justin Mclean
Hi, > 3. When setting copyrightMsg, it cannot format in the given format. There should be no copyright message in ASF headers. > 4. When using the apache rat command line, it was found that it could not be > run. I’ve used successfully in the past, what issues did you run into? They may be

Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-18 Thread slievrly
In the past, I tried to add a license header using apache rat, but some problems have occurred. I have discussed with Philipp Ottlinger on these issues. ref: https://issues.apache.org/jira/browse/RAT-255 Current problems: 1. The maven plugin of apache rat automatically adds the license header.

Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-06 Thread slievrly
I am sorry for my late reply. Thank you very much for Justin's suggestion. I will try to integrate the project with the rat plugin and use it for formatting the license header. I will reply to the test results later. Thank you everybody! Justin Mclean 于2019年6月5日周三 下午10:00写道: > Hi, > > > It's

Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-05 Thread Justin Mclean
Hi, > It's good to know rat plugin can do this, but we need figure out how to > apply rat plugin to file like `InternalThreadLocal.java` ( > https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/threadlocal/InternalThreadLocal.java > ) If it’s "Copyright

Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-05 Thread YunKun Huang
I agree to have a plugin to handle license header work. It's good to know rat plugin can do this, but we need figure out how to apply rat plugin to file like `InternalThreadLocal.java` (

Re: [DISCUSS] How to automatically format the license header of the source file

2019-06-04 Thread Justin Mclean
Hi, > rat plugin > just > check license header but not update and format license header. Rat can add licenses with the -a and -A options. Thanks, Justin