java - How can you make leiningen evaluate requires before implements? -
this seems bug know if there way around problem.
i have class defined follows
(ns myns.myext.anotherext.client (:gen-class :implements [myns.myext.core.client] :prefix - :init init :state state ) (:require [myns.myext.core]) )
i don't know if obvious myns.myext.core.client definterface in myns.myext.core follows...
(ns myns.myext.core) (definterface client (^void foo []) )
this library has no main not compile. getting class not found exception because trying compile myns.myext.core.client before myns.myext.core . there hack can use force liningen compile these in correct order? project definition using :aot :all . there no problem code because if comment out implements in gen class, compile, uncomment implements , recompile works fine. end users can't expected altering code libraries compile.
version: leiningen 2.3.4 on java 1.7.0_55 java hotspot(tm) 64-bit server vm
just write require before gen-class. code should evaluated in order.
Comments
Post a Comment