copyright notice: amend rather than replace
Answered
I have a copyright notice that looks like this:
Copyright 2010, 2015 Foo Corp. All Rights Reserved.
When IntelliJ updates it, I'd like it to look like this:
Copyright 2010, 2016 Foo Corp. All Rights Reserved.
This is the format and means of updating that my corporate counsel has mandated.
Is there a way to do this with the built-in copyright plugin?
Please sign in to leave a comment.
Did you check https://www.jetbrains.com/help/idea/2016.2/generating-and-updating-copyright-notice.html?
What is the problem with updating the copyright notice?
Indeed I did see that link. The problem with updating the copyright notice is that it does not produce the form I require. In particular there does not appear to be a way to reference the existing copyright notice. One solution, for example, would be for the Velocity context to include a string variable for the existing copyright notice that templates could then parse.
Feature request is welcome at https://youtrack.jetbrains.com/issues/IDEA.
You could use search and replace with regular expressions to reference the previous parts of the copyright.