ant(1)

πŸ“¦
version 1.10.18 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay so the big reveal first: ant is a Java based make tool 🫢 that's it, that's the whole vibe ✨

🌸 SYNOPSIS 🌸

ant [OPTIONS] [TARGET [TARGET2 [TARGET3] ...]]

✨ DESCRIPTION ✨

okay bestie, so you know how make builds your projects? ant does that too, but it's written in Java, which means it runs on literally every platform that has a Java Virtual Machine πŸ’… that's giving universal 🌈 and honestly? It's a total icon for building Java software πŸ‘‘

by default, ant grabs its info from build.xml, which is where all the targets are described πŸ“

here's the options menu, no cap πŸ’–

  • -help, -h β€” the help menu for all the command line options πŸŽ€
  • -projecthelp, -p β€” shows project help info 🧚
  • -version β€” shows the version info ✨
  • -diagnostics β€” dumps info that's useful when you're trying to figure out or report a problem πŸ™ˆ
  • -quiet, -q β€” shh, extra quiet mode 🀫
  • -silent, -S β€” the minimalist option: only task outputs and build failures get printed πŸ’œ
  • -verbose, -v β€” extra chatty mode, tell me everything πŸ—£οΈ
  • -debug, -d β€” prints debugging info πŸ”₯
  • -emacs, -e β€” logging without the fancy adornments 🌿
  • -lib <path> β€” tells ant where to search for jars and classes πŸ¦‹
  • -logfile <file> β€” sends the log to the file you pick πŸ“
  • -logger <classname> β€” uses the class you give it to handle logging πŸͺ„
  • -listener <classname> β€” adds an instance of that class as a project listener πŸ‘‚
  • -noinput β€” no interactive input allowed, we're not chatting with it mid-build πŸ™…β€β™€οΈ
  • -buildfile, -file, -f <file> β€” uses the buildfile you specify instead of the default build.xml. this is basically ant's version of a Makefile, so iykyk 🫢
  • -D<property>=<value> β€” sets the given property to that value πŸ’…
  • -keep-going, -k β€” runs every target that doesn't depend on a failed target. main character energy when one thing breaks but the rest keeps slaying πŸ‘‘
  • -propertyfile <name> β€” loads all properties from that file, but any -D properties win if there's a clash πŸ’–
  • -inputhandler <class> β€” the class that handles input requests πŸŽ€
  • -find, -s <file> β€” searches toward the root of the filesystem for the buildfile and uses it. it's like a treasure hunt πŸ—ΊοΈ
  • -nice <number> β€” sets the niceness of the main thread, from 1 (lowest) to 10 (highest). 5 is the default, and it's giving balanced 🌈
  • -nouserlib β€” runs ant without using the jar files from ${user.home}/.ant/lib πŸŒ™
  • -noclasspath β€” runs ant without using CLASSPATH πŸ§ƒ
  • -autoproxy β€” Java 5 or later only! uses the OS proxy settings 🌐
  • -main <class> β€” overrides ant's normal entry point. big override energy πŸ’₯

🧚 SEE ALSO 🧚

πŸ’œ AUTHOR πŸ’œ

this page was written by Egon Willighagen <egonw@sci.kun.nl> 🫢


🌸 that's the whole tea, bestie! this page came from Debian GNU/Linux, dated Feb 2010 πŸ’– stay buildin' and stay slaying ✨πŸ’