Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Excluding files from project
Excluding files from project [message #150218] Tue, 23 March 2004 12:14 Go to next message
Eclipse UserFriend
Originally posted by: BillJ.graffica.co.uk

Hi,

We're running eclipse with conjunction with winCVS, and we are having
trouble with extra files being generated (by winCVS) being detected by
eclipse.

The problem is this:
When we mark a file in CVS for editing, CVS automatically generates a
backup file, and places it in a file with "CVS\Base" relative path to the
original file.
Eclipse does not currently filter these files out, and so attempts to
compile them. At the very least, the package definition is wrong, and so
the 'tasks' box ends up littered with Errors.

I tried the following locations to get Eclipse to filter the files out:
Window->Preferences->Team->Ignored Resources
Window->Preferences->Java->Compiler->Build Path->Filtered Resources
Package Explorer->Filters->Name Filter Patterns

In each of these locations, I tried the following patterns:
CVS
/CVS
CVS/
*CVS/
*CVS*

I then searched the message boards, and the closest match I could find was
this:
http://dev.eclipse.org/newslists/news.eclipse.tools/msg49417 .html
(Ideally this post would be responding to that post, but it's both
archived and a read-only group, and I'm new to posting.)
This message suggested using a plugin called hidden_resources, which adds
filters to the jdt.ui according to certain criteria. I tried this
technique, and while I could get the filters to appear in the Package
Explorer->Filters window, selecting them had no trouble.

The eclipse help files all seem to assume using the 'inbuilt' CVS system,
hence the help in here doesnt seem directly relevant (am I right in
thinking that .cvsignore files can't be used for my situation?), and
CVS-related sites do not seem to discuss the possibility of changing the
way that CVS generates CVS\Base files, so it seems like the best way to
solve this is to change the eclipse filters.

We are aware of the 'inbuilt' eclipse CVS system, but decided not to use
it for the following reasons:
>Apparently you need a UNIX box, which we currently do not have
>Apparently, the method of connecting eclipse to the external CVS system would
require changing some aspect of the project.
We are thinking of switching to the 'inbuilt' system, although as that
would require a significant overhaul of the system, we don't really to do
it immediately unless the problems we're currently having cannot be solved
without switching. As such, we are really hoping to find a way to solve
the problem and keep the eclipse/winCVS setup.

I would be extremely grateful if someone could point out either a good
place in eclipse to ensure that it neither displays or compiles any files
with a certain directory pattern in its hierarchy, or a good reference (or
even hints at further web searches which may prove more fruitful).

Thanks a lot,
Bill Johnson
Moved to eclipse.platform [message #150233 is a reply to message #150218] Tue, 23 March 2004 15:30 Go to previous message
Eclipse UserFriend
Originally posted by: BillJ.graffica.co.uk

Decided this message made more sense in eclipse.platform, and didnt want
to cross-post. Is it possible for someone to delete this thread?

The new location is
http://www.eclipse.org/newsportal/article.php?id=16780&g roup=eclipse.platform

Cheers,
Bill
Previous Topic:<filter> thats shows action for raw JavaProject
Next Topic:Visual Age-esque source code control
Goto Forum:
  


Current Time: Fri Dec 27 01:07:22 GMT 2024

Powered by FUDForum. Page generated in 0.02867 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top