You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/09/05 07:31:41 UTC

[GitHub] [maven-shade-plugin] slawekjaranowski commented on a diff in pull request #150: [MSHADE-425] Relocate services name before add to serviceEntries

slawekjaranowski commented on code in PR #150:
URL: https://github.com/apache/maven-shade-plugin/pull/150#discussion_r962576368


##########
src/test/java/org/apache/maven/plugins/shade/resource/ServiceResourceTransformerTest.java:
##########
@@ -85,6 +85,49 @@ public void relocatedClasses() throws Exception {
             tempJar.delete();
         }
     }
+
+    @Test
+    public void mergeRelocatedFiles() throws Exception {
+        SimpleRelocator relocator =
+                new SimpleRelocator( "org.foo", "borg.foo", null, Arrays.asList( "org.foo.exclude.*" ) );
+        relocators.add( relocator );
+
+        String content = "org.foo.Service\norg.foo.exclude.OtherService\n";

Review Comment:
   Why not use constant `NEWLINE` as is used later



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org