Uploaded image for project: 'Apache NetBeans Infra'
  1. Apache NetBeans Infra
  2. NETBEANSINFRA-262

Class-Path manifest entry not properly URL decoded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • NBM Maven Plugin 4.6
    • None
    • None

    Description

      Compilation of NB RCP apps lead to 

      Could not resolve Class-Path item in org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE124, path is:%24%7Bjava.home%7D/lib/ext/jfxrt.jar, skipping

      since the commit that changes this is here:

      https://github.com/apache/netbeans/commit/1b96b56ac3bfda8bd9b97f36c25901e84289cb23

      And is part of this:

      https://github.com/apache/netbeans/pull/2761

       

      ${java.home} is now URL encoded in the manifest. According to https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#classpath

      Every Class-Path are URLs and as such should be decoded accordingly and therefore the class CreateClusterAppMojo should be fixed:

      lines 376 shall become:
            try 
           

      {            classPath = URLDecoder.decode(ex.getClasspath(), "UTF-8");        }

      catch (UnsupportedEncodingException exception) 
             

      {            throw new IllegalStateException(exception);        }

       

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmborer Jean-Marc Borer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: