Reputation: 7536
I have recently started looking at cake as an alternative to leiningen as it uses a single jvm instance and so is much faster. However, its run
task is not quite the same as leiningen's and I can't find any task in cake that just runs the -main
method in the namespace I specify in the project.clj
file. Does cake have any such task?
On the other hand, I tried writing a custom cake task which launched the app for me, but I was getting import errors, which make me think that may be the complete CLASSPATH
is not built when the tasks are executed.
So, is there a task with cake that is equivalent to lein run
?
Upvotes: 0
Views: 540
Reputation: 32645
This doesn't currently exist. I'll add it.
The current run task just runs a file. Try passing it a Clojure file to run.
Upvotes: 2
Reputation: 91567
cake is advancing quickly and so far as I understand it run is supposed to be the same. Make sure you are running the latest cake code (because it changes often) and perhaps you will get it fixed if you bring it up on the mailing list.
Upvotes: 0