antclj

Apache ant wrapped in clojure.

License

License

Categories

Categories

Ant Build Tools
GroupId

GroupId

io.czlab
ArtifactId

ArtifactId

antclj
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

antclj
Apache ant wrapped in clojure.
Project URL

Project URL

https://github.com/llnek/antclj
Source Code Management

Source Code Management

https://github.com/llnek/antclj

Download antclj

How to add to project

<!-- https://jarcasting.com/artifacts/io.czlab/antclj/ -->
<dependency>
    <groupId>io.czlab</groupId>
    <artifactId>antclj</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/io.czlab/antclj/
implementation 'io.czlab:antclj:1.0.3'
// https://jarcasting.com/artifacts/io.czlab/antclj/
implementation ("io.czlab:antclj:1.0.3")
'io.czlab:antclj:jar:1.0.3'
<dependency org="io.czlab" name="antclj" rev="1.0.3">
  <artifact name="antclj" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.czlab', module='antclj', version='1.0.3')
)
libraryDependencies += "io.czlab" % "antclj" % "1.0.3"
[io.czlab/antclj "1.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
cider » cider-nrepl jar 0.14.0
org.apache.ant : ant jar 1.10.1

provided (1)

Group / Artifact Type Version
org.clojure : clojure jar 1.8.0

test (4)

Group / Artifact Type Version
org.apache.ant : ant-junit4 jar 1.10.1
org.apache.ant : ant-junit jar 1.10.1
junit : junit jar 4.12
net.mikera » cljunit jar 0.6.0

Project Modules

There are no modules declared in this project.

cljant

Build Status

Apache ant is a venerable java build tool providing numerous useful and robust tasks, ranging from file system operations to os operations. cljant 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/cljant "2.0.1"]

Documentation

Usage

(ns demo.core
  (:require [czlab.cljant.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-2020 Kenneth Leung

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

Versions

Version
1.0.3