Create a batch file to launch an ANT build (Windows)

Create a batch file that launches your ANT build file with a single click.

Before you start

Complete the exercise Create an ANT build file.

Now that you have an ANT build file, you need to choose how to run it. As mentioned earlier, startcmd.bat is not going to be an option for much longer. There is also the new DITA command line option, but that requires typing and text-based folder navigation. Ick.

Note: If you’d like to understand why startcmd.bat is going away, read Robert Anderson’s very good explanation:

My favorite method remains a simple batch file. With a batch file, you can run a build with a double-click. You can also set up ...