Tip: Multiple workspaces

Users of Momentics/Windows:

Have you ever wanted to have more than one workspace besides
“c:\qnxsdk\workspace”? Maybe you want to work on different codelines
(branches) of your projects, or maybe you have different builds
(development, integration, nightly, audit, etc.). Perhaps, like me, you have
looked for an option in the Momentics IDE to select a different workspace,
but found nothing.

The solution is really simple:
(1) Create a new directory for the parent of the new workspace–e.g.,
“c:\qnxaudit”.
(2) Duplicate the “Integrated Development Environment (IDE)” shortcut in
your QNX Momentics program folder.
(3) Change the new shortcut’s “Start in” directory field to “c:\qnxaudit”.

That’s all there is to it. When you launch the IDE using this new shortcut,
Momentics will create a new workspace, “c:\qnxaudit\workspace”. You can run
multiple instances of the IDE, and use a repository to share between them.

Presumably something similar also works for the other host platforms.

->>>–Dale-Sherwood–>
New York Air Brake Corp.
TDS Group

Dale ->>>–Sherwood–>" <nospam@bitbucket.com> wrote in message
news:bf6em9$piu$1@inn.qnx.com

Users of Momentics/Windows:

Have you ever wanted to have more than one workspace besides
“c:\qnxsdk\workspace”? Maybe you want to work on different codelines
(branches) of your projects, or maybe you have different builds
(development, integration, nightly, audit, etc.). Perhaps, like me, you have
looked for an option in the Momentics IDE to select a different workspace,
but found nothing.

The solution is really simple:
(1) Create a new directory for the parent of the new workspace–e.g.,
“c:\qnxaudit”.
(2) Duplicate the “Integrated Development Environment (IDE)” shortcut in
your QNX Momentics program folder.
(3) Change the new shortcut’s “Start in” directory field to “c:\qnxaudit”.

An alternative to (3) is to change the invocation line in the shortcut to
use the “-data” argument which was designed for this; i.e., after
qde.exe put "-data ". Note that the directory
specified will be the workspace directory - no workspace subdirectory
will be created here. The only practical difference here is the absence
of the ./workspace subdirectory.

/Kirk


That’s all there is to it. When you launch the IDE using this new shortcut,
Momentics will create a new workspace, “c:\qnxaudit\workspace”. You can run
multiple instances of the IDE, and use a repository to share between them.

Presumably something similar also works for the other host platforms.

->>>–Dale-Sherwood–
New York Air Brake Corp.
TDS Group

Kirk Bailey wrote:

An alternative to (3) is to change the invocation line in the
shortcut to
use the “-data” argument which was designed for this; i.e., after
qde.exe put "-data ". Note that the directory
specified will be the workspace directory - no workspace subdirectory
will be created here. The only practical difference here is the
absence
of the ./workspace subdirectory.

I prefer the -data option. Because I’m leery of changing the working
directory. Which is what (3) is doing.

Of course, some folks might want to actually have a different working
directory for different workspaces. You should be able to mix and match
using -data and a ‘start in’ directory (supported on Windows shortcuts, and
easily hackable from Linux shortcuts as well by just pointing to a script in
the worst case). -data always wins of course, but the ‘start in’ will end
up being the current working directory for the process …


Patrick Mueller
pmuellr@yahoo.com

“Kirk Bailey” <kirk.a.bailey@delphi.com> wrote in message
news:bf6fp2$i2l$1@nntp.qnx.com

An alternative to (3) is to change the invocation line in the shortcut to
use the “-data” argument which was designed for this; i.e., after
qde.exe put "-data ". Note that the directory
specified will be the workspace directory - no workspace subdirectory
will be created here. The only practical difference here is the absence
of the ./workspace subdirectory.

Kirk:

Thank you, that works very nicely and is a better solution.

->>>–Sherwood–>