Ant support is provided as a built-in feature of the workbench. If you right-click any XML file and select Run Ant from the pop-up menu, the Execute Ant Script dialog shows the available Ant targets. You can check, in sequence, which ones are to be executed, and the execution sequence will be shown beside each target. You can also select Display execution log to Ant console, which will cause any Ant messages to be displayed in the Ant Console view ( ).
In addition, an Arguments field lets you pass arguments, such as -verbose, to the Ant program. If the Ant script invokes the Ant javac task, then a special -Dbuild.compiler=org.eclipse.pde.internal.core.JDTCompilerAdapter argument must be passed or you will get a Cannot use classic compiler error.
If you use the deprecation="on" option for the javac Ant task, the Rational® Software Development Platform will crash. You should either specify nothing or use deprecation="off".
<target name="bad"> <propertyBAD name="MyName" value="MyValue"/> </target>
Right-click echo.xml and select Run Ant to run it again. Select bad as your target and click Finish. You will receive the following error message, listed twice: "Could not create task of type: propertyBad" in the Problems view. You can partly fix this by changing propertyBad to property, and then saving echo.xml. The errors in the Task view will remain, because the errors are Ant runtime errors. If you run Ant again, the error messages will disappear.