Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better URL, fix c.j.io/copy usage

  • Loading branch information...
commit d63c49ea1e7adc6e0f2ec88769f0f32eecf9831c 1 parent a495b65
@amalloy amalloy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/classlojure_test.clj
View
6 test/classlojure_test.clj
@@ -1,6 +1,6 @@
(ns classlojure-test
(:use clojure.test classlojure.core
- [clojure.java.io :only [copy]]))
+ [clojure.java.io :only [copy input-stream]]))
(def filepath "test/clojure-1.3.0.jar")
(def clj-13 (str "file:" filepath))
@@ -10,9 +10,9 @@
(when-not (.exists file)
(.createNewFile file)
(let [out (java.io.FileOutputStream. file)
- url "http://search.maven.org/remotecontent?filepath=org/clojure/clojure/1.3.0/clojure-1.3.0.jar" ;; horrible url, can't find canonical one. someone fix?
+ in (input-stream "http://repo1.maven.org/maven2/org/clojure/clojure/1.3.0/clojure-1.3.0.jar")
]
- (copy url out))))
+ (copy in out))))
(f))
(use-fixtures :once with-clojure-jar)
Please sign in to comment.
Something went wrong with that request. Please try again.