7.6. Setting Types and Global Properties

Problem

You want to create tasks and types for an Ant build, or set global Ant properties.

Solution

Select Window Preferences Ant Runtime, and click the Tasks, Types, or Properties tabs.

Discussion

If you click the Tasks and Types tabs, you can add new Ant tasks and types. Those tasks and types then will be available to build files without having to use Ant <taskdef> or <typedef> elements. Eclipse also enables you to set global Ant properties, across all projects, if you click the Properties tab in this dialog. To add a new global property, just click the Add button in the Properties tab, and enter a name and value for the new property.

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.