Ant Build System is an actively used application created in 2000. Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications. Ant can also be used effectively to build non Java applications, for instance C or C++ applications. More generally, Ant can be used to pilot any type of process which can be described in terms of targets and tasks.

20Years Old ?Users ?Jobs
  • the Ant Build System website
  • Ant Build System first appeared in 2000
  • Have a question about Ant Build System not answered here? Email me and let me know how I can help.

Example code from Linguist:

<?xml version="1.0" encoding="iso-8859-1"?>
<project name="WebBuild">

    <!-- generate timestamps -->
    <tstamp />

    <!-- Debugging Macro -->
    <import file="echopath.xml" />

    <!-- JS build files macro -->
    <import file="rhinoscript.xml" />

    <!-- Component Build Files -->
    <import file="setup.xml" />
    <import file="clean.xml" />
    <import file="copy.xml" />
    <import file="file.transform.xml" />
    <import file="" />
    <import file="rename.xml" />
    <import file="js.xml" />
    <import file="css.xml" />
    <import file="img.xml" />
    <import file="png8.xml" />
    <import file="yui.xml" />
    <import file="cdn.xml" />
    <import file="datauri.xml" />
    <import file="devlive.xml" />

    <!-- This dirname is the only complete path we know for sure, everything builds off of it -->
    <dirname property="" file="${ant.file.WebBuild}" />

    <!-- get name for newly built folder -->
    <basename property=""       file="${basedir}" />

    <!-- read global properties file -->
    <property file="${}\" />

    <!-- Build Directories -->
    <property name=""   location="${}/js" />

    <!-- App Directories -->
    <property name=""        location="${dir.result}/${}" />
    <property name=""   location="${dir.temp}/${}" />
    <property name=""  location="${}/${dir.files}" />

    <!-- Files -->
    <property name="mapping.js"     location="${}/${mapping.file.js}" />
    <property name="mapping.css"    location="${}/${mapping.file.css}" />
    <property name="mapping.img"    location="${}/${mapping.file.img}" />
    <property name="mapping.swf"    location="${}/${mapping.file.swf}" />
    <property name="mapping.fonts"  location="${}/${mapping.file.fonts}" />

    <!-- Tool Directories -->
    <property name="dir.bin"    location="${}/Bin" />
    <property name="dir.jar"    location="${dir.bin}/jar" />

    <!-- Tool Files -->
	<property name="tools.compressor"     location="${dir.jar}/${tools.file.compressor}" />
	<property name="tools.cssembed"       location="${dir.jar}/${tools.file.cssembed}" />
    <property name="tools.filetransform"  location="${dir.jar}/${tools.file.filetransform}" />
    <property name="tools.optipng"        location="${dir.bin}/${tools.file.optipng}" />
    <property name="tools.jpegtran"       location="${dir.bin}/${tools.file.jpegtran}" />

    <!-- BUILD TARGETS -->

    <!-- low level utility build targets -->

    <!-- Build the tools -->
    <target name=""
            depends="-define.filetransform, -define.cssembed, -define.yuicompressor, -define.jsclasspath"

    <!-- set up filesystem properties -->
        depends="-setup.mode, -setup.conditions, -setup.js, -setup.css, -setup.swf, -setup.img, -setup.fonts, -setup.yui"

    <!-- utility-ish targets -->
    <target name="copy"         depends="clean, tools, -copy" />
    <target name="tools"        depends="" />
    <target name="finalize"     depends="copy, -finalize" />
    <target name="-prepare"     depends="copy, -setup" />

    <!-- individual component build targets (empty descriptions are to make sure they show in "ant -p") -->
    <target name="devlive"      depends="-prepare, -devlive"            description="" />
    <target name="js"           depends="-prepare, -js"                 description="" />
    <target name="css"          depends="-prepare, -css"                description="" />
    <target name="rename"       depends="-prepare, -rename"             description="" />
    <target name="yui"          depends="-prepare, rename, -yui"        description="" />
    <target name="cdn"          depends="-prepare, -cdn"                description="" />

    <!-- high level build targets (Excluding of images is on purpose here, it's slow) -->
    <target name="core"
            depends="devlive, js, css, cdn, rename, yui, -js.inline"
            description="Core build work"

    <target name="prod"
            depends="core, finalize"
            description="Full Production Build"

    <!-- debug target -->
    <target name="debug" depends="-setup">


Trending Repos

repo stars description

Last updated August 9th, 2020

Edit Ant Build System on GitHub