diff options
27 files changed, 137 insertions, 21 deletions
diff --git a/jetty-test-helper/header-template.txt b/jetty-test-helper/header-template.txt new file mode 100644 index 0000000..07cd15e --- /dev/null +++ b/jetty-test-helper/header-template.txt @@ -0,0 +1,15 @@ + ======================================================================== + Copyright (c) ${copyright-range} Mort Bay Consulting Pty. Ltd. + ------------------------------------------------------------------------ + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Apache License v2.0 which accompanies this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + + The Apache License v2.0 is available at + http://www.opensource.org/licenses/apache2.0.php + + You may elect to redistribute this code under either of these licenses. + ========================================================================
\ No newline at end of file diff --git a/jetty-test-helper/pom.xml b/jetty-test-helper/pom.xml index 843fa8b..d3de0f7 100644 --- a/jetty-test-helper/pom.xml +++ b/jetty-test-helper/pom.xml @@ -79,6 +79,35 @@ </dependency> </dependencies> </plugin> + <plugin> + <groupId>com.mycila.maven-license-plugin</groupId> + <artifactId>maven-license-plugin</artifactId> + <version>1.10.b1</version> + <configuration> + <header>header-template.txt</header> + <failIfMissing>true</failIfMissing> + <aggregate>true</aggregate> + <strictCheck>true</strictCheck> + <properties> + <copyright-range>${project.inceptionYear}-2015</copyright-range> + </properties> + <mapping> + <java>DOUBLESLASH_STYLE</java> + </mapping> + <includes> + <include>**/*.java</include> + </includes> + </configuration> + <executions> + <execution> + <id>check-headers</id> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> <dependencies> diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/AdvancedRunner.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/AdvancedRunner.java index 0b804a5..206507b 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/AdvancedRunner.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/AdvancedRunner.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/EventQueue.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/EventQueue.java index 658296c..75376db 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/EventQueue.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/EventQueue.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/FS.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/FS.java index 601a328..0bb5f8d 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/FS.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/FS.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/IO.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/IO.java index 1f4b420..f0458ab 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/IO.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/IO.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/JAR.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/JAR.java index 8687a06..b727349 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/JAR.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/JAR.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java index 407b40f..5440a6b 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/OS.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/OS.java index 96de76a..db82baf 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/OS.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/OS.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PathAssert.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PathAssert.java index 7ab59c2..e1ec9f8 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PathAssert.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PathAssert.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PropertyFlag.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PropertyFlag.java index 316ec6d..f1f9c71 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PropertyFlag.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/PropertyFlag.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/SimpleRequest.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/SimpleRequest.java index a52c17e..4a2ada0 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/SimpleRequest.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/SimpleRequest.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringAssert.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringAssert.java index 8fde4d5..e9cc86a 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringAssert.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringAssert.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringMangler.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringMangler.java index 8684bdb..06e22b4 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringMangler.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/StringMangler.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestTracker.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestTracker.java index 2d366fa..a315029 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestTracker.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestTracker.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestingDir.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestingDir.java index 31d5add..3c9df85 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestingDir.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/TestingDir.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Slow.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Slow.java index e8eaad4..0828bbf 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Slow.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Slow.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Stress.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Stress.java index 895ba03..b803bce 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Stress.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/annotation/Stress.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpParser.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpParser.java index f029ae0..5ebc7b0 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpParser.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpParser.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpResponse.java b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpResponse.java index 317d766..2bca59f 100644 --- a/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpResponse.java +++ b/jetty-test-helper/src/main/java/org/eclipse/jetty/toolchain/test/http/SimpleHttpResponse.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/AdvancedExampleTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/AdvancedExampleTest.java index b829b89..24c6a20 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/AdvancedExampleTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/AdvancedExampleTest.java @@ -1,3 +1,21 @@ +// +// ======================================================================== +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + package org.eclipse.jetty.toolchain.test; import org.eclipse.jetty.toolchain.test.annotation.Slow; diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/EventQueueTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/EventQueueTest.java index 40b96ed..cb217ec 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/EventQueueTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/EventQueueTest.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/FSTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/FSTest.java index 0dc49c6..fed7025 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/FSTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/FSTest.java @@ -1,3 +1,21 @@ +// +// ======================================================================== +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + package org.eclipse.jetty.toolchain.test; import static org.hamcrest.CoreMatchers.*; diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/MavenTestingUtilsTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/MavenTestingUtilsTest.java index 34a9360..15286c5 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/MavenTestingUtilsTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/MavenTestingUtilsTest.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/OSTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/OSTest.java index d8444f8..72e60b9 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/OSTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/OSTest.java @@ -1,3 +1,21 @@ +// +// ======================================================================== +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + package org.eclipse.jetty.toolchain.test; import org.junit.Assert; diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/StringManglerTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/StringManglerTest.java index 1d2e83c..d53e6bc 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/StringManglerTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/StringManglerTest.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 diff --git a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/TestingDirTest.java b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/TestingDirTest.java index eca0d93..789c619 100644 --- a/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/TestingDirTest.java +++ b/jetty-test-helper/src/test/java/org/eclipse/jetty/toolchain/test/TestingDirTest.java @@ -1,3 +1,21 @@ +// +// ======================================================================== +// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + package org.eclipse.jetty.toolchain.test; import static org.hamcrest.CoreMatchers.*; |