(java-sources {dirs :java-source-paths})
lists source classes in a project
(-> (java-sources (project/project)) (keys) (sort)) => '[test.Cat test.Dog test.DogBuilder test.Person test.PersonBuilder test.Pet]
lists source classes in a project (-> (java-sources (project/project)) (keys) (sort)) => '[test.Cat test.Dog test.DogBuilder test.Person test.PersonBuilder test.Pet]
(javac & classes)
compiles classes using the built-in compiler
(javac 'test.Cat 'test.Dog)
;;=> outputs .class
files in target directory
compiles classes using the built-in compiler (javac 'test.Cat 'test.Dog) ;;=> outputs `.class` files in target directory
(javac-output collector)
Shows output of compilation
Shows output of compilation
(path->class path)
Creates a class symbol from a file
(path->class "test/Dog.java") => 'test.Dog
(path->class "test/Cat.class") => 'test.Cat
Creates a class symbol from a file (path->class "test/Dog.java") => 'test.Dog (path->class "test/Cat.class") => 'test.Cat
(reimport & classes)
compiles and reimports java source code dynamically
(reimport 'test.Cat 'test.Dog) ;;=> (test.Cat test.Dog)
compiles and reimports java source code dynamically (reimport 'test.Cat 'test.Dog) ;;=> (test.Cat test.Dog)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close