Hi,
Am 16.10.2010 um 23:22 schrieb Adam Murdoch:
>> is it somehow possible to add a class contained in the plugin jar on the
>> compile classpath of the project?
>
> There's not an easy way to do this. I'm curious why you want to do this, as
> there may be another way to tackle the problem.
My use case stems from my work on the Clojure plugin. Clojure normally compiles
the source code as it is loaded by the system. So Clojure sources can either be
included as source or as ahead of time compiled .class files. In the first case
I still load all the source to catch any compile time problems and provide
reflection warnings.
In this setting I need a kind of driver which discovers and – depending on the
options set in the build.gradle file – compiles or loads the namespaces of the
project. At the moment I do this via a sucky textfile which I sent through
stdin to the process. I'd rather invoke a class written in Java (or use some
clojure code directly). But in order to this, I have to put something (a .class
or some .clj file) on the classpath.
Sincerely
Meikel
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email