| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <HTML> |
| <HEAD> |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> |
| <title>Running Ant buildfiles</title> |
| </HEAD> |
| <BODY BGCOLOR="#ffffff"> |
| <H1>Running Ant buildfiles</H1> |
| |
| <p>To run an Ant buildfile in the Workbench: |
| </p> |
| <ol> |
| <li>In the Navigator view, select an XML file.</li> |
| <li>From the file's pop-up menu, select <b>Run Ant...</b>. The launch configuration |
| dialog opens.</li> |
| <li>Select one or more targets from the <b>Targets</b> tab. The order |
| in which you select the items is the order in which they will run. The order |
| is displayed in the <b>Target execution order</b> box at the bottom of the tab. |
| You can change the order of the targets by clicking the <b>Order...</b> button.</li> |
| <li>(Optional) Configure options on the other tabs. For example, on the <b>Main</b> tab, |
| type any required arguments in the <b>Arguments</b> field.</li> |
| <li>Click <b>Run</b>.</li> |
| </ol> |
| |
| <p>The Ant buildfile will run on the selected targets. Unless you disabled the <b>Capture |
| output</b> option on the <b>Main</b> tab, the console displays any applicable execution results |
| as the buildfile runs. |
| </p> |
| |
| <p>These steps create a persisted launch configuration. The newly created configuration will |
| appear in the launch history under <b>Run > External Tools</b> and will be available in the |
| launch configuration dialog which is opened by clicking <b>Run > External Tools > External Tools...</b>. |
| </p> |
| |
| <p><img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27"><br> |
| <a href="../concepts/concepts-antsupport.htm">Ant support</a><br> |
| <a href="../concepts/concepts-22.htm">Builds</a><br> |
| <a href="../concepts/concepts-exttools.htm">External tools</a> |
| </p> |
| |
| <p><img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><br> |
| <a href="../tasks/tasks-exttools-running.htm">Running external tools</a><br> |
| <a href="../tasks/tasks-ant-classpath.htm">Modifying the Ant classpath</a><br> |
| <a href="../tasks/tasks-ant-version.htm">Using a different version of Ant</a><br> |
| <a href="../tasks/tasks-ant-addtasksandtypes.htm">Adding new Ant tasks and types</a><br> |
| </p> |
| |
| <p> <br> |
| <a href="../hglegal2003.htm"> |
| <img src = "../images/ngibmcpy2003.gif" alt="Copyright IBM Corporation and others 2000, 2003" border="0" width="324" height="14"></a> |
| </p> |
| |
| </BODY> |
| </HTML> |