enforces proper license notice

This commit is contained in:
hneemann 2018-03-02 08:51:19 +01:00
parent 8582672cba
commit ff186c8782
2 changed files with 8 additions and 7 deletions

View File

@ -18,7 +18,7 @@ import java.util.Iterator;
* http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative
* Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
* <p>
* Minor modifications made be hneemann, 2011-05-17
* Minor modifications made by hneemann, 2017-05-17
*/
public class GifSequenceWriter implements AutoCloseable {
private ImageWriter gifWriter;

View File

@ -117,15 +117,16 @@ public class TestLang extends TestCase {
}
}
if (f.getName().equals("GifSequenceWriter.java"))
// Do not add files without permission from Helmut Neemann!
if (f.getName().equals("GifSequenceWriter.java")) // Creative Commons Attribution 3.0 Unported License
return;
if (state != 2)
throw new IOException("found file without proper license notice: " + f+ "\n\n"
+"Every java file must contain the lines\n\n"
+" * Use of this source code is governed by the GPL v3 license\n"
+" * that can be found in the LICENSE file.\n\n"
+"Add these lines only if you have the right to do that!");
throw new IOException("found java file without proper license notice: " + f + "\n\n"
+ "Every java file must contain the lines\n\n"
+ " * Use of this source code is governed by the GPL v3 license\n"
+ " * that can be found in the LICENSE file.\n\n"
+ "Add these lines only if you have the right to do that!");
}
private static final String PATTERN = "Lang.get(\"";