Grails SVN Import script – first draft
I have put together a Grails svn-import target to tackle the tricky issue of initially importing your grails projects into an SVN repository.
Grails stlll messages around with a few files in your project source tree and this can confuse SVN or CVS and cause issues.
This script uses the "in place checkout" technique with SVN to avoid having to add all the project files, then remove a whole bunch from the repository afterwards. This means you must have an existing directory in your repository for your project to go in, and it should be empty, so when it is checked out "over" your new grails project, nothing happens except your project is now considered a working copy.
The script excludes everything under web-app/WEB-INF/, web-app/plugins/ and plugins/core as these are generated/maintained by Grails – using the svn:ignore property mechanism.
Preconditions then:
- You need a repository with a directory for your project (you can svn mkdir a dir for it on the server using the server URL)
- You need SVN commandline tools installed
- You may or may not have success on Windows (not tested).
You just create your Grails project, then: grails svn-import <svnurl>
Currently it doesn’t handle params for username + password…
Get the script here.
No related posts.