Results 1 to 4 of 4

Thread: SVN and STS/Eclipse config files in a Grails project directory

  1. #1
    Join Date
    Jan 2012
    Posts
    7

    Question SVN and STS/Eclipse config files in a Grails project directory

    In the Grails Cookbook Tutorial "Checking Projects into SVN" (which, by the way, could use some updating), the advice is to check the .project and .classpath STS/Eclipse config files into your project's Subversion repository, along with the rest of your Grails app's files that you want to manage with SVN.

    What about the .settings directory that gets created (at least by STS Version: 2.9.0.M1)? Should this directory and it's configuration files be checked in too, or should it be added to the svn ignore list along with the target, target-eclipse, and web-app/WEB-INF directories?

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    748

    Default

    Yes. The .settings folder should be checked in as well. It contains your project-specific Eclipse settings (eg- compiler level, formatter preferences, etc)
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Jan 2012
    Posts
    7

    Default

    That's a big help, thanks. Is there anything else that should be on the svn ignore list, other than the three folders mentioned above?

    Michael

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    748

    Default

    In general, you can ignore those files and directories that are automatically (re-)generated, such as class files and target folders.

    It looks like you should be ignoring web-app/WEB-INF/classes (not web-app/WEB-INF) and I don't even know if that directory is still being used by grails.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •