I made a small update to the converter tool in the netbeans-tools. See https://github.com/apache/netbeans-tools/pull/41
Eric Bresie [email protected] On Sun, Jan 3, 2021 at 1:39 PM Eric Bresie <[email protected]> wrote: > > On Sat, Jan 2, 2021 at 11:56 AM Matthias Bläsing < > [email protected]> wrote: > >> Hi, >> >> Am Samstag, den 02.01.2021, 11:38 -0600 schrieb Eric Bresie: >> > On Thu, Dec 31, 2020 at 1:41 AM Matthias Bläsing < >> > [email protected]> >> > wrote: >> > >> > > Am Mittwoch, den 30.12.2020, 16:24 -0600 schrieb Eric Bresie: >> > > >> > > See the "Convert" Tool, this might help with the correct mostly >> > > automatic translation: >> > > >> > > >> https://github.com/apache/netbeans-tools/blob/master/convert/src/convert/Convert.java >> > > >> > > This is part of the netbeans-tools repository: >> > > >> > > https://github.com/apache/netbeans-tools/ >> > > >> > > And the whole project is here: >> > > >> > > https://github.com/apache/netbeans-tools/tree/master/convert >> > > >> > >> > EB ==> Pulled the tool and started attempting to use this on the local >> > codebase. >> > >> > EB ==> However when attempting it finds a "META-INF\LICENSE" file >> without >> > an extension which when attempting the "name.indexOf(".") on the file >> > causes an index out of bound issue (i.e. there is no extension so >> checks on >> > specific extensions fails). >> >> Feel free to fix. The netbeans-tools repository is also just an Apache >> repository holding tools (as the name implies). > > > Okay with a minor tweak to account for this case I was able to get it to > iterate through each of the files and replace the header with the Apache > licenses in most cases. > > Eric Bresie > [email protected] >
