Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

adding files to SC, which are not in Eclipse project folders

Hello,

in ClearCase it is possible to add additional files which are on the same root level as eclipse project directories through a specific eclipse view ("ClearCase").

Our ClearCase project structure looks like this:
<component> 

|_eclipse project modul A
|_sub dir A1
|_sub dir A2
|_.project
|_build.xml
|_build.properties
|_eclipse project modul B
|_sub dir B1
|_sub dir B2
|_.project
|_build.xml
|_build.properties
|_build.xml
|_build.properties
|_setenv.bat

How is it possible add the root build scripts in RTC and to edit them?

Thanks in advance!

0 votes



10 answers

Permanent link
Hello,

in ClearCase it is possible to add additional files which are on the same level as eclipse project directories (metadata files or build scripts not associated to a specific eclipse project) through a specific eclipse view.

How is it possible add those files in RTC and to edit them? The Repository Browser allows me to view the files, but I cannot add anything!

Thanks in advance!


I can't see a way to add these outside the project folder in the package browser. Were you thinking of the Resource View in Eclipse?

You can add a folder to a project, and if you use the Advanced button on the New Folder wizard, you can specify a directory/file location in another location.

regards

anthony

0 votes


Permanent link
Hello,

in ClearCase it is possible to add additional files which are on the same level as eclipse project directories (metadata files or build scripts not associated to a specific eclipse project) through a specific eclipse view.

How is it possible add those files in RTC and to edit them? The Repository Browser allows me to view the files, but I cannot add anything!

Thanks in advance!


I can't see a way to add these outside the project folder in the package browser. Were you thinking of the Resource View in Eclipse?

You can add a folder to a project, and if you use the Advanced button on the New Folder wizard, you can specify a directory/file location in another location.

regards

anthony

Thanks. Yes I know that it is impossible to see and manipulate files outside the project directories in the Eclipse Package Explorer root. But maybe there are some more powerful tools/views to edit the package structure (like in the ClearCase Browser plugin, TortoisCVS or TortoisSVN). Or is it not permitted to add those files in RTC by principle?

Alex

0 votes


Permanent link
The most direct way to do so is via the Jazz SCM command line.
If you want to do it via Eclipse, one way is to:

- create a new "project" located at the root of your eclipse project tree
- add it to Jazz source control (to some Jazz component of your choice)
- "undo" the creation of the .project fole and .metadata folder
- deliver the change

Then another workspace can load that project-tree using the "load", but
select the "Browse the components to select the folders to be loaded.
And then in the "Advanced Options" on the following "Repository folders
to load" page, select "Load the selected folders and create Eclipse
projects for projects found within the selected folder hierarchy".

Now you can both access the "project folders" in the normal way from
within the Eclipse, but you can also use "File -> Open File" to access
the metadata files that sit next to those project directories.

Cheers,
Geoff


schinal wrote:
Hello,

in ClearCase it is possible to add additional files which are on the
same level as eclipse project directories (metadata files or build
scripts not associated to a specific eclipse project) through a
specific eclipse view.

How is it possible add those files in RTC and to edit them? The
Repository Browser allows me to view the files, but I cannot add
anything!

Thanks in advance!

0 votes


Permanent link
Hi Geoff,

thanks for the answer, but I can't see the difference. How can I commit files into Component root (in the same level like project folders)?

Geoff, if I undo the change to creat the ".project" file I get the Error 'getting contents' "Ressource '/test/.project' does not exist."

Even if it would be possible, I doubt that the files would be delivered into the component root.

Its is a little bit annoying for us because if we cannot migrate our ClearCase manged project structure into RTC. So the use of RTC will be impossible for us.

The most direct way to do so is via the Jazz SCM command line.
If you want to do it via Eclipse, one way is to:

- create a new "project" located at the root of your eclipse project tree
- add it to Jazz source control (to some Jazz component of your choice)
- "undo" the creation of the .project fole and .metadata folder
- deliver the change

Then another workspace can load that project-tree using the "load", but
select the "Browse the components to select the folders to be loaded.
And then in the "Advanced Options" on the following "Repository folders
to load" page, select "Load the selected folders and create Eclipse
projects for projects found within the selected folder hierarchy".

Now you can both access the "project folders" in the normal way from
within the Eclipse, but you can also use "File -> Open File" to access
the metadata files that sit next to those project directories.

Cheers,
Geoff


schinal wrote:
Hello,

in ClearCase it is possible to add additional files which are on the
same level as eclipse project directories (metadata files or build
scripts not associated to a specific eclipse project) through a
specific eclipse view.

How is it possible add those files in RTC and to edit them? The
Repository Browser allows me to view the files, but I cannot add
anything!

Thanks in advance!

0 votes


Permanent link
In 2.0, SCM supports flexible loading and you can achieve the setup described.

What you should do is load the component root and in the advanced section specify to import the projects from within the component into Eclipse. You can then go to the directory containing the component root folder loaded. Create/modify your files that are directly under your component root, you will be doing this outside of Eclipse because those files are not within Eclipse projects. You will need to refresh your pending changes for the sandbox you have loaded the component into in order to see the changes you made outside of Eclipse.

For fully detailed steps on how to load the component root and refresh your pending changes view, checkout the article on SCM loading:
http://jazz.net/library/article/192

Heather

Hi Geoff,

thanks for the answer, but I can't see the difference. How can I commit files into Component root (in the same level like project folders)?

Geoff, if I undo the change to creat the ".project" file I get the Error 'getting contents' "Ressource '/test/.project' does not exist."

Even if it would be possible, I doubt that the files would be delivered into the component root.

Its is a little bit annoying for us because if we cannot migrate our ClearCase manged project structure into RTC. So the use of RTC will be impossible for us.

The most direct way to do so is via the Jazz SCM command line.
If you want to do it via Eclipse, one way is to:

- create a new "project" located at the root of your eclipse project tree
- add it to Jazz source control (to some Jazz component of your choice)
- "undo" the creation of the .project fole and .metadata folder
- deliver the change

Then another workspace can load that project-tree using the "load", but
select the "Browse the components to select the folders to be loaded.
And then in the "Advanced Options" on the following "Repository folders
to load" page, select "Load the selected folders and create Eclipse
projects for projects found within the selected folder hierarchy".

Now you can both access the "project folders" in the normal way from
within the Eclipse, but you can also use "File -> Open File" to access
the metadata files that sit next to those project directories.

Cheers,
Geoff


schinal wrote:
Hello,

in ClearCase it is possible to add additional files which are on the
same level as eclipse project directories (metadata files or build
scripts not associated to a specific eclipse project) through a
specific eclipse view.

How is it possible add those files in RTC and to edit them? The
Repository Browser allows me to view the files, but I cannot add
anything!

Thanks in advance!

0 votes


Permanent link
Sorry I do not get it. While I first time import the projects from the file system into eclipse, share the projects into a component and deliver everything, the root files will be ignored by the Jazz SC and not be shown in the Project Explorer! Even if I refresh the Sandbox they will be still ignored and changes are not detected. I don't see a chance to put them under Jazz SC.

In 2.0, SCM supports flexible loading and you can achieve the setup described.

What you should do is load the component root and in the advanced section specify to import the projects from within the component into Eclipse. You can then go to the directory containing the component root folder loaded. Create/modify your files that are directly under your component root, you will be doing this outside of Eclipse because those files are not within Eclipse projects. You will need to refresh your pending changes for the sandbox you have loaded the component into in order to see the changes you made outside of Eclipse.

For fully detailed steps on how to load the component root and refresh your pending changes view, checkout the article on SCM loading:
http://jazz.net/library/article/192

Heather

Hi Geoff,

thanks for the answer, but I can't see the difference. How can I commit files into Component root (in the same level like project folders)?

Geoff, if I undo the change to creat the ".project" file I get the Error 'getting contents' "Ressource '/test/.project' does not exist."

Even if it would be possible, I doubt that the files would be delivered into the component root.

Its is a little bit annoying for us because if we cannot migrate our ClearCase manged project structure into RTC. So the use of RTC will be impossible for us.

The most direct way to do so is via the Jazz SCM command line.
If you want to do it via Eclipse, one way is to:

- create a new "project" located at the root of your eclipse project tree
- add it to Jazz source control (to some Jazz component of your choice)
- "undo" the creation of the .project fole and .metadata folder
- deliver the change

Then another workspace can load that project-tree using the "load", but
select the "Browse the components to select the folders to be loaded.
And then in the "Advanced Options" on the following "Repository folders
to load" page, select "Load the selected folders and create Eclipse
projects for projects found within the selected folder hierarchy".

Now you can both access the "project folders" in the normal way from
within the Eclipse, but you can also use "File -> Open File" to access
the metadata files that sit next to those project directories.

Cheers,
Geoff


schinal wrote:
Hello,

in ClearCase it is possible to add additional files which are on the
same level as eclipse project directories (metadata files or build
scripts not associated to a specific eclipse project) through a
specific eclipse view.

How is it possible add those files in RTC and to edit them? The
Repository Browser allows me to view the files, but I cannot add
anything!

Thanks in advance!

0 votes


Permanent link
Ideally you would be able to share the files via the command line, but unfortunately we don't have share file support yet.

What needs to happen is the component root be loaded. Once that occurs, the files will be detected as additions. When you share folders (project folders in eclipse) only those folders are considered loaded (as opposed to the component root).

What you can do is share the projects into your component. Now you are just missing the build files from your example. Load the component root (it will be easiest if you do this in a new location in Eclipse session that doesn't already have the other projects just shared loaded). Load the component root in a different location because it will delete anything from the directory that is not under the component root being loaded. Add your build files under the root and refresh the sandbox. The files should then show up as file additions that can then be committed.

Heather

Sorry I do not get it. While I first time import the projects from the file system into eclipse, share the projects into a component and deliver everything, the root files will be ignored by the Jazz SC and not be shown in the Project Explorer! Even if I refresh the Sandbox they will be still ignored and changes are not detected. I don't see a chance to put them under Jazz SC.

In 2.0, SCM supports flexible loading and you can achieve the setup described.

What you should do is load the component root and in the advanced section specify to import the projects from within the component into Eclipse. You can then go to the directory containing the component root folder loaded. Create/modify your files that are directly under your component root, you will be doing this outside of Eclipse because those files are not within Eclipse projects. You will need to refresh your pending changes for the sandbox you have loaded the component into in order to see the changes you made outside of Eclipse.

For fully detailed steps on how to load the component root and refresh your pending changes view, checkout the article on SCM loading:
http://jazz.net/library/article/192

Heather

Hi Geoff,

thanks for the answer, but I can't see the difference. How can I commit files into Component root (in the same level like project folders)?

Geoff, if I undo the change to creat the ".project" file I get the Error 'getting contents' "Ressource '/test/.project' does not exist."

Even if it would be possible, I doubt that the files would be delivered into the component root.

Its is a little bit annoying for us because if we cannot migrate our ClearCase manged project structure into RTC. So the use of RTC will be impossible for us.

The most direct way to do so is via the Jazz SCM command line.
If you want to do it via Eclipse, one way is to:

- create a new "project" located at the root of your eclipse project tree
- add it to Jazz source control (to some Jazz component of your choice)
- "undo" the creation of the .project fole and .metadata folder
- deliver the change

Then another workspace can load that project-tree using the "load", but
select the "Browse the components to select the folders to be loaded.
And then in the "Advanced Options" on the following "Repository folders
to load" page, select "Load the selected folders and create Eclipse
projects for projects found within the selected folder hierarchy".

Now you can both access the "project folders" in the normal way from
within the Eclipse, but you can also use "File -> Open File" to access
the metadata files that sit next to those project directories.

Cheers,
Geoff


schinal wrote:
Hello,

in ClearCase it is possible to add additional files which are on the
same level as eclipse project directories (metadata files or build
scripts not associated to a specific eclipse project) through a
specific eclipse view.

How is it possible add those files in RTC and to edit them? The
Repository Browser allows me to view the files, but I cannot add
anything!

Thanks in advance!

0 votes


Permanent link
OK thanks Heather and Geoff. Together with your description and your link I could figure out the trick now:

1) I imported and shared project sources, which I imported from the file system (thus my root files have been ignored)
2) I unload the workspace (with deleting of all local content)
3) I load again but this time I checked "Load the root folders of the components as projects"
4) in the next step I select ONLY the root folder of the component (sometimes also refered as 'working set') and finish. With this option RTC will load all the root files and folders and sub content and put them under source control. In this way I could add the project root files I needed in the eclipse way (however changes in windows explorer have not been detected).

In the same window there is also the advanced section with more options. The first and the second radio button had the same effect for me (as discribed above). The third option didn't load any projects into my java view, but however changes on the windows explorer were detected (also on the project root) when I did a Sandbox refresh.

Working on the commandline would be powerful, but I don't think this would make the work easier.

Thanks a lot.

Alexander

PS: it would be nice if changes with windows explorer could be also detected with the normal load mode to make the SCM behavour more consistant).

Alltogether I must say RTC is much faster, useable and very powerful in comparison to ClearCase or ClearQuest. However the migration is not trivial because some basic principles and the terminology have changed a lot.

0 votes


Permanent link
Hello.
For the the Jazz.net based source control you need to deal with eclipse to change files under source control. That is fine for software engineers.
In our projects many other people have source controlled files (e.g. purchasing lists, manual test procedures, approval documents). They have no glue of eclipse and it is not their job to get knowledge in eclipse.
Clear Case has a integration with the WINDOWS explorer. You can check in / out files directly from the windows explorer and I can create snapshot views on a server which look like normal server locations to "non clearcase users" - good enough to make the documents available to be read by "non software" guys.
So two questions
1. Is their a way to offer basic check in / out /add to source control functionality to the WINDOWS explorer, so that you do not have to start eclipse to use those basic feautures.
2. Can I post "snapshot views" of a repository workspace on a server location and update that in regular time intervals -so that all WINDOWS user can see the content without eclipse?


Roland

0 votes


Permanent link
For your second question:
Yes it is possible using a build engine. That is what we are doing at one of my project with the documentation. You just need a basic build script that copies the files of the repository into a common directory.

About your first question. I'm not aware of any explorer plugin. You need at least eclipse to check-in and check out. An alternative is using the web interface. There you can upload files directly into the stream. But still no explorer integration.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 07 '09, 8:04 a.m.

Question was seen: 11,646 times

Last updated: Jul 07 '09, 8:04 a.m.

Confirmation Cancel Confirm