From 7b59074b400974b57e9c4cd84269acd39d7a7f9a Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Mon, 12 Dec 2022 22:29:17 +0100 Subject: [PATCH] Remove obsolete ITs --- .../invoker.properties | 21 ------- .../MCOMPILER-500-package-info-incr/pom.xml | 50 ---------------- .../src/main/java/dummy/Person.java | 38 ------------ .../src/main/java/dummy/foo/Person.java | 38 ------------ .../src/main/java/dummy/package-info.java | 23 ------- .../verify.groovy | 27 --------- .../invoker.properties | 19 ------ src/it/default-incremental-disable/pom.xml | 60 ------------------- .../src/main/java/MyClass.java | 23 ------- .../src/test/java/MyTest.java | 26 -------- .../default-incremental-disable/verify.groovy | 25 -------- 11 files changed, 350 deletions(-) delete mode 100644 src/it/MCOMPILER-500-package-info-incr/invoker.properties delete mode 100644 src/it/MCOMPILER-500-package-info-incr/pom.xml delete mode 100644 src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java delete mode 100644 src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java delete mode 100644 src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java delete mode 100644 src/it/MCOMPILER-500-package-info-incr/verify.groovy delete mode 100644 src/it/default-incremental-disable/invoker.properties delete mode 100644 src/it/default-incremental-disable/pom.xml delete mode 100644 src/it/default-incremental-disable/src/main/java/MyClass.java delete mode 100644 src/it/default-incremental-disable/src/test/java/MyTest.java delete mode 100644 src/it/default-incremental-disable/verify.groovy diff --git a/src/it/MCOMPILER-500-package-info-incr/invoker.properties b/src/it/MCOMPILER-500-package-info-incr/invoker.properties deleted file mode 100644 index 367af02d..00000000 --- a/src/it/MCOMPILER-500-package-info-incr/invoker.properties +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -invoker.goals = clean compile -invoker.buildResult = success -invoker.goals.2 = compile -invoker.buildResult.2 = success \ No newline at end of file diff --git a/src/it/MCOMPILER-500-package-info-incr/pom.xml b/src/it/MCOMPILER-500-package-info-incr/pom.xml deleted file mode 100644 index c79c3f9a..00000000 --- a/src/it/MCOMPILER-500-package-info-incr/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 4.0.0 - - org.apache.maven.plugins - maven-compiler-plugin-it-package-info-incr - 1.0.0-SNAPSHOT - jar - - - UTF-8 - - - - - org.apache.maven.plugins - maven-compiler-plugin - @pom.version@ - - false - - **/package-info.java - - - - - - diff --git a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java deleted file mode 100644 index e5fbf583..00000000 --- a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java +++ /dev/null @@ -1,38 +0,0 @@ -package dummy; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -public class Person { - private long id; - private String name; - - public long getId() { - return id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} diff --git a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java deleted file mode 100644 index 9b56c1d6..00000000 --- a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java +++ /dev/null @@ -1,38 +0,0 @@ -package dummy.foo; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -public class Person { - private long id; - private String name; - - public long getId() { - return id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} diff --git a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java deleted file mode 100644 index ed72542b..00000000 --- a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * This is the package javadoc - */ -package dummy; \ No newline at end of file diff --git a/src/it/MCOMPILER-500-package-info-incr/verify.groovy b/src/it/MCOMPILER-500-package-info-incr/verify.groovy deleted file mode 100644 index ecba9c29..00000000 --- a/src/it/MCOMPILER-500-package-info-incr/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -def logFile = new File( basedir, 'build.log' ) -assert logFile.exists() -content = logFile.text - -assert 1 == content.count( 'Changes detected - recompiling the module!' ) -assert 1 == content.count( 'Nothing to compile - all classes are up to date' ) - - diff --git a/src/it/default-incremental-disable/invoker.properties b/src/it/default-incremental-disable/invoker.properties deleted file mode 100644 index 5f1421e8..00000000 --- a/src/it/default-incremental-disable/invoker.properties +++ /dev/null @@ -1,19 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -invoker.goals = clean test-compile -invoker.goals.2 = test-compile diff --git a/src/it/default-incremental-disable/pom.xml b/src/it/default-incremental-disable/pom.xml deleted file mode 100644 index 5eb59dfe..00000000 --- a/src/it/default-incremental-disable/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 4.0.0 - - org.apache.maven.plugins.compiler.it - default-incremental-disable - 1.0-SNAPSHOT - - Test for default configuration - - - UTF-8 - - - - - junit - junit - 3.8.2 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - @pom.version@ - - false - - -Xlint:-path - - - - - - - diff --git a/src/it/default-incremental-disable/src/main/java/MyClass.java b/src/it/default-incremental-disable/src/main/java/MyClass.java deleted file mode 100644 index 4945381a..00000000 --- a/src/it/default-incremental-disable/src/main/java/MyClass.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class MyClass -{ - -} diff --git a/src/it/default-incremental-disable/src/test/java/MyTest.java b/src/it/default-incremental-disable/src/test/java/MyTest.java deleted file mode 100644 index 46ba41d4..00000000 --- a/src/it/default-incremental-disable/src/test/java/MyTest.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import junit.framework.TestCase; - -public class MyTest - extends TestCase -{ - -} diff --git a/src/it/default-incremental-disable/verify.groovy b/src/it/default-incremental-disable/verify.groovy deleted file mode 100644 index 2f72f1c9..00000000 --- a/src/it/default-incremental-disable/verify.groovy +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -assert new File( basedir, "target/classes/MyClass.class" ).exists(); -assert new File( basedir, "target/test-classes/MyTest.class" ).exists(); - -content = new File( basedir, 'build.log' ).text; - -assert content.contains("Nothing to compile - all classes are up to date");