user3305063
user3305063

Reputation: 471

setting user.home in eclipse.init

I understand that eclipse considers HOME variable maintained in the environment variable for git configuration file. But I want to overwrite this by passing it as an argument from eclipse.init file. I maintained this info as follows,

-vmargs -Dosgi.requiredJavaVersion=1.6 -Xms1024m -Xmx2014m -Duser.home=C:/personal

But somehow this value is not considered for creating .GitConfig file.

Could some one please tell is it right way to overwrite the value?

Thanks, Kitty

Upvotes: 3

Views: 5018

Answers (1)

SubOptimal
SubOptimal

Reputation: 22963

As you stated EGit is checking the environment variable HOME (see in the documentation Setting_up_the_Home_Directory_on_Windows).

But the environment variable HOME is not the same as the JVM option -Duser.home.

One solution could be to create a start script and define the environment variable before starting Eclipse.

set HOME=c:/personal
exclipse.exe

Upvotes: 2

Related Questions