HTML and CSS Reference
In-Depth Information
Using the Ant build script
First, confirm you have Ant installed on your system by entering the following in your
command-line tool:
ant-version
If you do not have Ant, install it first before proceeding to the next step.
Note
Ant is installed by default on Macs, while it is available as a package to install
on most Linux platforms. For Windows, installing Ant is slightly more complicated.
You need to install the Java SDK from www.oracle.com/technetwork/java/javase/
downloads/index.html and then download WinAntcode.google.com/p/win-
ant/ and point the installer to Program Files/Java/jre6/bin/ .
Next, you need to install ant-contrib , a utility that makes a lot of functionality avail-
able for Ant that HTML5 build script uses. WinAnt does this automatically, when you
use it to install Ant on Windows. However, for Linux users, you can use yum to install
it as a package. On Mac, you can install MacPorts ( www.macports.org/install.php )
and then enter the following in your command-line tool (typically Terminal):
sudo port install ant-contrib
Finally, ensure that the image optimization tools are installed. For Mac users, you
need to make sure you have jpegt ran ( www.ijg.org/ ) and optipng ( op-
tipng.sourceforge.net/ ) installed and on your path. You can install these two
files by entering the following in your command-line terminal:
sudoport install jpeg optipng
Search WWH ::




Custom Search