This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new f1f4b22  Fix vacuous IT checks and run MSHADE-321
f1f4b22 is described below

commit f1f4b22692a53cd580ccf66388c6a27ebaba0648
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 4 22:35:47 2026 +0000

    Fix vacuous IT checks and run MSHADE-321
    
    MSHADE-133 asserted a misspelled entry name, MSHADE-351 read a services 
entry although only properties transformers are configured, and MSHADE-321 sat 
outside src/it/projects. MSHADE-114 and the two expected-failure ITs now assert 
their outcome.
    
    Fixes #896
---
 .../repository/MSHADE-321/mshade-321-a-0.1.jar}    | Bin
 .../repository/MSHADE-321/mshade-321-a-0.1.pom}    |   2 +-
 .../META-INF/microprofile-config.properties        |  20 +++++++++
 .../META-INF/openwebbeans/openwebbeans.properties  |  20 +++++++++
 .../repository/MSHADE-351/mshade-351-one-0.1.pom}  |  11 ++++-
 .../META-INF/microprofile-config.properties        |  19 +++++++++
 .../META-INF/openwebbeans/openwebbeans.properties  |  19 +++++++++
 .../repository/MSHADE-351/mshade-351-two-0.1.pom}  |  11 ++++-
 src/it/projects/MSHADE-114/pom.xml                 |   4 ++
 .../src/main/resources/native/libagent.so          |  16 +++++++
 .../{MSHADE-351 => MSHADE-114}/verify.groovy       |  16 +++----
 src/it/projects/MSHADE-133/verify.groovy           |   2 +-
 .../MSHADE-321_respectDrpFlag/pom.xml              |  15 +------
 .../MSHADE-321_respectDrpFlag/verify.groovy        |   0
 src/it/projects/MSHADE-351/pom.xml                 |  10 +++--
 src/it/projects/MSHADE-351/verify.groovy           |  34 +++++++++++----
 .../verify.groovy                                  |  44 ++++++++++----------
 .../verify.groovy                                  |  46 ++++++++++-----------
 18 files changed, 205 insertions(+), 84 deletions(-)

diff --git 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.jar
 b/src/it/mrm/repository/MSHADE-321/mshade-321-a-0.1.jar
similarity index 100%
rename from 
src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.jar
rename to src/it/mrm/repository/MSHADE-321/mshade-321-a-0.1.jar
diff --git 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
 b/src/it/mrm/repository/MSHADE-321/mshade-321-a-0.1.pom
similarity index 93%
copy from 
src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
copy to src/it/mrm/repository/MSHADE-321/mshade-321-a-0.1.pom
index 1debd2f..c4b9fda 100644
--- 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
+++ b/src/it/mrm/repository/MSHADE-321/mshade-321-a-0.1.pom
@@ -23,7 +23,7 @@ under the License.
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.apache.maven.its.shade.drp</groupId>
-  <artifactId>a</artifactId>
+  <artifactId>mshade-321-a</artifactId>
   <version>0.1</version>
   <packaging>jar</packaging>
 </project>
diff --git 
a/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.jar/META-INF/microprofile-config.properties
 
b/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.jar/META-INF/microprofile-config.properties
new file mode 100644
index 0000000..1529240
--- /dev/null
+++ 
b/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.jar/META-INF/microprofile-config.properties
@@ -0,0 +1,20 @@
+# 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.
+
+config_ordinal=2000
+shared=one
+only.one=1
\ No newline at end of file
diff --git 
a/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.jar/META-INF/openwebbeans/openwebbeans.properties
 
b/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.jar/META-INF/openwebbeans/openwebbeans.properties
new file mode 100644
index 0000000..b68a330
--- /dev/null
+++ 
b/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.jar/META-INF/openwebbeans/openwebbeans.properties
@@ -0,0 +1,20 @@
+# 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.
+
+configuration.ordinal=50
+shared=one
+only.one=1
\ No newline at end of file
diff --git 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
 b/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.pom
similarity index 75%
copy from 
src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
copy to src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.pom
index 1debd2f..3e253f8 100644
--- 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
+++ b/src/it/mrm/repository/MSHADE-351/mshade-351-one-0.1.pom
@@ -22,8 +22,15 @@ under the License.
 <project>
   <modelVersion>4.0.0</modelVersion>
 
-  <groupId>org.apache.maven.its.shade.drp</groupId>
-  <artifactId>a</artifactId>
+  <groupId>org.apache.maven.its.shade.srt</groupId>
+  <artifactId>mshade-351-one</artifactId>
   <version>0.1</version>
   <packaging>jar</packaging>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
 </project>
diff --git 
a/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.jar/META-INF/microprofile-config.properties
 
b/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.jar/META-INF/microprofile-config.properties
new file mode 100644
index 0000000..c2389a0
--- /dev/null
+++ 
b/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.jar/META-INF/microprofile-config.properties
@@ -0,0 +1,19 @@
+# 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.
+
+shared=two
+only.two=2
\ No newline at end of file
diff --git 
a/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.jar/META-INF/openwebbeans/openwebbeans.properties
 
b/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.jar/META-INF/openwebbeans/openwebbeans.properties
new file mode 100644
index 0000000..c2389a0
--- /dev/null
+++ 
b/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.jar/META-INF/openwebbeans/openwebbeans.properties
@@ -0,0 +1,19 @@
+# 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.
+
+shared=two
+only.two=2
\ No newline at end of file
diff --git 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
 b/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.pom
similarity index 75%
rename from 
src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
rename to src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.pom
index 1debd2f..f2116d5 100644
--- 
a/src/it/MSHADE-321_respectDrpFlag/repo/org/apache/maven/its/shade/drp/a/0.1/a-0.1.pom
+++ b/src/it/mrm/repository/MSHADE-351/mshade-351-two-0.1.pom
@@ -22,8 +22,15 @@ under the License.
 <project>
   <modelVersion>4.0.0</modelVersion>
 
-  <groupId>org.apache.maven.its.shade.drp</groupId>
-  <artifactId>a</artifactId>
+  <groupId>org.apache.maven.its.shade.srt</groupId>
+  <artifactId>mshade-351-two</artifactId>
   <version>0.1</version>
   <packaging>jar</packaging>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
 </project>
diff --git a/src/it/projects/MSHADE-114/pom.xml 
b/src/it/projects/MSHADE-114/pom.xml
index 701d961..167635c 100644
--- a/src/it/projects/MSHADE-114/pom.xml
+++ b/src/it/projects/MSHADE-114/pom.xml
@@ -26,6 +26,10 @@ under the License.
   <artifactId>MSHADE-114</artifactId>
   <version>1.0-SNAPSHOT</version>
 
+  <properties>
+    <rt>rt</rt>
+  </properties>
+
   <build>
     <plugins>
       <plugin>
diff --git a/src/it/projects/MSHADE-114/src/main/resources/native/libagent.so 
b/src/it/projects/MSHADE-114/src/main/resources/native/libagent.so
new file mode 100644
index 0000000..13a8339
--- /dev/null
+++ b/src/it/projects/MSHADE-114/src/main/resources/native/libagent.so
@@ -0,0 +1,16 @@
+# 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.
diff --git a/src/it/projects/MSHADE-351/verify.groovy 
b/src/it/projects/MSHADE-114/verify.groovy
similarity index 67%
copy from src/it/projects/MSHADE-351/verify.groovy
copy to src/it/projects/MSHADE-114/verify.groovy
index d7967a7..cca60a1 100644
--- a/src/it/projects/MSHADE-351/verify.groovy
+++ b/src/it/projects/MSHADE-114/verify.groovy
@@ -16,11 +16,13 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import java.io.*;
-import java.util.jar.*;
-import org.codehaus.plexus.util.*;
+import java.util.jar.JarFile
 
-JarFile jarFile = new JarFile( new File( basedir, "target/test-1.0.jar" ) );
-JarEntry jarEntry = jarFile.getEntry( 
"META-INF/services/org.apache.maven.Shade" );
-String service = IOUtil.toString( jarFile.getInputStream( jarEntry ), "UTF-8" 
);
-jarFile.close();
+JarFile jarFile = new JarFile(new File(basedir, 
"target/MSHADE-114-1.0-SNAPSHOT.jar"))
+try {
+    def manifest = jarFile.getManifest()
+    assert manifest.getMainAttributes().getValue("Premain-Class") == 
"org.jacoco.agent.rt.JacocoAgent"
+    assert jarFile.getJarEntry("native/libagent.so") == null : "the .so 
resource must be dropped"
+} finally {
+    jarFile.close()
+}
diff --git a/src/it/projects/MSHADE-133/verify.groovy 
b/src/it/projects/MSHADE-133/verify.groovy
index 47b4c07..906f6cc 100644
--- a/src/it/projects/MSHADE-133/verify.groovy
+++ b/src/it/projects/MSHADE-133/verify.groovy
@@ -18,6 +18,6 @@
  */
 
  def jarFile = new java.util.jar.JarFile( new File( basedir, 
"/target/MSHADE-133-1.0-SNAPSHOT.jar" ) )
- assert jarFile.getJarEntry("myComfig.yml") == null
+ assert jarFile.getJarEntry("myConfig.yml") == null
  assert jarFile.getJarEntry("logback.xml") == null
  
\ No newline at end of file
diff --git a/src/it/MSHADE-321_respectDrpFlag/pom.xml 
b/src/it/projects/MSHADE-321_respectDrpFlag/pom.xml
similarity index 87%
rename from src/it/MSHADE-321_respectDrpFlag/pom.xml
rename to src/it/projects/MSHADE-321_respectDrpFlag/pom.xml
index 6930ff1..6354dbd 100644
--- a/src/it/MSHADE-321_respectDrpFlag/pom.xml
+++ b/src/it/projects/MSHADE-321_respectDrpFlag/pom.xml
@@ -33,23 +33,10 @@ under the License.
     Shade plugin starts to create DRP even if the artifact has been renamed 
because of the configuration
   </description>
 
-  <repositories>
-    <repository>
-      <id>shade-it</id>
-      <url>file://${basedir}/repo</url>
-      <releases>
-        <checksumPolicy>ignore</checksumPolicy>
-      </releases>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-    </repository>
-  </repositories>
-
   <dependencies>
     <dependency>
       <groupId>org.apache.maven.its.shade.drp</groupId>
-      <artifactId>a</artifactId>
+      <artifactId>mshade-321-a</artifactId>
       <version>0.1</version>
     </dependency>
 
diff --git a/src/it/MSHADE-321_respectDrpFlag/verify.groovy 
b/src/it/projects/MSHADE-321_respectDrpFlag/verify.groovy
similarity index 100%
rename from src/it/MSHADE-321_respectDrpFlag/verify.groovy
rename to src/it/projects/MSHADE-321_respectDrpFlag/verify.groovy
diff --git a/src/it/projects/MSHADE-351/pom.xml 
b/src/it/projects/MSHADE-351/pom.xml
index e1728f3..a35d551 100644
--- a/src/it/projects/MSHADE-351/pom.xml
+++ b/src/it/projects/MSHADE-351/pom.xml
@@ -28,18 +28,18 @@ under the License.
 
   <name>MSHADE-351</name>
   <description>
-    Test the merging of META-INF/services/** entries.
+    Test the merging of properties files that carry an ordinal, with the 
OpenWebBeans and Microprofile Config transformers.
   </description>
 
   <dependencies>
     <dependency>
       <groupId>org.apache.maven.its.shade.srt</groupId>
-      <artifactId>one</artifactId>
+      <artifactId>mshade-351-one</artifactId>
       <version>0.1</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.its.shade.srt</groupId>
-      <artifactId>two</artifactId>
+      <artifactId>mshade-351-two</artifactId>
       <version>0.1</version>
     </dependency>
   </dependencies>
@@ -62,7 +62,9 @@ under the License.
                 <transformer implementation=
                   
"org.apache.maven.plugins.shade.resource.properties.OpenWebBeansPropertiesTransformer"
 />
                 <transformer implementation=
-                  
"org.apache.maven.plugins.shade.resource.properties.MicroprofileConfigTransformer"
 />
+                  
"org.apache.maven.plugins.shade.resource.properties.MicroprofileConfigTransformer">
+                  <resource>META-INF/microprofile-config.properties</resource>
+                </transformer>
               </transformers>
             </configuration>
           </execution>
diff --git a/src/it/projects/MSHADE-351/verify.groovy 
b/src/it/projects/MSHADE-351/verify.groovy
index d7967a7..9a789d2 100644
--- a/src/it/projects/MSHADE-351/verify.groovy
+++ b/src/it/projects/MSHADE-351/verify.groovy
@@ -16,11 +16,31 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import java.io.*;
-import java.util.jar.*;
-import org.codehaus.plexus.util.*;
+import java.util.jar.JarFile
 
-JarFile jarFile = new JarFile( new File( basedir, "target/test-1.0.jar" ) );
-JarEntry jarEntry = jarFile.getEntry( 
"META-INF/services/org.apache.maven.Shade" );
-String service = IOUtil.toString( jarFile.getInputStream( jarEntry ), "UTF-8" 
);
-jarFile.close();
+JarFile jarFile = new JarFile(new File(basedir, "target/test-1.0.jar"))
+try {
+    def load = { String name ->
+        def entry = jarFile.getJarEntry(name)
+        assert entry != null : name + " is missing from the shaded jar"
+        def properties = new Properties()
+        jarFile.getInputStream(entry).withCloseable { properties.load(it) }
+        return properties
+    }
+
+    // Microprofile Config: the default ordinal is 1000, so the 2000 of "one" 
wins over "two"
+    def microprofile = load("META-INF/microprofile-config.properties")
+    assert microprofile.getProperty("shared") == "one" : microprofile
+    assert microprofile.getProperty("only.one") == "1" : microprofile
+    assert microprofile.getProperty("only.two") == "2" : microprofile
+    assert microprofile.getProperty("config_ordinal") == null : microprofile
+
+    // OpenWebBeans: the default ordinal is 100, so "two" wins over the 50 of 
"one"
+    def openWebBeans = load("META-INF/openwebbeans/openwebbeans.properties")
+    assert openWebBeans.getProperty("shared") == "two" : openWebBeans
+    assert openWebBeans.getProperty("only.one") == "1" : openWebBeans
+    assert openWebBeans.getProperty("only.two") == "2" : openWebBeans
+    assert openWebBeans.getProperty("configuration.ordinal") == null : 
openWebBeans
+} finally {
+    jarFile.close()
+}
diff --git a/src/it/projects/MSHADE-133/verify.groovy 
b/src/it/projects/empty-relocation-pattern/verify.groovy
similarity index 77%
copy from src/it/projects/MSHADE-133/verify.groovy
copy to src/it/projects/empty-relocation-pattern/verify.groovy
index 47b4c07..56531c6 100644
--- a/src/it/projects/MSHADE-133/verify.groovy
+++ b/src/it/projects/empty-relocation-pattern/verify.groovy
@@ -1,23 +1,21 @@
-/*
- * 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 jarFile = new java.util.jar.JarFile( new File( basedir, 
"/target/MSHADE-133-1.0-SNAPSHOT.jar" ) )
- assert jarFile.getJarEntry("myComfig.yml") == null
- assert jarFile.getJarEntry("logback.xml") == null
- 
\ No newline at end of file
+/*
+ * 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 buildLog = new File(basedir, 'build.log').text
+assert buildLog.contains('Pattern must not be null, otherwise it is unclear 
what to relocate!') : 'the build did not fail on the empty pattern'
diff --git a/src/it/projects/MSHADE-133/verify.groovy 
b/src/it/projects/extrajar-missing-file/verify.groovy
similarity index 74%
copy from src/it/projects/MSHADE-133/verify.groovy
copy to src/it/projects/extrajar-missing-file/verify.groovy
index 47b4c07..6113859 100644
--- a/src/it/projects/MSHADE-133/verify.groovy
+++ b/src/it/projects/extrajar-missing-file/verify.groovy
@@ -1,23 +1,23 @@
-/*
- * 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 jarFile = new java.util.jar.JarFile( new File( basedir, 
"/target/MSHADE-133-1.0-SNAPSHOT.jar" ) )
- assert jarFile.getJarEntry("myComfig.yml") == null
- assert jarFile.getJarEntry("logback.xml") == null
- 
\ No newline at end of file
+/*
+ * 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 buildLog = new File(basedir, 'build.log').text
+assert buildLog.contains('parameter extraJars contains path') : 'the build did 
not fail on extraJars'
+assert buildLog.contains('no-such-file.jar')
+assert buildLog.contains('that is not a file (does not exist or is not a 
file)')

Reply via email to