OpenAPI directory deletion issue in ClearCase plug-in

Hi all,

I have noticed that the ClearCase plug-in contains lot of limitations for
directory management. (I am using Dynamic Views on winXP CC clients)

For example, package deletion fails to work because IDEA try to delete the
directory itself whereas it is still managed by CC (thus read-only).
I have added a beforeFileDeletion listener which deletes the directory using
a Clearcase command.
Then, IDEA still attempts to delete the directory itself but this one is
already erased.

According to Serge from the support, there is no way to prevent IDEA to
perform this deletion.
A suggested workaround is to recreate the directory outside CC to allow IDEA
to delete the directory.
This won't perform well and it won't work anyway if the directory contains
some subdirectories and files because all of them are also deleted by CC but
IDEA will attempt to delete them as well.

Is there any other solution with the current openAPI ?

What are the plans for the new upcoming openAPI in Aurora ?

Thank you,

Cedric


2 comments

What are the plans for the new upcoming openAPI in Aurora ?


They are not detailed yet.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"cedric" <cedric.rochet@alfa-consult.com> wrote in message
news:b83kep$g15$1@is.intellij.net...

Hi all,

>

I have noticed that the ClearCase plug-in contains lot of limitations for
directory management. (I am using Dynamic Views on winXP CC clients)

>

For example, package deletion fails to work because IDEA try to delete the
directory itself whereas it is still managed by CC (thus read-only).
I have added a beforeFileDeletion listener which deletes the directory

using

a Clearcase command.
Then, IDEA still attempts to delete the directory itself but this one is
already erased.

>

According to Serge from the support, there is no way to prevent IDEA to
perform this deletion.
A suggested workaround is to recreate the directory outside CC to allow

IDEA

to delete the directory.
This won't perform well and it won't work anyway if the directory contains
some subdirectories and files because all of them are also deleted by CC

but

IDEA will attempt to delete them as well.

>

Is there any other solution with the current openAPI ?

>

What are the plans for the new upcoming openAPI in Aurora ?

>

Thank you,

>

Cedric

>
>


0

Cedric, sorry but the response I made originaly didn't go through for some reason.
But here what I tried to say:
The new version of the plugin does solve your problem. It is a simple fix (check if the parent has been deleted) that is easy to make (even though I agree it should be understood by IDEA that some VCS do recursive actions by default, delete being just one of them).
There are other problems that a plugin developer cannot fix at all or with great pain that I would like JetBrains to concentrate first (see my other openapi posts on the subject).

Jacques

0

Please sign in to leave a comment.