Windows: Escape ampersand in keystore password
See original GitHub issueHi all.
Has anybody managed to put &
into keystorePassword
or keyPassword
capability on Windows?
I’m getting build errors when building Espresso server with password like START&END
:
Error: Unable to build Espresso server - Process ended with exitcode 1 (cmd: 'gradlew.bat -PappiumKeyPassword\=START&END')
Gradle error message:
END is not recognized as an internal or external command,
I tried to escape the password like "START&END"
or START\&END
or START^&END
with no success.
It’s unfortunate the password includes an ampersand but I cannot change it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Ampersand in Windows Password - batch file - Super User
You are correct. The ampersand is a special character in the windows command line. Typically to escape it you use the caret (^),...
Read more >How to pass password with special characters in cmd?
From this analysis, it is found that only special character to be escaped is " and any < or > symbol occurring after...
Read more >Enclose ampersand character in a password
Hi! I get the error that the password is incorrect, am I using the correct escape signs in the password for passing the...
Read more >linux - How to escape ! in password? - Server Fault
You can store the password in a bash variable: $ pass='one_@&!two'. Then substitute the variable in the command: $ mysql -umyuser -p$pass.
Read more >Android Signing Task V3.0 fails when password string ...
If the keystore file password or the keystore key password have an ampersand (&) in the string then the commands fail because it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
okay, thanks for the confirmation!
Yes, another issue helps me to handle issues. Probably I need to add the same flag in similar places.
mm, what env did you run? I checked some commands as https://github.com/appium/appium-espresso-driver/pull/753 (e.g.
./gradlew.bat -PappiumKeyPassword\='START\"&\"END'
did not show recognized error etc) on Win 10 powershell. (not via appium at this time)Appium drivers are going to https://appiumpro.com/editions/122-installing-appium-20-and-the-driver-and-plugins-cli base, so you can install an arbitrary espresso driver as
appium driver install espresso@version
.