Tips and Tricks : Avoid $$ in ANT password

Today we faced weird issue. ANT throwing Invalid User Password although we know exactly what our password.We able to login directly into Salesforce site but we failed to login via ANT.

It delays our deployment process because we struggle to figure out why.

  • Double check the password [Done]
  • Reset the password[Done]
  • Check proxy[Done]

Thankfully I found this tips : Password Issue in ANT . I suspect it may due to this

Property Expansion
When Ant encounters a construct ${some-text} the exact parsing semantics are subject to the configured property helper delegates.
$$ Expansion
In its default configuration Ant will expand the text $$ to a single $ and suppress the normal property expansion mechanism for the text immediately following it, i.e., $${key} expands to ${key} and not value even though a property named key was defined and had the value value. This can be used to escape literal $ characters and is useful in constructs that only look like property expansions or when you want to provide diagnostic output like in Read More...

Anyone has better explanation please comment.For this time being, it's better avoid $$ or more than two $ in password.


Popular Posts