                              ((juxt :artifact-id :version)))
             jarname (or file (and aid v (str aid "-" v ".jar")) "project.jar")
             jarfile (io/file tgt jarname)]
-        (let [entries (core/output-files fileset)
+        (let [entries (core/output-files fs)
               index   (->> entries (map (juxt core/tmp-path #(.getPath (core/tmp-file %)))))]
           (util/info "Writing %s...\n" (.getName jarfile))
           (jar/spit-jar! (.getPath jarfile) index manifest main)
-          (-> fileset (core/add-resource tgt) core/commit!))))))
+          (-> fs (core/add-resource tgt) core/commit!))))))
 
 (core/deftask war
   "Create war file for web deployment."

   r ref REF       str    "The git reference for the desired file tree."]

  (let [tgt (core/tmp-dir!)]
    (core/with-pre-wrap fileset
      (core/empty-dir! tgt)
      (util/info "Adding repo files...\n")
      (doseq [p (core/git-files :ref ref :untracked untracked)]
        (file/copy-with-lastmod (io/file p) (io/file tgt p)))
      (-> fileset (core/add-resource tgt) core/commit!))))

(core/deftask uber
  "Add jar entries from dependencies to fileset.

  [f file PATH str "The target zip file name."]

  (let [tgt (core/tmp-dir!)]
    (core/with-pre-wrap [fs]
      (core/empty-dir! tgt)
      (let [zipname (or file "project.zip")
            zipfile (io/file tgt zipname)]
        (when-not (.exists zipfile)
          (let [entries (core/output-files fs)
                index   (->> entries (map (juxt core/tmp-path #(.getPath (core/tmp-file %)))))]
            (util/info "Writing %s...\n" (.getName zipfile))
            (jar/spit-zip! (.getPath zipfile) index)
            (-> fs (core/add-resource tgt) core/commit!)))))))

(core/deftask install
  "Install project jar to local Maven repository.
