         jar       (format "jars/cake-%s.jar" version)]
     (with-root (file "releases")
       (git "pull"))
-    (ant Copy {:file (uberjarfile) :tofile (file "releases" jar)})
+    (ant Copy {:file (uberjarfile) :tofile (file "releases" jar)}
+         execute)
     (spit (file "releases/current") version)
     (when-not snapshot?
-      (ant Copy {:file (file "bin" "cake") :tofile (file "releases" "cake")})
+      (ant Copy {:file (file "bin" "cake") :tofile (file "releases" "cake")}
+           execute)
       (spit (file "releases/stable") version))
     (with-root (file "releases")
       (git "add" jar "cake" "current" "stable")

      (let [gem (str "cake-" version ".gem")]
        (log "Releasing gem:" gem)
        (ant ExecTask {:executable "gem" :dir (file "gem")}
             (args ["push" gem]))))))

        bakejar (bakejar)]
    (ant Jar {:dest-file bakejar}
         (add-fileset {:dir "dev"})
         add-dev-jars
         execute)
    (ant Jar {:dest-file jarfile :update true}
         (add-fileset {:file bakejar})
         add-dev-jars
         execute)))

(deftask gem
  "Build standalone gem package."
