Can you login using scm repositories.txt file using java api
7 answers
I would like to use the scm config file repositories.txt file to get the url,user and password for both.
Is it possible??
In that situation I would store the password in another url/user/pw in another location and run 'scm login' with the at the start of the stuff that involves the CLI.
The repositories.txt file is readable, but it should be considered API. We're likely to change it in future releases.
e
I'm sorry, I don't follow your question.
I suggest that you store the url/username/password in a file of your own.
When you want to run the CLI, you consult that file and run 'scm login' at the start of your script, with the fields set appropriately.
When you want to use the plain java libraries, you get the url/username/password yourself and set them as appropriate.
In other words: don't try and use repositories.txt to store your credentials.
I suggest that you store the url/username/password in a file of your own.
When you want to run the CLI, you consult that file and run 'scm login' at the start of your script, with the fields set appropriately.
When you want to use the plain java libraries, you get the url/username/password yourself and set them as appropriate.
In other words: don't try and use repositories.txt to store your credentials.