Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (37 sloc) 1.03 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
(use 'lancet)

(def src "src")
(def jsrc (str src "/jvm"))
(def cljsrc (str src "/clj"))
(def build "classes")
(def clojure_jar "clojure.jar")
(def bootclj (str cljsrc "/clojure/boot.clj"))

(deftarget test-target
  "Simple echo to test plumbing"
  (echo {:message "test target"}))
  
(deftarget init
  (tstamp {})
  (mkdir {:dir build}))

(deftarget compile
  "Compile Java sources."
  (init)
  (javac {:srcdir jsrc :destdir build
:includejavaruntime "yes"
:debug "true"
:target "1.5"}))

(deftarget clean
  "Remove autogenerated files and directories"
  (delete {:dir build}))

(deftarget make-jar
  "Create jar file."
  (compile)
  (jar {:jarfile clojure_jar
:basedir build}))

;; TODO: tie together ant tasks and subsidiary data types
;; such as fileset and manifest

;; (target {:name "jar"
;; :depends "compile"
;; :description "Create jar file."}
;; (jar {:jarfile clojure_jar
;; :basedir build}
;; (fileset {:dir cljsrc :includes "**/*.clj"})))
;; )

Something went wrong with that request. Please try again.