Excluding files from project [message #150218] |
Tue, 23 March 2004 12:14 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02867 seconds