Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Thank you, Michael, for the detailed and comprehensive answer. вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал: > > Dear clojure-users, > > Loading a file with such content: > > (ns ru.rules > (:use > protege.core > rete.core :exclude [rutime]) > ... > > I get this error mess

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Michael Klishin
2013/5/28 ru > Does (:require [protege.core :refer :all]) is equivalent to (:require > protege.core)? No. (:require [protege.core :refer :all]) does roughly the following * Loads and compiles proteger.core * Stores it in the namespace map as proteger.core, so fn1 in it can be referred to wit

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Michael, Does (:require [protege.core :refer :all]) is equivalent to (:require protege.core)? вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал: > > Dear clojure-users, > > Loading a file with such content: > > (ns ru.rules > (:use > protege.core > rete.core :exclude [rutime])

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Jim
On 28/05/13 11:10, atkaaz wrote: Jim, that is in project.clj right? aaa yes :exclusions is for project.clj! I've still not fully waken up... Jim -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Michael Klishin
2013/5/28 ru > Thank you Jim. But, I mean this piece of API doc: It should be (ns ru.rules (:use protege.core [rete.core :exclude [rutime]]) Unless you use Clojure 1.3, there is absolutely no reason to use :use. Use :require with :refer: (ns ru.rules (:require [protege.core :refer :

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread atkaaz
Jim, that is in project.clj right? OP can use :refer and :exclude but can't pass two namespaces to :refer, just one some examples from clojure code: (ns foo.bar (:refer-clojure :exclude [ancestors printf]) (:require (clojure.contrib sql combinatorics)) (:use (my.lib this that)) (

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Thank you Jim. But, I mean this piece of API doc: usefunction Usage: (use & args) Like 'require, but also refers to each lib's namespace using clojure.core/refer. Use :use in the ns macro in preference to calling this directly. 'use accepts additional options in libspecs: :exclude, :only, :rena

Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread Jim
I think it is :exclusions not :exclude... example: [uk.ac.gate/gate-core "7.1" :exclusions [[org.springframework/spring-beans]]] Jim On 28/05/13 10:42, ru wrote: Dear clojure-users, Loading a file with such content: (ns ru.rules (:use protege.core rete.core :exclude [rutime]) ..