Skip to content

Commit 30bd151

Browse files
committed
Merge branch 'feature/scp' into develop
2 parents 9067c0b + 71e8735 commit 30bd151

File tree

5 files changed

+477
-110
lines changed

5 files changed

+477
-110
lines changed

pom.xml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>clj-ssh</groupId>
55
<artifactId>clj-ssh</artifactId>
6-
<version>0.2.4-SNAPSHOT</version>
6+
<version>0.3.0-SNAPSHOT</version>
77
<name>clj-ssh</name>
88
<description>ssh from clojure</description>
99
<scm>
@@ -33,7 +33,7 @@
3333
<testSourceDirectory>test</testSourceDirectory>
3434
</testSourceDirectories>
3535
<clojureOptions>-Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m</clojureOptions>
36-
<warnOnReflection>true</warnOnReflection>
36+
<warnOnReflection>false</warnOnReflection>
3737
<compileDeclaredNamespaceOnly>true</compileDeclaredNamespaceOnly>
3838
<temporaryOutputDirectory>true</temporaryOutputDirectory>
3939
</configuration>
@@ -90,41 +90,34 @@
9090
<dependency>
9191
<groupId>org.clojure</groupId>
9292
<artifactId>clojure</artifactId>
93-
<version>1.1.0</version>
93+
<version>1.2.0</version>
9494
</dependency>
9595
<dependency>
9696
<groupId>org.clojure</groupId>
9797
<artifactId>clojure-contrib</artifactId>
98-
<version>1.1.0</version>
98+
<version>1.2.0</version>
9999
</dependency>
100100
<dependency>
101101
<groupId>com.jcraft</groupId>
102102
<artifactId>jsch</artifactId>
103103
<version>0.1.44-1</version>
104104
</dependency>
105+
<dependency>
106+
<groupId>log4j</groupId>
107+
<artifactId>log4j</artifactId>
108+
<version>1.2.14</version>
109+
<optional>true</optional>
110+
<scope>test</scope>
111+
</dependency>
105112
<dependency>
106113
<groupId>swank-clojure</groupId>
107114
<artifactId>swank-clojure</artifactId>
108115
<version>1.2.1</version>
109116
<optional>true</optional>
117+
<scope>test</scope>
110118
</dependency>
111119
</dependencies>
112120
<profiles>
113-
<profile>
114-
<id>clojure-1.2</id>
115-
<dependencies>
116-
<dependency>
117-
<groupId>org.clojure</groupId>
118-
<artifactId>clojure</artifactId>
119-
<version>1.2.0</version>
120-
</dependency>
121-
<dependency>
122-
<groupId>org.clojure</groupId>
123-
<artifactId>clojure-contrib</artifactId>
124-
<version>1.2.0</version>
125-
</dependency>
126-
</dependencies>
127-
</profile>
128121
<profile>
129122
<id>testuser</id>
130123
<build>

src/clj_ssh/keychain.clj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
(ns clj-ssh.keychain
2-
"Primitive keychain support for clj-ssh. Only implemented on OSX at the moment."
2+
"Primitive keychain support for clj-ssh. Only implemented on OSX at the
3+
moment."
34
(:require
4-
[clojure.contrib.logging :as logging]))
5-
6-
;; working towards clojure 1.1/1.2 compat
7-
(try
8-
(require '[clojure.contrib.shell :as shell])
9-
(catch Exception e
10-
(require '[clojure.contrib.shell-out :as shell])))
5+
[clojure.contrib.logging :as logging]
6+
[clojure.contrib.shell :as shell]))
117

128
(defn ask-passphrase [path]
139
(when-let [console (. System console)]
1410
(print "Passphrase for" path ": ")
1511
(.readPassword console)))
1612

17-
(defmulti keychain-passphrase "Obtain password for path" (fn [system path] system))
13+
(defmulti keychain-passphrase "Obtain password for path"
14+
(fn [system path] system))
1815

1916
(defmethod keychain-passphrase :default
2017
[system path]
@@ -35,4 +32,3 @@
3532
"Obtain a passphrase for the given key path"
3633
[path]
3734
(keychain-passphrase (System/getProperty "os.name") path))
38-

0 commit comments

Comments
 (0)