Starting Eclipse w/ Specific Workspace

前端 未结 8 2378
情歌与酒
情歌与酒 2020-12-07 13:36

Is there a way to start an instance of eclipse, passing it some sort of parameter telling it to use a specific workspace?

The problem I\'m trying to solve is that I

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 14:21

    Creating a shortcut file with target :

    Create a shortcut of your eclipse. Open the properties of the shortcut file and set the target as follows,

    E\STS.exe -data "WORKSPACE_LOCATION"
    

    For launching from .bat file :

    cd ECLIPSE_LOCATION   
    start STS.exe -data "WORKSPACE_LOCATION"
    

    Example:

    cd /D D:\IDE\sts-bundle\sts-3.7.0.RELEASE    
    start STS.exe -data "D:\My Workspace\workspace1"
    

提交回复
热议问题