I am doing my development on RAD, with Clearcase as the source control tool.
Here is what I trying to do:
I created new projects and added them to source control in view A, delivered view A, then make a new baseline
I created view B and rebase it to the latest baseline
I created a new workspace in RAD, and try to import projects from view B, now problem happens, no projects is shown in view B, but when I choose view A, those projects exists
Does anyone have idea? And is there any command that I can list out all files in view B so that I can make sure the problem is not about the rebase? I really don't know what to check for this problem.
This is to update on how I resolved the problem:
Thanks for VonC's clues, some of the files used by RAD was not added to source control, making the projects invisible...
In RAD, click Window->Preferences
In the popup, open the section Team->Ignored Resources
Search for the following patterns: ".project", ".factorypath", ".classpath". If you cannot find these patterns, that's fine, otherwise, uncheck them so that RAD would not bypass these files.
Run "Find Resources to Add to Source Control" to add the missing files to ClearCase
One possible explanation would be that the RAD project files (at least the .project) are private (that is: not versioned).
Those files would be visible in viewA, but not visible in viewB, as the latter only display what has been versionned and baselined.
Related
We are trying to work on a Codename One project using git version control.
When I pull the project from git, the files (modified and newly added theme res files) are updated but they don't appear in the theme.
My changes aren't reflected when I try to run the project, how to refresh the project?
I tried to build/clean, refresh the cn1lib too but made no progress.
Thankyou shai, i uncheck the xml team mode but that doesnt make any difference.. you gave the link (https://www.codenameone.com/team.html), what is this for?? sorry i didn't quite get it.
And the solution isnt that clear. what do you mean by checking the res directory...
Let me clear my problem here.. when my team member adds a form (eg main form) in the gui builder, it get pulled from git in my project. there r 2 files main.ui and main file but when i open my res file or gui builder, the main form is not there.
This is actually triggered by a feature specifically designed for working with a team in version controlled environments. You can get this to work by unchecking File->XML Team Mode in the designer but that would "work around" this feature: http://www.codenameone.com/blog/teamwork-and-other-things.html
The solution would be to checkin the res directory, when it exists opening the res file refers to that instead of to the theme file. This allows your team to edit that directory together and avoid conflicts that will arise when sharing the binary res file.
I am using Clearteam Explorer 8. I recently was browsing a project folder which contained a symbolic link. Explorer said that I would need to enable something in order to follow the link. I said ok.
Now it insists on showing me every possible folder in all of my views including unloaded ones. The folders have no contents, but it makes all views really hard to navigate as there is a lot of chaff in the view's tree.
I cannot find where this option is set/unset because I set it in response to a one-time prompt. Does anyone know how to turn this off and have it only show me loaded folders?
Check in the Load Rules tab of the "Edit Configuration" dialog box, for Web views only, if you have the option "Show Obsolete Directories and Files" selected.
Un-selecting this option might help.
If you can edit the config spec of your view, you can add cleaning rules, like:
element /avob/* -none
If you placed it just before the last one (element * /main/LATEST), that would hep ClearCase to not select at all any element which wasn't already selected before by the config spec selection rules.
I had the same problem and I solved it by:
Removing the parameter ccvtreeviewer.fetchFullTree=true from file com.ibm.rational.clearcase.prefs. On my machine, this file is located in folder: C:\Documents and Settings\UserName\.Rational\CTE8\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\com.ibm.rational.clearcase.prefs
Editing the file com.ibm.rational.team.client.ui.model.prefs and update theses parameters:
appliedTreeRules_0=com.ibm.rational.clearcase.ui.actions.ShowLoadedVobsAction|Public and Private VOBs|true|true|true|System;
nonappliedTreeRules_0=com.ibm.rational.clearcase.ui.actions.ShowUnloadedVobsAction|Unloaded VOBs|true|false|false|System;com.ibm.rational.clearcase.ui.actions.ShowUnloadedElementsAction|Unloaded Elements|true|false|false|System;com.ibm.rational.clearcase.ui.actions.ShowLoadedPrivateVobsAction|Private VOBs only|true|true|false|System;com.ibm.rational.clearcase.ui.actions.ShowLoadedPublicVobsAction|Public VOBs only|true|true|false|System;com.ibm.rational.clearcase.ui.actions.ShowUnmountedVobsAction|Unmounted VOBs|true|false|false|System;
I need some help connecting my RAD 7.5 workspace to a ClearCase source-controlled snapshot view.
Here is what I have done so far.
Creating a stream of the code in ClearCase - Done.
Creating a dynamic view of the code in ClearCase - Done.
Checking all files into source - Done, every file is part of the "File Element Version" in ClearCase for this dynamic view.
Connect a Worspace to the Dynamic View - I don't know if this is necessary, but I have managed to do this. And no, I do not remember what I did exactly to make it connect to the source.
Create a snapshot view from the source - Done. In ClearCase Explorer, under "Exploring ClearCase Projects", I right-click to stream of my code and choose "Create View", then specifically select "create Dynamic View" and "Snapshot", then choose a local c:/ccviews/ folder for my source to be created in, then choose the source components to be loaded into that view.
Create a new workspace for this Snapshot View - Done.
Set up the Snapshot View for a ClearCase Connection Done, I open "Preferences" under the "Windows" Dropdown, expand "General", select "Capabilities", go to "Advanced Options", expand "Team", and make sure that UCM and SCM ClearCase Adapter are bot checkmarked.
Connect to ClearCase - Done.
Import the project - Done. I select "Import" from the File dropdown, expand "General", select "Existing Projects Into Workspace", select c:/ccviews/[Folder containing my project], check the "copy projects into workspace" box, and hit OK.
Run the migration tool - Done.
So with that all complete, I still cannot connect to my source. I KNOW that ClearCase is connected, and that I can connect a workspace to the source because my Dynamic View is connected to said source, but the Dynamic View is not ideal for the read/write testing that I need to do.
I can publish my code to a WAS7 server, but that wont' do me much good if I can't make changes to it. I've tried rebasing my stream but it wont' let me, nor will it let me do a deliver stream action.
So what now do I need to do to complete the connection of my workspace to my source?
As requested, here are pictures of my Eclipse workspace, and my Clearcase screen with .project and .classpath files shown.
Larger Size: http://i.imgur.com/J5WRPKq.png
Larger Size: http://i.imgur.com/4vCTQ55.png
What you can try is open your RAD with a different Eclipse workspace, and try and import your project (from the snapsphot view this time) in that new Eclipse workspace.
I would recommend also stopping the dynamic view (just to be on the safe side, even though both should be able to run together)
cleartool endview -server my_dynamic_view_tag
My company has recently switched from using Perforce to Rational ClearCase for version control.
In the P4Win client it was possible to select View -> Entire Depot and browse depot files that were outside my client spec and this was useful for figuring out exactly what I needed to add to my client spec.
Significantly this avoided the need to synch the files from the depot before viewing them, and was therefore quicker.
I'm now using ClearTeam Explorer and can't seem to find an equivalent. I'd like to have this for a similar purpose, to figure out exactly what I need in the load rules for my snapshot view and also to decide what views I need to create.
Does anyone know if it is possible to view what files exist under a project in ClearTeam Explorer without first creating a view on the project / joining it?
ClearTeam Explorer is basically a trimmed down Eclipse with ClearCase specific plugins.
thanks.
The easiest way would be to create a dynamic view (you need to add -stream yourStream#\yourPvob to the mkview command, I know it looks like you "joining a project", but still, dynamic view are quick to setup).
The idea is to configure your config spec with the right selection rules (a dynamic view will display the files instantly), and then make your snapshot view with those same selection rules (and the appropriate load rules, specific to a snapshot view)
Note that, according to the CCRC wiki:
With the Release of v8.0, the ClearTeam Explorer is the common Eclipse UI client that supports MVFS on native clients, as well as webviews.
CM Server in 7.1.x was renamed to CCRC Wan Server in v8.
If you don't have cleartool installed, that means you are using webviews (which are snapshot views with web access to the CCRC Wan server).
In that case, there is no easy way to browse any code from any Baseline (other than joining a project)
FWIW now, wanted to suggest a different solution here.
I would create a web view on the stream with empty load rule.
This will ensure a faster view creation.
Then from ClearTeam Navigator menu, I will enable the options to show
Unloaded VOBs
Unloaded Elements
This will ensure that the unloaded elements chosen from my element rules are displayed in ClearTeam Details and ClearTeam Navigator.
Note: You need to be connected to the CCRC server to view the unloaded elements.
Then I can browse the file structure and decide which files needs to be added to my view's load rule.
Or I can just right click on any unloaded/partially loaded resource and select "Load Resource..." which will load the item to my view.
It is possible to export settings from one project and import them in another.
However, it seems that only "include Paths" and "Symbols" can be moved to a new project this way.
Is there any reliable way to copy all settings? Particularly I would like to copy the linker settings for my embedded ARM project.
I do not want copy the settings manually, as this is something that will have to be done often by at bunch of people.
The easiest way I've discovered to duplicate the settings for a project is to use another workspace. It takes a few steps to set up but you should only need to do it once.
1. Start a 2nd copy of eclipse and select or create a new workspace.
2. Import your baseline code.
3. Rename the project to something generic like NewProject
4. If your project has files you don't want to be imported into new projects delete them. I find it helpful to keep a few (like main.cpp)
Now back to your original workspace.
1. File->Import->Existing Projects into Workspace Next button
2. Use Browse... to go to your newly created workspace and select NewProject.
3. Check the Copy projects into workspace checkbox.
4. If you have warnings about the project already existing try clicking the Refresh button and make sure you don't have a folder in the current workspace with the same name. [ You can delete a project but not remove it from the hard disk so you have to make sure the intended folder name is not in use. ]
5. Rename the project to your desired name.
6. Start coding...
All the toolchain settings, include paths and library paths should be intact. It seems like a lot of work, but once you do it once its not too bad (as long as you can keep duplicating that one project).
This can be done in simple steps. Useful if you do not want to create new workspaces.
Open the project in the workspace.
Click on project and copy.
On the project tab area, paste the project.
Eclipse asks for a name, rename it to a new project.
Click Ok.