I'm trying to store a password in a groovy string something like below:
def password = "g4!r1*h2$mv"
I get an error: Static type checking: the variable mv is undeclared, which is probably because it encounters a dollar after h2. Is there a way to include $ as part of the string?
Thanks In Advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thats odd
have you tried Slashy string format
def str = $/g4!r1*h2\$$mv/$
or single quotes instead of double quotes
def str = 'g4!r1*h2\\$mv'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.