Open Folder within ClearCase Remote Client using Windows Explorer - clearcase-remote-client

Is there a way to open the folder location of a file from within CCRC? While I know I can open/copy from directly within CCRC, it is often useful to work directly with the file from within Windows Explorer.
I am looking for something like "open file location" or "open in windows explorer". The folder within CCRC does not appear to allow opening it directly as the double-mouse-click action just expands the tree listing. The path is listed/copyable within the "ClearCase Details" tab, but I am trying to take my laziness to a whole new level by being able to open the folder with a single click.
Any ideas if this is a feature available and where I can find it? Thanks.
Info:
Rational ClearCase Remote Client 7.1.1
Windows 7

You can try a drag an drop from the CCRC to a windows explorer, but this might not work.
(The reverse works, from CCRC 7.0.1)
If it doesn't work, then this feature isn't available in CCRC 7.x, and should be tested in a CCRC 8.x, where the integration with the OS explorer is tighter (I don't have a CCRC 8.x right now to test it out).

Related

Clearcase corrupting checked out Project files when changing network connection

Is anyone aware of a known issue (and workaround) where it seems like Rational ClearCase will corrupt a Microsoft Project file if it is checked out and the network connection changes? I have a laptop that is docked and hardwired to local network most of the time, and I perform some work with the Project file, then I will undock the laptop to go to a meeting or home for the evening, and upon re-docking, the Project file can no longer be opened and appears corrupt.
The error message shown is "Project cannot open the file. -Check that the file name and path are correct. -Check that the file format is recognized by Project..."
There doesn't seem to be anything directly related to Microsoft Project Server regarding ClearCase on ibm.com.
I have seen issues with dynamic views, when the view server is on the network (and said network is abruptly cut).
If this is your case, I would recommend using snapshot views.
You can have similar issue with ClearTeam 8.x web views (since the latest versions support dynamic views)
Regarding snapshot views (meaning files directly on your hard drive), you only need to watch for concurrent processes that might still access your file when undocking. A program like procmon can help.

how to deploy Windows WPF Application?

I have a simple Windows Form application(WPF) with entity framework. After compiled, only a few files generated:
EntityFramework.dll
EntityFramework.xml
MyApp.exe
MyApp.application
MyApp.exe.config
...
Then I just copy following files to a network shared folder:
EntityFramework.dll
MyApp.exe
MyApp.exe.config
Then I can double click on MyApp.exe from developer computer the launch the app, but can not launch from another end user computer.
How to resolve this problem?
When you double click, app is not launching means certainly it is crashing so type the command eventvwr in run or cmd it'll open the Event viewer in that go to Windows Logs and Click on Application, you can see different levels of logs in that just find the last error log view the details it might help you
Have a look in the event log on the target computer and look at the error that is actually being reported.
It could be a missing installation of the correct version of the DotNet framework as suggested in the comments above, or it could also be that the execution policy of the target computer is preventing the user from running from a network drive (As a developer you probably have admin rights on your local pc allowing you to do this).
Whatever the actual cause you are always better to use some form of installer, rather than this form of putting files on the network (commonly known as xcopy deployment).
Probably the best solution is to use Visual studio to generate you a click once installer and publish it to your network drive. This will then copy the application locally on the users pc and run it from there.

Using Clearcase and Eclipse for C++

I work on a large C/C++ project and the code base is maintained in Clearcase. Till date we primarily work in Linux environment and we don't extensively use IDE. We directly checkout and edit files through VI.
Since I got access to Clearcase for Windows access, I am now trying to access the sources files in Eclipse. I primarily want to use Eclipse for Editing and Code Navigation. I create views through my unix account. I am able to mount the same view on my Windows PC using Clearcase Explorer. I am able to access the code and make changes to the file that were checked out earlier.
Can someone familiar to Eclipse please let me know how I can view that code base in eclipse. I do NOT want to create copies of the code base in my local filesystem. If I try creating a new project with the code base drive as the root folder, the project wont get created since I don't have write permission in that folder.
Is there a workaround?
Thanks in Advance!
As long as you can mount your Linux filesystem on windows, you should be able to reference the sources directly from Eclipse.
The most important detail, for the ClearCase plugin to work is for the .project to and .classpath files to be right alongside the sources, in your snapshot view.
See:
"When committing projects should I include .project & .classpath?"
"imported Eclipse project not linking to ClearCase"
"Clearcase plugin for eclipse usage"
For that Unix view to be recognize from Windows, you would have to tag and register it in the Windows region: "ClearCase: Are views created in Unix not visible from Windows and vice versa?".
Note that the case of snapshot views (accessing Unix views from windows), as this help page details, any ClearCase operation might fail:
See "Before accessing snapshot views across different platforms"
You can access snapshot views across different platforms, but you cannot issue Rational ClearCase commands across platforms.
For example, you cannot check out files in snapshot views on UNIX workstations from Rational ClearCase hosts on Windows computers, nor can you create shortcuts to snapshot views on UNIX workstations from Rational ClearCase Explorer.
If you are on a Rational ClearCase host running on a Windows computer and you hijack a file in a UNIX snapshot view, the hijack is detected when you update the view from a Rational ClearCase host on a UNIX platform.
In your case, if by "mounting" you mean mount dynamic view, then you should be ok, as mentioned in this help page, use Region Synchronizer to import the Linux or UNIX view tag of the view into your Windows network region.

Context Menus with Clearcase on Xp 64 Bit

If I run
C:\WINDOWS\SysWOW64\explorer.exe /separate,c:
the the 32 bit version of windows explorer comes up and I can use context menus.
If i go to C:\WINDOWS\SysWOW64 and double click on explorer I do not get context menues.
Does anyone know how to get a short cut to
C:\WINDOWS\SysWOW64\explorer.exe /separate,c:
I did put that command in a .cmd file and run from there but then I have cmd window up all the time.
The IBM technote swg21251833 does mention that the 64-bit Windows Explorer is not displaying ClearCase Context menus.
ClearCase is a 32-bit application, therefore, the ClearCase and Windows Explorer integration will only work in a 32-bit Windows Explorer.
You are using the workaround for Microsoft Windows XP and Windows Vista 64-bi, which indeed requires to invoke 32-bit version of Windows Explorer to access ClearCase.
You can define a shortcut on the desktop, instead of putting it in a .cmd file, as mentioned in the last answer of this thread, and detailed in this document:
It is important to launch this as a separate process from the Windows desktop.
In order to do that, you must specify the '/separate' parameter to Explorer.
You can create a shortcut to launch the 32-bit Explorer by doing the following
(Note: The following steps have not been shown to work on all versions of Windows.):
Right-click on your Windows desktop, selecting New and Shortcut.
Specify %windir%\SysWoW64\explorer.exe /separate as the location for the target.
You might want to add an initial directory for it to open as well.
In this example case, we want to use it to copy files to my Windows desktop so the following is used as the location for the shortcut:
C:\Windows\SysWOW64\explorer.exe /separate, c:\users\username\desktop /min
In this example, C:\users\username\desktop is the location where Windows 2008 Server saves the user's desktop.
Users, can then click on this icon and drag and drop spooled files and stream files into it, and they appear on the desktop.
There can be some confusion about whether or not an application is running is a 32-bit or 64-bit application. The Windows task manager can be used to identify 32-bit applications though.
If you have the Navigator and the 32-bit Windows Explorer running on a 64-bit version of Windows and open the task manager (press Ctrl+Shift+Esc), you will notice that the 32-bit applications have '*32' after the Image Name.
Note the final /min option, that the OP emptyshell details in the comment:
Without the /min, a command window will also pop up.
With the /win, no command window pops up.
I also discovered that if, in the windows explorer properties, Select Tools, Select Folder Options, Select View Tab, "Launch folder windows in a separate process" is selected, then:
if a person double clicks on C:\Windows\SysWoW64\explorer the ClearCase context menus will be there.
That would be because SysWoW64\explorer is launched as a separate process which is needed for context menus to work with the 32 Bit version of explorer. (Equivalent to the /seperate switch in the command line).

ClearCase Version Tree Browser SendTo context menu subfolders

I want to group the commands in my SendTo Windows XP folder into different subfolders.
Creating a subdirectories in the SendTo folder and putting shortcuts in these subfolders works fine for Windows Explorer. But for ClearCase 7.0.1 Version Tree the right click SendTo context menu does not show the shortcuts in the subfolders.
Has anyone found a way to make this work - or does it work in a later release of ClearCase?
7.0.1 has always had issues with the SendTo menu.
As an example, see this thread (on a different kind of issue).
(I suppose you are talking about ClearCase, not CC LT, and in 32bits, not 64bits which has its own set of issues)
It should work better on 7.1.2, but i haven't fully tested the "SendTo" integration menu.

Resources