Created
October 14, 2010 18:16
-
-
Save davidsantiago/626705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(deftask pallet | |
"Launch pallet tasks from the command line." | |
(bake (:require [clojure.string :as str]) | |
[options (:pallet *opts*)] | |
(do | |
(println (str "options are: " options)) | |
(try | |
(require 'pallet.main) | |
(catch java.io.FileNotFoundException e | |
(println "Error loading pallet: " (.getMessage e)) | |
(println "You need to have pallet as a project dependency") | |
(println "or installed in ~/.cake/project.clj"))) | |
(if-let [m (ns-resolve 'pallet.main (symbol "-main"))] | |
(m "pallet") | |
(do | |
(println "failed to resolve " 'pallet.main (symbol "-main"))))))) | |
David-Santiagos-Computer:servlet David$ cake pallet help | |
options are: ["help"] | |
Error: no credentials supplied | |
Pallet is a cloud administration tool. | |
Several tasks are available: | |
evaluating form: (clojure.core/binding [cake/*current-task* (quote pallet)] (let [options (quote ["help"])] (do (println (str "options are: " options)) (prn (str/join " " options)) (try (require (quote pallet.main)) (catch java.io.FileNotFoundException e (println "Error loading pallet: " (.getMessage e)) (println "You need to have pallet as a project dependency") (println "or installed in ~/.cake/project.clj"))) (if-let [m (ns-resolve (quote pallet.main) (symbol "-main"))] (m "pallet") (do (println "failed to resolve " (quote pallet.main) (symbol "-main"))))))) | |
java.lang.RuntimeException: java.lang.NullPointerException (NO_SOURCE_FILE:0) | |
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:560) | |
clojure.core$next.invoke (core.clj:61) | |
clojure.core$last.invoke (core.clj:228) | |
cake.server$eval_multi.invoke (server.clj:106) | |
bake.core$project_eval.invoke (core.clj:29) | |
cake.server$create$fn__2448$fn__2455.invoke (server.clj:158) | |
cake.server$create$fn__2448.invoke (server.clj:139) | |
cake.utils.server_socket$accept_fn$fn__1993$fn__1996.invoke (server_socket.clj:39) | |
cake.utils.server_socket$accept_fn$fn__1993.invoke (server_socket.clj:38) | |
clojure.lang.AFn.run (AFn.java:24) | |
java.lang.Thread.run (Thread.java:637) | |
Caused by: clojure.lang.Compiler$CompilerException: java.lang.NullPointerException (NO_SOURCE_FILE:0) | |
at clojure.lang.Compiler.eval (Compiler.java:5440) | |
clojure.lang.Compiler.eval (Compiler.java:5391) | |
clojure.core$eval.invoke (core.clj:2382) | |
cake.server$eval_verbose.invoke (server.clj:96) | |
cake.server$eval_multi$iter__2411__2415$fn__2416$fn__2417.invoke (server.clj:107) | |
cake.server$eval_multi$iter__2411__2415$fn__2416.invoke (server.clj:106) | |
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:560) | |
clojure.core$next.invoke (core.clj:61) | |
clojure.core$last.invoke (core.clj:228) | |
cake.server$eval_multi.invoke (server.clj:106) | |
bake.core$project_eval.invoke (core.clj:29) | |
cake.server$create$fn__2448$fn__2455.invoke (server.clj:158) | |
cake.server$create$fn__2448.invoke (server.clj:139) | |
cake.utils.server_socket$accept_fn$fn__1993$fn__1996.invoke (server_socket.clj:39) | |
cake.utils.server_socket$accept_fn$fn__1993.invoke (server_socket.clj:38) | |
clojure.lang.AFn.run (AFn.java:24) | |
java.lang.Thread.run (Thread.java:637) | |
Caused by: java.lang.NullPointerException: null | |
at pallet.task.help$tasks.invoke (help.clj:17) | |
pallet.task.help$help.invoke (help.clj:45) | |
clojure.lang.Var.invoke (Var.java:361) | |
clojure.lang.AFn.applyToHelper (AFn.java:159) | |
clojure.lang.Var.applyTo (Var.java:482) | |
clojure.core$apply.invoke (core.clj:540) | |
pallet.main_invoker$invoke.invoke (main_invoker.clj:49) | |
clojure.lang.Var.invoke (Var.java:381) | |
pallet.main$_main.doInvoke (main.clj:78) | |
clojure.lang.RestFn.invoke (RestFn.java:409) | |
clojure.lang.Var.invoke (Var.java:365) | |
bake.task.pallet$eval2546.invoke (NO_SOURCE_FILE:1) | |
clojure.lang.Compiler.eval (Compiler.java:5424) | |
clojure.lang.Compiler.eval (Compiler.java:5391) | |
clojure.core$eval.invoke (core.clj:2382) | |
cake.server$eval_verbose.invoke (server.clj:96) | |
cake.server$eval_multi$iter__2411__2415$fn__2416$fn__2417.invoke (server.clj:107) | |
cake.server$eval_multi$iter__2411__2415$fn__2416.invoke (server.clj:106) | |
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:560) | |
clojure.core$next.invoke (core.clj:61) | |
clojure.core$last.invoke (core.clj:228) | |
cake.server$eval_multi.invoke (server.clj:106) | |
bake.core$project_eval.invoke (core.clj:29) | |
cake.server$create$fn__2448$fn__2455.invoke (server.clj:158) | |
cake.server$create$fn__2448.invoke (server.clj:139) | |
cake.utils.server_socket$accept_fn$fn__1993$fn__1996.invoke (server_socket.clj:39) | |
cake.utils.server_socket$accept_fn$fn__1993.invoke (server_socket.clj:38) | |
clojure.lang.AFn.run (AFn.java:24) | |
java.lang.Thread.run (Thread.java:637) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment