All source code stored in the repository must contain the standard Apache copyright and license. A copy of the
license, as a comment block, is stored as support/license.txt
Realize that you are assigning copyright to the Apache Software Foundation.
The contents of this file can be pasted in directly before the package
statement of a Java source file.
Alternately, a Python script is provided which can locate all Java source files within a directory tree and ensure that the leading comment block is correct. It modifies any source files where the leading comment doesn't match, but does not modify any files where the leading comment matches.
To use the script, execute the command
python support/update-copyrights.py LICENSE.txt directory ...
.
You may specify any number of directories, though the script is fast enough that just using "." (for current directory) is easiest.
Cygwin Python | |
---|---|
On my computer (running Windows XP and/or 2000), when using the Cygwin version of Python, it is necessary to execute the script from the Bash shell, not the standard Windows command line. |