Move default config folder of eclipse

后端 未结 5 1913
醉话见心
醉话见心 2020-12-16 14:51

When Eclipse first start, it creates some config files and folders on my hard drive (contains information about work-space ...etc...). I don\'t like the position it creates

5条回答
  •  隐瞒了意图╮
    2020-12-16 15:19

    As other said, adding the property -Dosgi.configuration.area in the eclipse.ini file does the trick.

    But in my opinion it would be better to rely on the user.home variable and set the destination like for the other variables.

    Example with -Dosgi.instance.area.default:

    -Dosgi.instance.area.default=@user.home/eclipse-workspace
    

    In my case I just wanted another destination than the default @user.home/.eclipse which was used by the Eclipse Mars I still uses for old project and I defined:

    -Dosgi.configuration.area=@user.home/.eclipse-oygen-3
    

    to have a specific destination for Eclipse Oxygen 3 installation.

    Note that syntax works for both Windows and Linux (I did not tested on OSX, but I guess it should).

提交回复
热议问题