Created
June 24, 2014 10:33
-
-
Save kaakaa/7028cacb68f5055c0eab to your computer and use it in GitHub Desktop.
Gradle svn-ant Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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