Skip to Content
Ant: The Definitive Guide
book

Ant: The Definitive Guide

by Eric M. Burke, Jesse Tilly
May 2002
Intermediate to advanced
288 pages
10h 50m
English
O'Reilly Media, Inc.
Content preview from Ant: The Definitive Guide

FilterSet DataType

The filterset DataType was introduced in Ant 1.4, and allows for the definition of groups of filters. These filters (implemented by the filter task) perform text substitution in files as they are moved or copied. This is known as token filtering. The text substitution occurs when certain tokens are found in the input files. As the files are moved or copied, the tokens are replaced by text defined in the matching filter. Prior to Ant 1.4, the filter task always used @ characters as token delimiters. filterset allows you to customize the beginning and ending token delimiters.

The filterset DataType is represented by the <filterset> element. <filterset> elements may appear as nested content within the copy and move tasks, or as target-level buildfile elements (i.e., children of <project>). Following are the allowable filterset attributes:

begintoken (1.4, String, N)

The string marking the beginning of a token that nested filters search for. Defaults to @.

endtoken (1.4, String, N)

The string marking the end of a token that nested filters search for. Defaults to @.

id (1.4, String, N)

A unique identifier for this filter. This is required when the filter is defined as a target-level buildfile element and must be referenced later.

refid (1.4, Reference, N)

A reference to a filter defined elsewhere in the buildfile.

A filterset may also contain the following:

0..n nested <filter> elements (1.4)

Each nested <filter> element defines a token and the replacement text. <filter> ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Ant in Action

Ant in Action

Steve Loughran, Erik Hatcher
Ant Developer’s Handbook

Ant Developer’s Handbook

Alan Williamson, Kirk Pepperdine, Joey Gibson, Andrew Wu

Publisher Resources

ISBN: 0596001843Catalog PageErrata