   "copy assets to build-dir"
   [v verbose bool "Print trace messages"
    t type TYPE kw "type to move"
-   o odir ODIR str "output dir"]
+   o odir ODIR str "output dir (default: './')"]
 (let [regex (re-pattern (condp = type
                           :clj  #"(.*clj$)"
                           :cljs  #"(.*cljs$)"


(core/deftask servlets
  "aot compile master servlet file"
  [c clj bool "Save intermediate generated .clj file"
   d odir DIR str "output dir for generated class files"
   n namespace NS str "namespace to aot"
   s servleter SERVELETER str "namespace for master servlet generator"

       (let [tmp-dir (core/tmp-dir!)
             odir (if odir odir classes-dir)
             servlet-master (str (str/replace servlet-ns #"\.|-" {"." "/" "-" "_"}) ".clj")
             ;; _ (println "servlet-master: " servlet-master)
             out-file (doto (io/file tmp-dir
                                     ;;(str odir "/"
                                     servlet-master ;;)
                        ) io/make-parents)
             ]
         ;; (println "servlet-ns: " servlet-ns)
         (spit out-file content)
         (-> fileset (core/add-source tmp-dir) core/commit!)))
     ;; Step 2: compile it
     (builtin/aot :namespace #{servlet-ns})
;;                  :dir (if odir odir "./" )))))
      (builtin/sift :include (if save #{#".*\.class"  #"\.clj$"} #{#"\.class$"})))))
     ;; (builtin/target :dir #{classes-dir}
     ;;                 :no-clean false)
     ;;   #_(builtin/show :fileset true)
