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

James Z.M. Gao commented on MWRAPPER-76:
----------------------------------------

[~svein] [~Artur-] are the new type `only-script` also affected by this issue?

> Error "{6}" was unexpected at this time (Windows 10)
> ----------------------------------------------------
>
>                 Key: MWRAPPER-76
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-76
>             Project: Maven Wrapper
>          Issue Type: Bug
>          Components: Maven Wrapper Scripts
>    Affects Versions: 3.1.1
>            Reporter: Svein
>            Priority: Major
>
> {color:#000000}Testes and i worked on this path: C:\tmp\New (2)\{6} 
> folder\my-app57(2). The problem is the ')' character.{color}
> {color:#000000}My solution is:{color}
> {color:#000000}@setlocal EnableDelayedExpansion and !WRAPPER_JAR!.{color}
>  
> {code:java}
> @setlocal EnableDelayedExpansion
> powershell -Command "&{"^
>       "$webclient = new-object System.Net.WebClient;"^
>       "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and 
> [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
>       "$webclient.Credentials = new-object 
> System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
>       "}"^
>       "[Net.ServicePointManager]::SecurityProtocol = 
> [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', 
> '!WRAPPER_JAR!')"^
>       "}"
> @endlocal
>  {code}
>  



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

Reply via email to