I want to add our company\'s copyright information to all of our EXISTING source code files.
The project is developed in Eclipse
. so, for new files I can m
I think you can use Eclipse replace command using Regular Expression.
Imagine that your copyright is something like:
/* jQuery UI CSS Framework
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
*/
then
1. Go to menu: Search -> File
2. in the Search dialog
2.1. check the "Regular Expression"
2.2. in the Containing text:
\A[^(\Q/*\E\s+jQuery.*)]
2.3 click the Replace
past your copyright
Explanation of regex:
\A - Start of the file
\Q...\E - Here goes the regex keywords ( because / and * are keys in regex )
\s+ - whitespaces
[^(..)] - means except