You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ka...@apache.org on 2014/11/20 20:24:56 UTC
tapestry-5 git commit: Fix scp task to use public key authentication,
password is not allowed anymore
Repository: tapestry-5
Updated Branches:
refs/heads/master f73e8b231 -> 1956c560e
Fix scp task to use public key authentication, password is not allowed anymore
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/1956c560
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/1956c560
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/1956c560
Branch: refs/heads/master
Commit: 1956c560e71f90d6a43558103e7f97388e772e7d
Parents: f73e8b2
Author: kaosko <ka...@apache.org>
Authored: Thu Nov 20 19:24:51 2014 +0000
Committer: kaosko <ka...@apache.org>
Committed: Thu Nov 20 19:24:51 2014 +0000
----------------------------------------------------------------------
ssh.gradle | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1956c560/ssh.gradle
----------------------------------------------------------------------
diff --git a/ssh.gradle b/ssh.gradle
index 74b620d..e367719 100644
--- a/ssh.gradle
+++ b/ssh.gradle
@@ -60,7 +60,7 @@ class SshTask extends DefaultTask {
def scpFile(source, destination) {
initAnt()
withInfoLogging {
- ant.scp(localFile: project.files(source).singleFile, remoteToFile: "${userName}@${host}:${destination}", password: password, verbose: verbose)
+ ant.scp(localFile: project.files(source).singleFile, remoteToFile: "${userName}@${host}:${destination}", keyfile : "${System.properties['user.home']}/.ssh/id_dsa", verbose: verbose)
}
}
@@ -68,7 +68,7 @@ class SshTask extends DefaultTask {
initAnt()
withInfoLogging {
ant.sshexec(host: host, username: userName, password: password, command: "mkdir -p ${destination}")
- ant.scp(remoteTodir: "${userName}@${host}:${destination}", password: password, verbose: verbose) {
+ ant.scp(remoteTodir: "${userName}@${host}:${destination}", keyfile : "${System.properties['user.home']}/.ssh/id_dsa", verbose: verbose) {
project.files(source).addToAntBuilder(ant, "fileSet", FileCollection.AntType.FileSet)
}
}