Re: New pattern for license converter tool

2017-10-06 Thread Jan Lahoda
I've just opened: https://github.com/apache/incubator-netbeans/pull/72 (files from active pull requests have been excluded from the patch; the patch rewrites 48 files.) Jan On Thu, Oct 5, 2017 at 3:43 PM, Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Can you/have you run the

Re: New pattern for license converter tool

2017-10-04 Thread Jan Lahoda
FWIW, I've changed the tool to accept license headers in the second comment in the file, and changed the limit where the comment must start to 300. This seems to cover about 63 additional files. For the examples-readme.txt, the comment/header detection in such files is tricky. I think the reason

Re: New pattern for license converter tool

2017-10-04 Thread Geertjan Wielenga
Great! Another similar one is in api.visual/examples-readme.txt. Gj On Wed, Oct 4, 2017 at 5:36 AM, Jan Lahoda wrote: > I think there are two problem with these files: > -the tool only looks for the first comment, and the headers in these files > are in the second comment,

Re: New pattern for license converter tool

2017-10-04 Thread Jan Lahoda
I think there are two problem with these files: -the tool only looks for the first comment, and the headers in these files are in the second comment, so the tool won't find it. -the tool only looks for comments that begin in the first 100 characters from the beginning (a safety feature, as a few

New pattern for license converter tool

2017-10-04 Thread Geertjan Wielenga
Hi all, Yesterday at JavaOne, some of us got together to work on the Modules Review and found a new pattern that needs to be handled in the converter tool. The pattern can be found in several hundred files, so we can clean these all up at the same time by twesking the tool for this. Here are