Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Question to repository provider writers: text vs. binary files

I suggest that functionality is added to core to provide file typing.
The mechanism for determining the type of a file can vary.  It may be one
or more of: the file extension, magic numbers, guessing from the first few
bytes, matching path prefixes, etc.  The result would be a MIME-type
classification (from which you can distinguish text vs. binary trivially).
Of course, core may choose to defer to the platform where it has an
opinion.

(See also http://bugs.eclipse.org/bugs/show_bug.cgi?id=4988)

Regards,
Tim


                                                                                                                                         
                    Kevin_McGuire@xxxxxxx                                                                                                
                    Sent by:                       To:     platform-vcm-dev@xxxxxxxxxxx                                                  
                    platform-vcm-dev-admin@e       cc:                                                                                   
                    clipse.org                     Subject:     [platform-vcm-dev] Question to repository provider writers: text vs.     
                                                    binary files                                                                         
                                                                                                                                         
                    13/03/2002 21:47                                                                                                     
                    Please respond to                                                                                                    
                    platform-vcm-dev                                                                                                     
                                                                                                                                         
                                                                                                                                         



In CVS, we need to distinguish between text files and binary files.  There
is no facility in Eclipse to tell us this attribute.  Therefore for Team
CVS, a mechanism is required, which could take on a variety of forms:

1- registration list of file pattern to text/bin flag
2- local list of known types, or server list of known types, where
supported (e.g. CVS)
3- extension point that plugins can hook to tell you about files types
they've introduced
etc.

The question is, do any providers other than CVS have a requirement to know
about text vs. binary files?  If there isn't, then support for this will be
CVS specific, because we don't want to put something in
org.eclipse.team.core that is really just there for CVS.

If there are any requirements for other than CVS, please let us know.  The
presence of others requiring this information has implication for whether
there needs to be any kind of common support in team.core, and what that
support should look like.

Kevin McGuire

_______________________________________________
platform-vcm-dev mailing list
platform-vcm-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev






Back to the top