Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] recommended way placing the workspace relative to the location of the launcher

Yeah I have checked the help, but sometimes there are "hidden options"... but it seem no luck here :-)

My use-case is to have an "portable" eclipse based application, so I can plug in the device and have a (default) workspace with my projects/preferences and so on.

So the very fist thing would be e.g. to have an eclipse that uses a default workspace that is placed alongside the installation and I can change preferences or create a plain (empty) project.

If that basic thing would work, the next step might be to convince other projects (like JDT, m2e ...) to support relocatable workspaces, so one might think to even place JDKs, ant and maven installs and so on on this usb-device so I just need to plug it into any PC and could start working.

The Gerrit change looks promising, not sure how much work it would be to extend this to other locations as well? It seems to use a property 'PROP_LAUNCHER' so it seems possible as its done with @user.home ...?

Am 27.05.21 um 19:01 schrieb Jonah Graham:

The help has a bunch of options, but none that covers your use case as far as I can see - https://help.eclipse.org/2021-03/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html?cp=2_1_5_0 <https://help.eclipse.org/2021-03/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html?cp=2_1_5_0>

That said, I did see this commit come through https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/179406 <https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/179406> and it may add a new option from 2021-06 of @launcher.dir, but that seems so far only implemented to resolve (and allow relocation of) the install area, rather than the workspace.

Also, do you have a special use case? because AFAIK workspaces are not relocatable. Certainly JDT / CDT put absolute paths in the workspace metadata.

HTH,
Jonah


~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com <http://www.kichwacoders.com>


On Thu, 27 May 2021 at 12:49, Christoph Läubrich <laeubi@xxxxxxxxxxxxxx <mailto:laeubi@xxxxxxxxxxxxxx>> wrote:

    I want to place an Eclipse-Install + its workspace on an USB drive, of
    course, depending on the computer where I do plug this into the drive
    letter / path might change. At best I could have a Layout similar to
    what the eclipse-installer produces:

    /eclipse
    /ws

    If I use the simple approach:

    -Dosgi.instance.area=../ws

    this is placed in the current working(!) directory but not relative to
    the /eclipse folder...

    What I have tired so far (without success):

    - @config.dir/<somepath>
    - reference:<somepath>


    _______________________________________________
    platform-dev mailing list
    platform-dev@xxxxxxxxxxx <mailto:platform-dev@xxxxxxxxxxx>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/platform-dev
    <https://www.eclipse.org/mailman/listinfo/platform-dev>


_______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev



Back to the top