It's all about the answers!

Ask a question

SCM LoadAs strangeness


Tom Frauenhofer (1.3k58435) | asked Nov 08 '09, 9:53 a.m.
Using RTC 2.0 GA

I have a pretty typical component/folder structure like so:

MyComponent
MyRootFolder
Stuff ...


If I load the component using defaults (i.e. not Load As), then I get
the following in my Eclipse workspace

MyEclipseWorkSpace
MyRootFolder
Stuff

The component name has been dropped from the folder layout
(perhaps by the "Load the folders of components as projects" default
setting).


When using the "Load As" dialogs, it seems that the component name is
never dropped from the folder layout, so you always get:

MyOtherWorkSpace
MyComponent
MyRootFolder
Stuff

Have I missed something ? Can the same folder layout as "Load" creates,
be created using "Load As" ??

Dave

6 answers



permanent link
Michael Valenta (3.6k3) | answered Nov 09 '09, 10:08 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Dave,

To load a folder using Load as, you need to perform a Show In Repository
Files view and select the folder you want to load.

Michael

David Ward wrote:
Using RTC 2.0 GA

I have a pretty typical component/folder structure like so:

MyComponent
MyRootFolder
Stuff ...


If I load the component using defaults (i.e. not Load As), then I get
the following in my Eclipse workspace

MyEclipseWorkSpace
MyRootFolder
Stuff

The component name has been dropped from the folder layout
(perhaps by the "Load the folders of components as projects" default
setting).


When using the "Load As" dialogs, it seems that the component name is
never dropped from the folder layout, so you always get:

MyOtherWorkSpace
MyComponent
MyRootFolder
Stuff

Have I missed something ? Can the same folder layout as "Load" creates,
be created using "Load As" ??

Dave



permanent link
Tom Frauenhofer (1.3k58435) | answered Nov 09 '09, 2:08 p.m.
My subject line was not wise !! This issue is probably caused by my
mis-understanding rather than anything 'strange' in the RTC product.

I'm not really asking about how to load a folder ... rather, I'm
querying the fact that 'load' seems to not use the top-level folder
names at all (they seem to get dropped), whereas, 'load as' (seems) to
always create the top-level folders.

Correcting my earlier post, my component looks like this:


MyComponent
MyRootFolder
.project file with name "MyProject"
Stuff ...


When I use 'load', I get

MyProject
.project file with name "MyProject"
Stuff ...

Both the component name and the top-level folder name are not used in
the file layout.

None of the above is a problem, I'm just trying to understand what the
principles of 'load as' are regarding the above. 'load as' seems to
have different rules, such that I cannot figure out how to use 'load as'
to achieve the same layout as 'load.

i.e. How can 'load as' be used to get:

MyProject
.project file with name "MyProject"
Stuff ...



On 11/9/2009 9:53 AM, Michael Valenta wrote:
Dave,

To load a folder using Load as, you need to perform a Show In Repository
Files view and select the folder you want to load.

Michael

David Ward wrote:
Using RTC 2.0 GA

I have a pretty typical component/folder structure like so:

MyComponent
MyRootFolder
Stuff ...


If I load the component using defaults (i.e. not Load As), then I get
the following in my Eclipse workspace

MyEclipseWorkSpace
MyRootFolder
Stuff

The component name has been dropped from the folder layout
(perhaps by the "Load the folders of components as projects" default
setting).


When using the "Load As" dialogs, it seems that the component name is
never dropped from the folder layout, so you always get:

MyOtherWorkSpace
MyComponent
MyRootFolder
Stuff

Have I missed something ? Can the same folder layout as "Load"
creates, be created using "Load As" ??

Dave



permanent link
Tim Mok (6.6k38) | answered Nov 10 '09, 8:32 a.m.
JAZZ DEVELOPER
Load As can be used to load your component into a specific location other than the default sandbox. If Load does what you want, I would use that instead of trying to use Load As to perform what Load does.

So Load gives you this:
EclipseWorkspace/MyProject

And Load As can achieve this:
OtherEclipseWorkspace/MyProject

permanent link
Michael Valenta (3.6k3) | answered Nov 10 '09, 9:53 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
With Load As, the user must provide the name that the local project will
have. The name is not retrieved from the .project file. If you want to
use the name from the .project file, you should just use the Load action.

To answer your question directly, to get the same behavior from Load As,
the user would need to show the component in the Repository Files view,
select the folder MyRootFolder, choose Load As and type in the name
MyProject as the last segment of the target path.

Hope this helps,
Michael

David Ward wrote:
My subject line was not wise !! This issue is probably caused by my
mis-understanding rather than anything 'strange' in the RTC product.

I'm not really asking about how to load a folder ... rather, I'm
querying the fact that 'load' seems to not use the top-level folder
names at all (they seem to get dropped), whereas, 'load as' (seems) to
always create the top-level folders.

Correcting my earlier post, my component looks like this:


MyComponent
MyRootFolder
.project file with name "MyProject"
Stuff ...


When I use 'load', I get

MyProject
.project file with name "MyProject"
Stuff ...

Both the component name and the top-level folder name are not used in
the file layout.

None of the above is a problem, I'm just trying to understand what the
principles of 'load as' are regarding the above. 'load as' seems to
have different rules, such that I cannot figure out how to use 'load as'
to achieve the same layout as 'load.

i.e. How can 'load as' be used to get:

MyProject
.project file with name "MyProject"
Stuff ...



On 11/9/2009 9:53 AM, Michael Valenta wrote:
Dave,

To load a folder using Load as, you need to perform a Show In Repository
Files view and select the folder you want to load.

Michael

David Ward wrote:
Using RTC 2.0 GA

I have a pretty typical component/folder structure like so:

MyComponent
MyRootFolder
Stuff ...


If I load the component using defaults (i.e. not Load As), then I get
the following in my Eclipse workspace

MyEclipseWorkSpace
MyRootFolder
Stuff

The component name has been dropped from the folder layout
(perhaps by the "Load the folders of components as projects" default
setting).


When using the "Load As" dialogs, it seems that the component name is
never dropped from the folder layout, so you always get:

MyOtherWorkSpace
MyComponent
MyRootFolder
Stuff

Have I missed something ? Can the same folder layout as "Load"
creates, be created using "Load As" ??

Dave




permanent link
Geoffrey Clemm (29.9k23035) | answered Nov 14 '09, 5:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Work item 85020 ("scm load should provide an option to load artifacts
with full path information") should address this issue. This work item
is currently marked as Planned-For 3.0.

Cheers,
Geoff

David Ward wrote:
Using RTC 2.0 GA

I have a pretty typical component/folder structure like so:

MyComponent
MyRootFolder
Stuff ...


If I load the component using defaults (i.e. not Load As), then I get
the following in my Eclipse workspace

MyEclipseWorkSpace
MyRootFolder
Stuff

The component name has been dropped from the folder layout
(perhaps by the "Load the folders of components as projects" default
setting).


When using the "Load As" dialogs, it seems that the component name is
never dropped from the folder layout, so you always get:

MyOtherWorkSpace
MyComponent
MyRootFolder
Stuff

Have I missed something ? Can the same folder layout as "Load" creates,
be created using "Load As" ??

Dave



permanent link
Tom Frauenhofer (1.3k58435) | answered Nov 19 '09, 8:38 a.m.
Thanks Geoff

On 11/14/2009 5:27 PM, Geoffrey Clemm wrote:
Work item 85020 ("scm load should provide an option to load artifacts
with full path information") should address this issue. This work item
is currently marked as Planned-For 3.0.

Cheers,
Geoff

David Ward wrote:
Using RTC 2.0 GA

I have a pretty typical component/folder structure like so:

MyComponent
MyRootFolder
Stuff ...


If I load the component using defaults (i.e. not Load As), then I get
the following in my Eclipse workspace

MyEclipseWorkSpace
MyRootFolder
Stuff

The component name has been dropped from the folder layout
(perhaps by the "Load the folders of components as projects" default
setting).


When using the "Load As" dialogs, it seems that the component name is
never dropped from the folder layout, so you always get:

MyOtherWorkSpace
MyComponent
MyRootFolder
Stuff

Have I missed something ? Can the same folder layout as "Load"
creates, be created using "Load As" ??

Dave


Your answer


Register or to post your answer.