Skip to content

Instantly share code, notes, and snippets.

@lyhcode
Created March 23, 2012 06:58
Show Gist options
  • Select an option

  • Save lyhcode/2167842 to your computer and use it in GitHub Desktop.

Select an option

Save lyhcode/2167842 to your computer and use it in GitHub Desktop.
groovy + svnant + svnkit
@GrabConfig(systemClassLoader=true)
@GrabResolver(name='monkproject', root='http://www.monkproject.org/maven2/')
@Grab(group='org.tmatesoft.svnkit', module='svnkit', version='1.3.5')
@Grab(group='org.tmatesoft.svnkit', module='svnkit-javahl', version='1.3.5')
@Grab(group='org.monkproject', module='svnant', version='1.1.0-rc2')
@Grab(group='org.monkproject', module='svnClientAdapter', version='1.1.0-rc2')
def ant = new AntBuilder()
ant.typedef(resource: 'org/tigris/subversion/svnant/svnantlib.xml')
ant.svn(username: 'guest', password: 'password') {
checkout(url: 'http://svn.apache.org/repos/asf/spamassassin/trunk', destPath: './test-svn')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment