Interesting, I had no idea clojure.lang.Compiler was automatically imported.

You probably want
ns-unmap<http://clojuredocs.org/clojure_core/clojure.core/ns-unmap>
.

(ns rdoc.core ...)

(ns-unmap *ns* 'Compiler)
(import 'com.google.javascript.jscomp.Compiler)

Thanks,
Ambrose


On Sun, Dec 8, 2013 at 9:15 AM, Jay Young <jayyoung9...@gmail.com> wrote:

> My interest in Clojure has been building lately, and I have a great
> project to get my feet wet.  One of the dependencies for my project is the
> Closure javascript compiler (having Clojure and Closure in the project is
> going to make for some interesting typo-hunting).  When I try to import
> com.google.javascript.jscomp.Compiler with the namespace declaration (ns
> rdoc.core (:import (com.google.javascript.jscomp Compiler))), I get an
> error that says "Compiler already refers to: class clojure.lang.Compiler in
> namespace: rdoc.core", so I'm assuming this means that clojure.lang is
> automatically imported.  I haven't found a way to import
> com.google.javascript.jscomp.Compiler with an alias, and I can't figure out
> if it's possible to exclude clojure.lang.Compiler.  I've tried different
> combinations of import, refer, and use but I'm afraid I'm still a bit too
> new to the environment to know all the options.
>
> Any ideas on how to be able to import the Closure compiler, either as an
> alias or just as Compiler would be greatly appreciated.  My project will
> use this class extensively, and the Clojure compiler not at all, so it'd be
> nice to be able to use the one I need without fully qualifying the name.
>
> Cheers,
> --Jay
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to