In Eclipse, how to have launch configurations relative to the project?

前端 未结 2 1099
借酒劲吻你
借酒劲吻你 2020-12-31 08:18

I usually have multiple copies of a project, for example: a copy of the trunk and another of the last release branch. To cleanly separate my project files from Eclipse, they

2条回答
  •  抹茶落季
    2020-12-31 08:37

    Remember that the .launch configuration files don't have to be in your workspace.
    They can be in your /.settings as I mentioned in the answer you refer to.

    That means you cannot import in your eclipse workspace two versions of the same project.
    You need separate workspaces (not versioned themselves), each one referring to a project in a different path.
    Each path represents different working trees (like different working directories for Subversion).


    The OP adds:

    The project must have the same name, but the project checkout dir can have any name.

    To make the launch file work, you have to reference any file using the variable ${workspace_loc:ProjectName}.
    Java files can be referenced using a path like: '/ProjectName/src/package/MyFile.java'
    This way, it is easier to use any tool to interact with the subversion repository.

    I want to make life easier for who uses Eclipse, but I don't want to force anyone to use it.

提交回复
热议问题