openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Eol-style
Date Thu, 01 Feb 2007 20:01:44 GMT
This just in:

 > If I have to do it individually to files, is there some way to  
ensure that
 > any text file checked it gets this property set? Otherwise, we're  
bound to
 > forget to set it frequently.

Yes, it's a new feature in your ~/.subversion/config file, not yet
documented in the Book. Enable the "auto-props" feature and set
patterns accordingly. Any time you 'svn add' a text file, it will
automatically set properties for you. Here's the excerpt from a modern
~/.subversion/config file:

### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes



### Section for configuring automatic properties.
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain * as wildcard. All entries
### which match will be applied to the file.
[auto-props]
*.c = svn:eol-style=native
*.cpp = svn:eol-style=native
*.h = svn:eol-style=native
*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sh = svn:eol-style=native;svn:executable
*.txt = svn:eol-style=native
*.png = svn:mimetype=image/png
*.jpg = svn:mimetype=image/jpeg
Makefile = svn:eol-style=native


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message