mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -04:00
enforces proper license notice
This commit is contained in:
parent
8582672cba
commit
ff186c8782
@ -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;
|
||||
|
@ -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(\"";
|
||||
|
Loading…
x
Reference in New Issue
Block a user