CrossClj

1.0.3 docs

SourceDocs



RECENT

    io.czlab/antclj

    Clojars

    May 25, 2017


    OWNER
    Kenneth Leung
    California, USA
    ccllnekk@gmail.com

    Readme

    Index of all namespaces


    « Project + dependencies

    Apache ant wrapped in clojure.

    The README below is fetched from the published project artifact. Some relative links may be broken.

    antclj

    Build Status

    Apache ant is a venerable java build tool providing numerous useful and robust tasks, ranging from file system operations to os operations. antclj provides a simple way to access those tasks in clojure by treating each as a function.

    Installation

    Add the following dependency to your project.clj file:

    [io.czlab/antclj "1.0.3"]
    

    Documentation

    Usage

    (ns demo.core
      (:require [czlab.antclj.antlib :as a]))
    
    (defn compileAndRun [srcDir destDir]
      (a/run*
        (a/javac
          {:srcdir srcDir
           :destdir destDir
           :target "8"
           :executable "/bin/javac"
           :debugLevel "lines,vars,source"
           :includeantruntime false
           :debug true
           :fork true}
          [[:compilerarg {:line "-Xlint:deprecation"}]
           [:include {:name "**/*.java"}]
           [:classpath
            [[:path {:location "/dev/classes"}]
             [:fileset {:dir "/home/joe/maven"
                        :includes {:name "**/*.jar"}}]]]])
        (a/sleep {:seconds "2"})
        (a/java
          {:classname "demo.App"
           :fork true
           :failonerror true}
          [[:arg {:value "argvalue1"}]
           [:classpath
            [[:path {:location destDir}]]]])
        (a/sleep {:seconds "2"})))
    
    

    Contacting me / contributions

    Please use the project’s GitHub issues page for all questions, ideas, etc. Pull requests welcome. See the project’s GitHub contributors page for a list of contributors.

    License

    Copyright © 2013-2017 Kenneth Leung

    Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.