scm does not respect $HOME variable for .jazz-scm folder?
I'm trying to move my .jazz-scm folder from home $HOME folder to some other folder that I have specified. However, scm.sh does not seem to respect it.
However, when I try the following:
it still creates my .jazz-scm folder under /home/eric and not /home/eric/jbe!
Is it not $HOME that it is using? Should I be setting a different environment variable instead?
Thanks,
Eric |
One answer
In Java Land home is the property user.home (e.g. java -Duser.home ..... ). Plus, HOME should be treated as read-only as setting it may have no effect or certainly not the desired effect. I'm going to wager that the java is taking the value of user.home if --config is not specified.
I ran strace on an scm login command. There is no call to getenv of any variety and if I redefine HOME as you have found no scm data is written there. Using --config with explicit path works. Comments
Eric Benzacar
commented Nov 11 '15, 12:49 a.m.
I was afraid that might be happening. I was hoping to find an environment variable to control the location of the .jazz-scm directory as modifying the parameters passed to scm is quite difficult, so passing the You can either specify --config or you can set the environment variable SCM_CONFIG_DIRECTORY. Here is the link to the list of environment variables: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/c_scm_cli_env_var.html&scope=null |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.