Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Clearcase update file

393673May 1 2003 — edited May 8 2003
When I am checking out a file, the file is not updated before checking out. To my opinion the command for clearcase should be :
cleartool update <filename>
cleartool co -nc -reserved <filename>

or we should at least have the option to choose for update

waiting for responses

Comments

Brian.Duff
Hi,

Are you using a snapshot view? The support for ClearCase in JDeveloper is designed to work with dynamic views only.

Thanks,

Brian
JDev Team
Brian.Duff
Note that you can simulate this behavior by defining an external tool (Tools->External Tools...) to run Cleartool update. You will have to run the update separate from the check out though.

Thanks,

Brian
JDev Team
Andrew Hill
Hi Brian,

I'm experiencing a related (albeit intermittent) problem.

Background info:
ClearCase 2002, configured with a snapshot view.

When I update the view containing my source code, changes to files are not immediately available in JDev (9.0.3.1). Thus, if I open a file in JDev immediately after updating and checking out from my ClearCase view, I still see the previous version of the file. Even though I can confirm that the file has been updated (using other editors), I need to open and close the file a couple of times in JDev in order to see the latest changes.

Any thoughts?

Andrew
Brian.Duff
Hi Andrew,

Are you updating the file outside JDeveloper (via the command line or Explorer), or using an External Tool?

If it's the former, the problem may be due to timestamp issues - JDeveloper will not detect a change in the file unless the timestamp of the file changes on disk.

If the latter, the problem is that External Tools has no facility to update open editors in 9.0.3. Support for this will be in the 9.0.5 release.

In either case, let me know, I might be able to come up with an alternative solution.

Thanks,

Brian
JDev Team
Andrew Hill
Hi Brian.

I am using the ClearCase Explorer tool to perform view updates, thus outside JDeveloper.

However, I can see the timestamp of the file being updated in both ClearCase Explorer and Windows Explorer.

Thanks
Andrew
Brian.Duff
Is the timestamp on the file definitely being updated so that it's later than its timestamp before updating the file via ClearCase Explorer? Open editors in JDeveloper will normally always be reloaded when the file timestamp has changed to a later value.

The other thing to check is in Tools->Preferences... on the Environment page, make sure the "Automatically Reload Externally Modified Files" option is checked.

Thanks,

Brian
JDev Team
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 5 2003
Added on May 1 2003
6 comments
372 views