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?

0
3 comments

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.

0

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.

0

Please sign in to leave a comment.