How to include clj-time and clojure.contrib under clojure 1.2? -


I tried to migrate a project from Closer 1.1 to 1.2 because of the new protocol introduced in 1.2 but when I If I tries to use clojure-contrib.duck-streams, I get a warning about 'Spit' which is already present in Closer.core. The same problem with clj-time.core and 'expansion' which exists in clojure.core.

Can anyone explain what would be the most beautiful way around these stupid errors?

BTW: From my project.clj :

 : Dependency [[org.clojure / clojure "1.2.0"] [org. Clozure / clojure-contrib "1.2 .0"] [Closer-CSV / Closer-CSV "1.1.0"] [org.shxiao / clojureql "1.0.0"] [CLJ-TIME "0.1.0-SNAPSHOT"]]  

You can get rid of warnings (or errors?) By entering ( : Context - Closer: Exclude [extension]) in your (ns ..) . I had submitted a patch to fix some time ago Looks like they do not put a new snapshot for it.

For duck currents, this is because spitting was used in duck currents, but now it is in closure. Corner. Closer.Java.Oo See most of the functionality of the Duck-stream was ended in Closer 1.2. If you do not want to use clojure.java.io, then the spit warning is quite harmless, but when you use clojure.contrib.duck-streams, you can get rid of it (which is also called Closer Kontrib.io now).

  (ns foo (: Use [clojure.contrib.duck-streams: extracting] [spit]]))  

Here are some APIs Document for Clojure.java.io:. At the time of this writing, no document is shown for it. Why not have a clue.


Comments