Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.54 KB

SvnCheckout.md

File metadata and controls

27 lines (20 loc) · 1.54 KB

Creates an SVN workspace by checking out an SVN URL to a local directory. Also supports updating an existing workspace. If you just need the versioned files without SVN metadata, use the SvnExport task.

Configuration

Property Description Default value
svnUrl The remote repository URL (required)
workspaceDir The target directory for checkout (required). If it doesn't exist it will be created. If it exists (and the update flag is not set) it must be empty
revision The revision number to be checked out HEAD
depth The checkout depth - either empty, files, immediates, or infinity. See SvnDepth infinity
username The SVN username - leave empty if no authentication is required $project.svntools.username
password The SVN password - leave empty if no authentication is required $project.svntools.password
update If "workspaceDir" already contains checked-out data, update it instead of performing a fresh checkout false

Example

This Gradle script performs a checkout from a local SVN repository into build/workspace:

apply plugin: "at.bxm.svntools"

task checkout(type: at.bxm.gradleplugins.svntools.tasks.SvnCheckout) {
  svnUrl = "file:///home/user/svn/repo/myproject/trunk"
  workspaceDir = "$project.buildDir/workspace"
}