Skip to content

Instantly share code, notes, and snippets.

@Munksgaard
Created October 31, 2010 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Munksgaard/657225 to your computer and use it in GitHub Desktop.
Save Munksgaard/657225 to your computer and use it in GitHub Desktop.
philip@philip-VirtualBox:~/tmp$ cake new test
[new] Creating a new project based on ~/.cake/templates/default
[new] Copying 4 files to /home/philip/tmp/test
[new] Copied 4 empty directories to 1 empty directory under /home/philip/tmp/test
[new] Renaming directories with +project+ in their name
[new] Replacing +project+ with 'test' in all files.
philip@philip-VirtualBox:~/tmp$ cd test/
philip@philip-VirtualBox:~/tmp/test$ cake -v
[cake] running from git checkout
[start] starting cake jvm
[pom] creating pom.xml
[deps] Fetching dependencies...
[deps] Copying 1 file to /home/philip/tmp/test/build/lib
[deps] Deleting directory /home/philip/tmp/test/lib
[deps] Attempting to rename dir: /home/philip/tmp/test/build/lib to /home/philip/tmp/test/lib
[clean] Deleting /home/philip/tmp/test/.cake/run/pom
[deps] Restarting project jvm
[start] starting bake jvm
-------------------------------------------
cake autotest ;; Automatically run tests whenever your project code changes.
cake bin ;; Create a standalone console executable for your project.
cake clean ;; Remove cake build artifacts.
cake compile ;; Compile all clojure and java source files. Use 'cake compile force' to recompile.
cake deploy ;; Deploy project to a group of servers.
cake deps ;; Fetch dependencies and dev-dependencies. Use 'cake deps force' to refetch.
cake eval ;; Eval the given forms in the project JVM.
cake file ;; Invoke a file task.
cake filter ;; Thread each line in stdin through the given forms, printing the results.
cake help ;; Print tasks with documentation. Use 'cake help TASK' for more details.
cake install ;; Install jar to local repository.
cake jar ;; Build a jar file containing project source and class files.
cake killall ;; Kill all running cake jvm processes for all projects.
cake pom ;; Generate pom.xml from project.clj.
cake release ;; Release project jar to clojars.
cake repl ;; Start an interactive shell with history and tab completion.
cake run ;; Execute a script in the project jvm.
cake swank ;; Report status of swank server and start it if not running.
cake tag ;; Create a git tag for the current version.
cake test ;; Run project tests.
cake uberjar ;; Create a standalone jar containing all project dependencies.
cake uberwar ;; Create a web archive containing all project dependencies.
cake upgrade ;; Upgrade cake to the most current version.
cake version ;; Display project version. Use 'bump [--major --minor --patch --snapshot]' to increment.
cake war ;; Create a web archive containing project source and class files.
-- system tasks ---------------------------
cake kill ;; Kill running cake jvm processes. Use -9 to force.
cake ps ;; List running cake jvm processes for all projects.
cake reload ;; Reload any .clj files that have changed or restart.
cake restart ;; Restart cake jvm processes.
cake start ;; Start cake jvm processes.
cake stop ;; Stop cake jvm processes.
philip@philip-VirtualBox:~/tmp/test$ vim project.clj
philip@philip-VirtualBox:~/tmp/test$ cat project.clj
(defproject test "0.0.1-SNAPSHOT"
:description "TODO: add summary of your project"
:dependencies [[clojure "1.3.0-alpha2-SNAPSHOT"]]
:dev-dependencies [[swank-clojure "1.3.0-SNAPSHOT"]])
philip@philip-VirtualBox:~/tmp/test$ cake deps
[pom] creating pom.xml
[deps] Fetching dependencies...
[deps] Copying 1 file to /home/philip/tmp/test/build/lib
[deps] Copying 1 file to /home/philip/tmp/test/build/lib/dev
[deps] Deleting directory /home/philip/tmp/test/lib
[deps] Attempting to rename dir: /home/philip/tmp/test/build/lib to /home/philip/tmp/test/lib
[clean] Deleting /home/philip/tmp/test/.cake/run/clean
[clean] Deleting /home/philip/tmp/test/.cake/run/default
[clean] Deleting /home/philip/tmp/test/.cake/run/deps
[clean] Deleting /home/philip/tmp/test/.cake/run/help
[clean] Deleting /home/philip/tmp/test/.cake/run/pom
[deps] Restarting project jvm
philip@philip-VirtualBox:~/tmp/test$ cake swank
started swank-clojure server on port 4005
philip@philip-VirtualBox:~/tmp/test$ cake swank
evaluating form: (clojure.core/binding [cake/*current-task* (quote swank)] (let [] (if (not (swank/installed?)) (do (println "swank-clojure is not in your library path.") (println "add swank-clojure as a dev-dependency in ~/.cake/project.clj to enable")) (if (swank/running?) (let [num (swank/num-connections) s (if (= 1 num) "" "s")] (println (format "swank currently running on port %d with %d active connection%s" (clojure.core/deref swank/current-port) num s))) (if (swank/start (or (first (:swank *opts*)) "localhost:4005")) (println "started swank-clojure server on port" (clojure.core/deref swank/current-port)) (println "unable to start swank-clojure server, port already in use"))))))
java.lang.RuntimeException: java.lang.Exception: No namespace: swank.server found
at clojure.lang.LazySeq.sval (LazySeq.java:47)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.LazySeq.next (LazySeq.java:85)
clojure.lang.RT.next (RT.java:557)
clojure.core$next.invoke (core.clj:64)
clojure.core$last.invoke (core.clj:248)
cake.server$eval_multi.invoke (server.clj:82)
bake.core$project_eval.invoke (core.clj:34)
cake.server$create$fn__631$fn__638.invoke (server.clj:134)
cake.server$create$fn__631.invoke (server.clj:115)
cake.utils.server_socket$accept_fn$fn__309$fn__312.invoke (server_socket.clj:39)
cake.utils.server_socket$accept_fn$fn__309.invoke (server_socket.clj:38)
clojure.lang.AFn.run (AFn.java:24)
java.lang.Thread.run (Thread.java:662)
Caused by: java.lang.Exception: No namespace: swank.server found
at clojure.core$the_ns.invoke (core.clj:3577)
clojure.core$ns_resolve.invoke (core.clj:3767)
clojure.core$ns_resolve.invoke (core.clj:3764)
bake.swank$num_connections.invoke (swank.clj:15)
bake.task.swank$eval2392.invoke (NO_SOURCE_FILE:1)
clojure.lang.Compiler.eval (Compiler.java:6168)
clojure.lang.Compiler.eval (Compiler.java:6135)
clojure.core$eval.invoke (core.clj:2689)
cake.server$eval_verbose.invoke (server.clj:72)
cake.server$eval_multi$iter__594__598$fn__599$fn__600.invoke (server.clj:83)
cake.server$eval_multi$iter__594__598$fn__599.invoke (server.clj:82)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.LazySeq.next (LazySeq.java:85)
clojure.lang.RT.next (RT.java:557)
clojure.core$next.invoke (core.clj:64)
clojure.core$last.invoke (core.clj:248)
cake.server$eval_multi.invoke (server.clj:82)
bake.core$project_eval.invoke (core.clj:34)
cake.server$create$fn__631$fn__638.invoke (server.clj:134)
cake.server$create$fn__631.invoke (server.clj:115)
cake.utils.server_socket$accept_fn$fn__309$fn__312.invoke (server_socket.clj:39)
cake.utils.server_socket$accept_fn$fn__309.invoke (server_socket.clj:38)
clojure.lang.AFn.run (AFn.java:24)
java.lang.Thread.run (Thread.java:662)
philip@philip-VirtualBox:~/tmp/test$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment