[ 
https://issues.apache.org/jira/browse/MJAR-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848073#comment-17848073
 ] 

ASF GitHub Bot commented on MJAR-310:
-------------------------------------

jansohn commented on PR #86:
URL: https://github.com/apache/maven-jar-plugin/pull/86#issuecomment-2121931086

   > > @jansohn can you try my proposition of fix: #87
   > 
   > I can test it on Tuesday but I doubt it will fix the problem.
   
   I stand corrected and #87 actually does solve the issue with blanks in 
Windows paths.
   
   Totally unintuitive that it works by setter and not by constructor argument 
in my opinion. While digging into the code I also saw that it actually 
dismisses the shell wrapping if it detects a non-Windows OS which explains why 
this only occurred on Windows systems.
   
   Personally I would not rely on such an overly complex third library for such 
a simple use case but feel free to merge whatever PR you prefer.




> [REGRESSION] Plugin fails to handle toolchain paths that contain spaces
> -----------------------------------------------------------------------
>
>                 Key: MJAR-310
>                 URL: https://issues.apache.org/jira/browse/MJAR-310
>             Project: Maven JAR Plugin
>          Issue Type: Bug
>    Affects Versions: 3.4.0, 3.4.1
>         Environment: Maven 3.9.6
> Windows 10
>            Reporter: Gili
>            Priority: Major
>             Fix For: next-release
>
>
> When upgrading from version 3.3.0 to 3.4.0 I started getting the following 
> build-time warning:
>  
> {{[WARNING] Unrecognized output form C:\Program 
> Files\Java\zulu-8\bin\javac.exe -version - 'C:\Program' is not recognized as 
> an internal or external command,}}
> {{operable program or batch file.}}
>  
> The contents of toolchain.xml is:
>  
> {{<?xml version="1.0" encoding="UTF8"?>}}
> {{<toolchains>}}
> {{    <toolchain>}}
> {{        <type>jdk</type>}}
> {{        <provides>}}
> {{            <version>8</version>}}
> {{            <vendor>zulu</vendor>}}
> {{        </provides>}}
> {{        <configuration>}}
> {{            <jdkHome>C:\Program Files\Java\zulu-8</jdkHome>}}
> {{        </configuration>}}
> {{    </toolchain>}}
> {{</toolchains>}}
>  
> I don't know if this warning breaks anything.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to