Bukama commented on PR #525:
URL: https://github.com/apache/maven-parent/pull/525#issuecomment-3591989259

   As you can see in the config this is just a draft to check what's possble.
   As the empty package is not supported I chose to define a `//nopackage` 
string as an alternative to the default values (for the cases there are "real" 
groovy files).
   
   So a file must either start with one of those (taking `package` from the 
default list here).
   ```
   //nopackage
   File buildLog = new File( basedir, 'build.log' )
   assert buildLog.exists()
   ```
   or
   ```
   package whatever
   File buildLog = new File( basedir, 'build.log' )
   assert buildLog.exists()
   ```
   
   To automatically adding a licence, I would (re-)create the 
`<file>config/maven-header-plain.txt</file>` file, which is mentioned in the 
java configuration but does not exists and therefore is not applied.
   
   
   I tested with some files in the PMD-plugin to ensure the configuration (file 
recognition, removing semicolons, adding licence) works


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to