Skip to content

Instantly share code, notes, and snippets.

@kaakaa
Created June 24, 2014 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaakaa/7028cacb68f5055c0eab to your computer and use it in GitHub Desktop.
Save kaakaa/7028cacb68f5055c0eab to your computer and use it in GitHub Desktop.
Gradle svn-ant Sample
configurations {
svnant
}
dependencies {
// lib/svnant配下にsvnantを展開
// => http://subclipse.tigris.org/svnant.html
svnant fileTree(dir: 'lib/svnant', include: '**/*.jar')
}
task dwnSnark << {
ant.taskdef(resource: 'org/tigris/subversion/svnant/svnantlib.xml', classpath: configurations.svnant.asPath)
mkdir('destpath')
ant.svn(javahl: 'false', svnkit: 'true', username: 'user', password: 'pass', failonerror: 'false') {
ant.checkout(url: 'https://svn.java.net/svn/groovychart~svn', destpath: 'destpath')
ant.update(dir: 'destpath')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment