diff --git a/tests/OPENJDK-1548/README.md b/tests/OPENJDK-1548/README.md deleted file mode 100644 index 31b8ec67..00000000 --- a/tests/OPENJDK-1548/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Test for OPENJDK-1548 - - - -This is a minimal Maven project for which the `validate` target will fail -if the environment variable `MAVEN_ARGS` is defined. - -This is achieved using the Enforcer plugin. We could not use the -`requireEnvironmentVariable` built-in rule as it can only fail if a variable -is undefined, rather than if it is. Instead we use `evaluateBeanshell` and -a very short Beanshell expression. - -Maven expands strings of the form `${env.foo}` within the POM only if the -variable is defined. That is, when `MAVEN_ARGS` is not defined in the -environment, the string `${env.MAVEN_ARGS}` is passed through unaltered. -If the variable is defined (including defined but empty), Maven will expand -it. Some string concatenation trickery is needed to match against the -un-expanded form. diff --git a/tests/OPENJDK-1548/pom.xml b/tests/OPENJDK-1548/pom.xml deleted file mode 100644 index 12307721..00000000 --- a/tests/OPENJDK-1548/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - 4.0.0 - org.acme - getting-started - 1.0.0-SNAPSHOT - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.3.0 - - - - - enforce-beanshell - - enforce - - - - - "${env.MAVEN_ARGS}".equals("${env."+"MAVEN_ARGS}") - - - true - - - - - - - -