Stop Eclipse/Subversive from setting svn:mime-type to text/plain on initial commit

How do I stop Subversive from setting svn:mime-type to text/plain on initial commit?

My Java code is being checked into my repository with the svn:mime-type property set as text/plain, and as a result my web-based SVN viewer (trac) isn’t syntax highlighting.

  • How to use EGit with SSH on Windows?
  • Error “Detecting Library Folders” in Zend Studio
  • How to prevent Eclipse from automatically committing changes after every save
  • Git-svn and Eclipse?
  • Why is git still trying to add the classpath files?
  • Using Eclipse to interface with GitHub for non-supported language
  • I should add I’m running Eclipse 3.5 and the most recent version of Subversive with the SVNKit 1.3.0 (for SVN 1.6) adapter.


    For those finding this question, this issue no longer exists as it was resolved through an option in the preferences section of Subversive.

  • Incompatible JavaHl library loaded
  • Compatibility of EGit - or are there alternatives?
  • How make Eclipse/EGit recognize existing repository information after update?
  • Internal error memory limit exceeded
  • exporting gradle project as normal android studio
  • Eclipse Oxygen & org.eclipse.jface giving NullPointerException dialog
  • 5 Solutions collect form web for “Stop Eclipse/Subversive from setting svn:mime-type to text/plain on initial commit”

    You’ll need to actually setup the mime types yourself in “Window > Preferences> Team > SVN > Properties Configuration > Automatic Properties”

    For file type *.java for example, set it to:
    svn:mime-type=text/x-java

    If your project already got messed by subversive, cd to project root and run the following commands

    find . -name "*.java" -exec svn propset svn:mime-type 'text/x-java' {} \;
    find . -name "*.xml" -exec svn propset svn:mime-type 'text/xml' {} \;
    

    We just ran into this as well. FYI all, I’ve posted https://bugs.eclipse.org/bugs/show_bug.cgi?id=322772

    By default, Subversion only sets svn:mime-type to application/octet-stream when the file is binary (and you didn’t explictly assign any other value). See Automatic Property Setting for reference. So this feature is courtesy of Subversive.

    I’m afraid I’m not a Subversive user, but I found in Google a reference to a menu in “Window > Preferences> Team > SVN > Properties Configuration > Automatic Properties” where it seems you can remove unwanted associations.

    The reported bug by vorburger (https://bugs.eclipse.org/bugs/show_bug.cgi?id=322772) has been fixed. There is an option called ‘Set text MIME type for all non-binary files’ under “Window > Preferences> Team > SVN > Properties Configuration > Automatic Properties” which needs to be unchecked to prevent Subversive to add the S/MIME-Type to newly added resources.

    Git Baby is a git and github fan, let's start git clone.