[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Error:Attempted to lock an already-locked dir

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-01-12 19:32:31 CET

news <news@sea.gmane.org> wrote on 01/12/2006 11:09:36 AM:

> Mark Phippard wrote:
> > One thing to watch out for with Eclipse is to not version folders that

> > contain compiled objects. Such as a "bin" or "classes" folder. When
> > Eclipse does a full rebuild it will delete the folder, which will
delete
> > the ".svn" metadata. These folders just should be deleted from your
> > repository and added to svn:ignore so that they are not put back.
> >
> > Mark
> >
>
> Thanks for this tip Mark. This could very well be why I often hit this
> error too and end up doing the delete/create of the project as well.

I know you use WDSC so watch out for WebFacing projects too. There are a
handful of options such as the old method of changing a site theme that
deletes a folder. If this folder is versioned it messes things up. The
most common one seems to be the WEB-INF/classes folder in any kind of web
project.

Also, the current version of Subclipse has special support for WebFacing
that I added. To enable it, just add an svn property named
"DeferFileDelete" with a value of "true" to your project folder and commit
it. With this property set, when WebFacing regenerates JSP by deleting
and then recreating the files, this will cause Subclipse to ignore the
initial delete and properly treat it as a file modification.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Jan 12 21:40:15 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.