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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.