-
Notifications
You must be signed in to change notification settings - Fork 2
Apache Ant
🚧 NEW PAGE! This is a new page. As such, there may be errors.
Apache Ant is a software tool for automating software build processes. It is a build automation utility much like make or cmake, but it appears to apply to Java projects and it nees an XML file called build.xml in the directory ant is to be run in, in order to work.
In other words, where Makefile is used for C or C++ when using make, build.xml is used for Java when using ant.
While Apache ant does exist in the Rapsbian Repo, if you'd much rather install it in the /opt/ directory, like you should with Oracle's JDK, you can download it from the Apache Ant website. The best part: You don't need to compile anything! There is a binary package that will run on ARM just as it would for X86_64 or i386.
$ cd ~/Software
$ curl -SL http://www-us.apache.org/dist//ant/binaries/apache-ant-1.9.6-bin.tar.gz | tar xvz
$ sudo mv apache-ant.1.9.6 /opt/
$ whereis ant # ant: /opt/apache-ant-1.9.6/bin/ant ...
$ which ant # returns nothing
Those last two lines are there to show that bash does not actually recognize where ant is. And you may have notcied that we downloaded the binaries.
$ sudo bash -c 'cat > /etc/profile.d/ant.sh << EOF
> export ANT_HOME=/opt/apache-ant.1.9.6
> export PATH=\$ANT_HOME/bin:\$PATH
> EOF'
And instead of starting a new terminal (although you could), we'll use the source command to apply ant.sh to our path immediately.
$ source /etc/profile.d/ant.sh
OK, that should be it right? We got Apache Ant installed. One, two, three...
$ ant -version
-bash: ant: command not found.
Hmm...what is missing. Let's try this.
$ sudo ln -s /usr/local/bin/ant /opt/apache-ant-1.9.6/bin/ant /usr/local/bin/ant
$ ant -version
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
$ ant
Buildfile: build.xml does not exist!
Build failed
In this case, that failure is a good thing because it means we have Apache Ant installed!
$ curl -SL http://www-us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | tar xvz
$ sudo mv apache-maven-3.3.9 /opt/
$ whereis mvn # mvn: ... /opt/apache-maven-3.3.9/bin/mvn
$ which mvn # returns nothing
Setup
- [Assemble the Hardware](Assemble the Hardware)
- [Install the Software](Install the Software)
- SD Card Formatting and Image Mounting
- ❤️ [TLDR version](Install the Software#tldr)
- 🆕 [Windows version](Install the Software#doing-this-in-windows)
- 🆙 [Setup your Raspberry Pi](Setup your Raspberry Pi)
- [Download the Missing Parts](Download the Missing Parts)
- Clone this repo
- 🆕 [Install these first](Install these first)
-
Python(It's taken care of) - 🆙 CMake
- 🆙 Node
- 🆕 Expect (Tcl/Tk is not dead!)
- 🆙 tmux and ncurses
- 🆙 htop
- 🆙 wavemon
- Vim
- 🆙 Ruby
- 🆙 weechat
- 🆕 urxvt 256 color terminal!
- 🆕 i3 A better window manager
- 🆕 Ranger
- 🆙 Qt5
- 🆕 Chromium
wicd-curses- 📻 Software Defined Radio
- 🎮 [Linux Toys](Linux Toys)
Typical Utilities
- [Downloading and extracting with curl and tar](curl and tar)
- [Browsing with ls and cat](ls and cat)
- [Searching with grep and find](grep and find)
- [Filtering with sed and awk](sed and awk)
- [Piping with less, pv, and tee](less, pv, and tee)
- Monitor your system with htop
- Multiplex with tmux