jCifs Gradle Plugin
jCifs Gradle Plugin provides cifs access function.
- JcifsCopy : copy a file on the cifs server
How to use
- Gradle 5.0 or later
- JDK11 or later
buildscript { repositories { jcenter() maven { url "http://dl.bintray.com/sakamotodesu/maven" } } dependencies { classpath "github.com.sakamotodesu:gradle-jcifs-tasks:0.2.1" } } task copyCifs(type: github.com.sakamotodesu.JcifsCopy) { from "C:\\work" into "smb://domain;username:password@server/share/directory/path" }
task copyCifs(type: github.com.sakamotodesu.JcifsCopy) { from "C:\\work" into "smb://domain;username:password@server/share/directory/path" include '.*\\.zip' exclude '.*\\.txt' lmCompatibility '2' recursively true }
"include/exclude" is only Regex. They are matched to the file name.
TODO
- include/exclude change to glob
- other properties
- other tasks(delete/rename/etc)
- FileTree
License
Apache License 2.0
Modification
All of Groovy code has been modified from gradle-blank-plugin.