Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Ant Build System

Ant Build System

< >

Ant Build System is an application created in 2000.

#749on PLDB 22Years Old 201Users

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.

Example 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 --> <target name="-setup" 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"> <echoproperties/> </target> </project>
mavo.html 路 ant-build-system.html 路 jmp.html

View source

PLDB - Build the next great programming language 路 v2022 Day 94 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub