-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test to specify licenseSet includes from CLI #878
Test to specify licenseSet includes from CLI #878
Conversation
53e2b8e
to
c110f26
Compare
The third flavor is the one that existed before and was deprecated: Line 209 in fceb1b2
But to be considered, a nearly complete legacy config has to be provided: Lines 569 to 571 in fceb1b2
Lines 87 to 88 in fceb1b2
I think we should add one, yes, like you did in this PR, so that you an do for example:
I will try that... Anyway, this PR updating the properties make sense. |
@mathieu : the test initial states are wrong IMO. The pom config should reflect the correct state of the project. So if we have this:
And we commit the file Unformatted2.java, It means that in main, I should have all the files according to the filters formatted with the correct license. Which means Unformatted1 and 3 should be formatted correctly already. To simulate a commit-hook acting on a new file, Unformatted1.java and Unformatted3.java should be formatted because Unformatted2.java is the one added if I understand your invoker command. Also, the commit hook should consider the number of license check definitions in the POM. If I correct the initial state and update the invoker command like that, it works:
In this example, Unformatted2.java is the new file added in the commit and the commit hook will format it based on the second header style. |
Added an IT test to reproduce the solution provided in #536. In the
tri-license-set-with-includes
integration test we have 3 licenseSets and would only need to format theUnformatted2.java
file via the command line.On needs to update the
license-maven-plugin/src/it/tri-license-set-with-includes/invoker.properties
files to test others ways of setting this.It fails for me with the following variations: