Is there an 'Import existing project' command in scm? - I will use it after scm load.
In RTC, when you create/load a workspace for a specific stream. It is automatically displayed in the project explorer and is already shared to the jazz source control.
My problem:
I have a created a script to load a stream into a workspace. However it does not automatically import the downloaded files and share it to jazz source control. Therefore, I have to manually do it in RTC by:
File > Import > Import Existing projects. Then after the projects are displayed in project explorer. I will share it in the Jazz source control.
This is the script of scm load in my .bat file.
%scmPath% load -r %repository% %targetworkspace% %localWorkspace% --all -q -f -i
So basically the workspace is already created in RTC but I have not load any components inside it. It is empty. The script will load all the components but it is not in the project explorer and not shared too.
My problem:
I have a created a script to load a stream into a workspace. However it does not automatically import the downloaded files and share it to jazz source control. Therefore, I have to manually do it in RTC by:
File > Import > Import Existing projects. Then after the projects are displayed in project explorer. I will share it in the Jazz source control.
This is the script of scm load in my .bat file.
%scmPath% load -r %repository% %targetworkspace% %localWorkspace% --all -q -f -i
So basically the workspace is already created in RTC but I have not load any components inside it. It is empty. The script will load all the components but it is not in the project explorer and not shared too.
2 answers
Hi John,
I am not sure what you are asking. However, the data shows up in the Eclipse project explorer because there is a .project file. Eclipse only recognizes anything as project if there is such a file in the root folder. That is why loading a folder in RTC produces such a file. You can by the way put it on the ignore list while sharing and it will not be shared,but always created when loading.
I am not sure which API to use to import and create the .project file. That is most likely Eclipse API and not RTC API.
I am not sure what you are asking. However, the data shows up in the Eclipse project explorer because there is a .project file. Eclipse only recognizes anything as project if there is such a file in the root folder. That is why loading a folder in RTC produces such a file. You can by the way put it on the ignore list while sharing and it will not be shared,but always created when loading.
I am not sure which API to use to import and create the .project file. That is most likely Eclipse API and not RTC API.
Comments
Is there a reason you want to load using the script? If you load from the Eclipse client, it will do what you want when loading instead of breaking it up into the steps of loading from CLI, importing into Eclipse, and connecting to your repository workspace.
You may want to look into load rules if you are trying to load your shares in special ways. This may be what you want instead of using the CLI to load.
https://jazz.net/library/article/1015
You may want to look into load rules if you are trying to load your shares in special ways. This may be what you want instead of using the CLI to load.
https://jazz.net/library/article/1015
Comments
Xuan Jiang
Oct 23 '14, 2:54 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 23 '14, 3:15 a.m.Xuan Jiang
Oct 23 '14, 3:33 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 23 '14, 3:40 a.m.