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

jmborer pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/netbeans-mavenutils-nbm-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 54a7ef7  Fixed missing Class-Path URL decoding reported in 
[NETBEANSINFRA-262]
54a7ef7 is described below

commit 54a7ef76579bad62f4dce05e326fc93011b14a20
Author: Jean-Marc Borer <jmbo...@gmail.com>
AuthorDate: Thu Jan 13 21:05:49 2022 +0000

    Fixed missing Class-Path URL decoding reported in [NETBEANSINFRA-262]
---
 .../java/org/apache/netbeans/nbm/CreateClusterAppMojo.java     | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/netbeans/nbm/CreateClusterAppMojo.java 
b/src/main/java/org/apache/netbeans/nbm/CreateClusterAppMojo.java
index c47e2e8..fdb0ce9 100644
--- a/src/main/java/org/apache/netbeans/nbm/CreateClusterAppMojo.java
+++ b/src/main/java/org/apache/netbeans/nbm/CreateClusterAppMojo.java
@@ -31,8 +31,10 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.OutputStream;
+import java.io.UnsupportedEncodingException;
 
 import java.net.URL;
+import java.net.URLDecoder;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
@@ -371,7 +373,13 @@ public class CreateClusterAppMojo
                                                       getModule() ) );
                                             if ( ex.getClasspath().length() > 
0 )
                                             { //MNBMODULE-220
-                                                classPath = ex.getClasspath();
+                                                try 
+                                                {
+                                                    classPath = 
URLDecoder.decode(ex.getClasspath(), "UTF-8");
+                                                } catch 
(UnsupportedEncodingException exception) 
+                                                {
+                                                    throw new 
IllegalStateException(exception);
+                                                }
                                                 classpathRoot = 
fl.getParentFile();
                                             }
                                         }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to