From 4ee5c436a94eb44d36b1970cc469d2007616f9a3 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 14 May 2022 16:38:59 +0200 Subject: [PATCH] Unify and simplify test-projects (#152) - check-in the .classpath/.project file into git - use "bin" as output-folder - remove unnecessary plugin_customization.ini, pom.xml and launch files. --- .gitignore | 8 +++ .project | 17 ++++++ org.eclipse.m2e.editor.tests/.classpath | 15 ++++++ org.eclipse.m2e.editor.tests/.gitignore | 5 -- org.eclipse.m2e.editor.tests/.project | 28 ++++++++++ org.eclipse.m2e.editor.tests/build.properties | 2 +- .../m2e.editor.tests.launch | 43 --------------- .../plugin_customization.ini | 11 ---- org.eclipse.m2e.editor.tests/pom.xml | 54 ------------------- org.eclipse.m2e.tests/.classpath | 15 ++++++ org.eclipse.m2e.tests/.gitignore | 5 -- org.eclipse.m2e.tests/.project | 28 ++++++++++ org.eclipse.m2e.tests/build.properties | 2 +- .../plugin_customization.ini | 11 ---- org.eclipse.m2e.tests/pom.xml | 44 --------------- 15 files changed, 113 insertions(+), 175 deletions(-) create mode 100644 .project create mode 100644 org.eclipse.m2e.editor.tests/.classpath delete mode 100644 org.eclipse.m2e.editor.tests/.gitignore create mode 100644 org.eclipse.m2e.editor.tests/.project delete mode 100644 org.eclipse.m2e.editor.tests/m2e.editor.tests.launch delete mode 100644 org.eclipse.m2e.editor.tests/plugin_customization.ini delete mode 100644 org.eclipse.m2e.editor.tests/pom.xml create mode 100644 org.eclipse.m2e.tests/.classpath delete mode 100644 org.eclipse.m2e.tests/.gitignore create mode 100644 org.eclipse.m2e.tests/.project delete mode 100644 org.eclipse.m2e.tests/plugin_customization.ini delete mode 100644 org.eclipse.m2e.tests/pom.xml diff --git a/.gitignore b/.gitignore index be6a6a3b5..b893b6323 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,15 @@ .classpath .project +# Keep .classpath/.project files for this and direct child projects +!/.project +!/*/.classpath +!/*/.project + .settings/ target/ bin/ .DS_Store + +.polyglot* +.tycho-consumer-pom.xml diff --git a/.project b/.project new file mode 100644 index 000000000..e79beb5a2 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + m2e-core-tests + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/org.eclipse.m2e.editor.tests/.classpath b/org.eclipse.m2e.editor.tests/.classpath new file mode 100644 index 000000000..73d6894a6 --- /dev/null +++ b/org.eclipse.m2e.editor.tests/.classpath @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/org.eclipse.m2e.editor.tests/.gitignore b/org.eclipse.m2e.editor.tests/.gitignore deleted file mode 100644 index b3e07c21f..000000000 --- a/org.eclipse.m2e.editor.tests/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/target -/wintest -/screenshots -/.project -/.classpath diff --git a/org.eclipse.m2e.editor.tests/.project b/org.eclipse.m2e.editor.tests/.project new file mode 100644 index 000000000..fc70a95d1 --- /dev/null +++ b/org.eclipse.m2e.editor.tests/.project @@ -0,0 +1,28 @@ + + + org.eclipse.m2e.editor.tests-2 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/org.eclipse.m2e.editor.tests/build.properties b/org.eclipse.m2e.editor.tests/build.properties index 1fcd87482..17daa5b49 100644 --- a/org.eclipse.m2e.editor.tests/build.properties +++ b/org.eclipse.m2e.editor.tests/build.properties @@ -1,5 +1,5 @@ source.. = src/ -output.. = target/classes/ +output.. = bin/ bin.includes = META-INF/,\ .,\ about.html diff --git a/org.eclipse.m2e.editor.tests/m2e.editor.tests.launch b/org.eclipse.m2e.editor.tests/m2e.editor.tests.launch deleted file mode 100644 index 37cdee5b4..000000000 --- a/org.eclipse.m2e.editor.tests/m2e.editor.tests.launch +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.m2e.editor.tests/plugin_customization.ini b/org.eclipse.m2e.editor.tests/plugin_customization.ini deleted file mode 100644 index acc085f2a..000000000 --- a/org.eclipse.m2e.editor.tests/plugin_customization.ini +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2010-2011 Sonatype, Inc. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License 2.0 -# which accompanies this distribution, and is available at -# https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Add "-pluginCustomization plugin_customization.ini" to your Eclipse command line to apply these settings -# -org.eclipse.m2e.core/eclipse.m2.updateIndexes=false diff --git a/org.eclipse.m2e.editor.tests/pom.xml b/org.eclipse.m2e.editor.tests/pom.xml deleted file mode 100644 index 078c34367..000000000 --- a/org.eclipse.m2e.editor.tests/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - 4.0.0 - - - org.eclipse.m2e - m2e-core-tests - 1.16.0-SNAPSHOT - - - org.eclipse.m2e.editor.tests - eclipse-test-plugin - - Maven Integration for Eclipse POM Editor tests - - - src - - - - org.eclipse.tycho - tycho-surefire-plugin - - -pluginCustomization ${project.basedir}/plugin_customization.ini - - - - - maven-clean-plugin - - - - wintest - false - - **/*.png - - - - - - - - - diff --git a/org.eclipse.m2e.tests/.classpath b/org.eclipse.m2e.tests/.classpath new file mode 100644 index 000000000..73d6894a6 --- /dev/null +++ b/org.eclipse.m2e.tests/.classpath @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/org.eclipse.m2e.tests/.gitignore b/org.eclipse.m2e.tests/.gitignore deleted file mode 100644 index 70d71f143..000000000 --- a/org.eclipse.m2e.tests/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/target -/workspaceState.ser -/bin -/.project -/.classpath diff --git a/org.eclipse.m2e.tests/.project b/org.eclipse.m2e.tests/.project new file mode 100644 index 000000000..26750e361 --- /dev/null +++ b/org.eclipse.m2e.tests/.project @@ -0,0 +1,28 @@ + + + org.eclipse.m2e.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/org.eclipse.m2e.tests/build.properties b/org.eclipse.m2e.tests/build.properties index 0ae198fab..43fc2781b 100644 --- a/org.eclipse.m2e.tests/build.properties +++ b/org.eclipse.m2e.tests/build.properties @@ -11,7 +11,7 @@ # source.. = src/ -output.. = target/classes/ +output.. = bin/ bin.includes = META-INF/,\ .,\ plugin.xml,\ diff --git a/org.eclipse.m2e.tests/plugin_customization.ini b/org.eclipse.m2e.tests/plugin_customization.ini deleted file mode 100644 index acc085f2a..000000000 --- a/org.eclipse.m2e.tests/plugin_customization.ini +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2010-2011 Sonatype, Inc. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License 2.0 -# which accompanies this distribution, and is available at -# https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Add "-pluginCustomization plugin_customization.ini" to your Eclipse command line to apply these settings -# -org.eclipse.m2e.core/eclipse.m2.updateIndexes=false diff --git a/org.eclipse.m2e.tests/pom.xml b/org.eclipse.m2e.tests/pom.xml deleted file mode 100644 index f5bd831eb..000000000 --- a/org.eclipse.m2e.tests/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - - org.eclipse.m2e - m2e-core-tests - 1.16.0-SNAPSHOT - - - org.eclipse.m2e.tests - eclipse-test-plugin - 1.17.2-SNAPSHOT - - Maven Integration for Eclipse tests - - - - - - org.eclipse.tycho - tycho-surefire-plugin - - -pluginCustomization ${basedir}/plugin_customization.ini - - ${java.io.tmpdir} - - - - - - - -