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

Re: browing java source via apache (maybe OT)

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-04-02 09:03:58 CEST

On Tue, Apr 01, 2003 at 05:59:55PM +0100, Russ Freeman wrote:
> Thanks for the tip on the property but I'm still not sure how I set this
> property for all Java files in my project. In fact, surely I just want a
> global setting for all files of a certain type?

There is currently no way of doing that. You have to find each Java
file in your repository and set the mime type manually.

Something like this will do it for you on Unix:
$ find /path/to/wc -type f -name '*.java' -print0 | \
        xargs -0 svn ps svn:mime-type text/plain
$ svn ci /path/to/wc

Of course, you'll have to do that for every Java file added to your
repository if Subversion is treating them as binary. (I'm guessing
you're using a Unicode text editor or something for the .java files,
otherwise Subversion would automatically treat them as text, and set the
svn:mime-type to text/plain.)

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 2 09:05:12 2003

This is an archived mail posted to the Subversion Dev mailing list.

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