Created
May 2, 2011 00:29
-
-
Save bluepapa32/951033 to your computer and use it in GitHub Desktop.
Gradle で SSH してみる
This file contains hidden or 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 { sshexec } | |
| repositories { mavenCentral() } | |
| dependencies { sshexec 'org.apache.ant:ant-jsch:1.8.1' } | |
| task ssh << { | |
| ant { | |
| taskdef(name: 'sshexec', | |
| classname: 'org.apache.tools.ant.taskdefs.optional.ssh.SSHExec', | |
| classpath: configurations.sshexec.asPath) | |
| sshexec(host: host, | |
| port: port, | |
| username: username, | |
| keyfile: keyfile, | |
| command: command) | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
詳細は『Gradle で SSH してみる』