NAME
XML::Ant::BuildFile::Target - target node within an Ant build file
VERSION
version 0.205
SYNOPSIS
use XML::Ant::BuildFile::Project;
my $project = XML::Ant::BuildFile::Project->new( file => 'build.xml' );
for my $target ( values %{$project->targets} ) {
print 'got target: ', $target->name, "\n";
}
DESCRIPTION
See XML::Ant::BuildFile::Project for a complete description.
ATTRIBUTES
name
Name of the target.
dependencies
If the target has any dependencies, this will return them as an array reference of XML::Ant::BuildFile::Target objects.
METHODS
all_tasks
Returns an array of task objects contained in this target.
task
Given an index number returns that task from the target.
filter_tasks
Returns all task objects for which the given code reference returns true
.
num_tasks
Returns a count of the number of tasks in this target.
tasks
Given one or more task names, returns a list of task objects.
BUGS
Please report any bugs or feature requests on the bugtracker website http://github.com/mjgardner/XML-Ant-BuildFile/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
Mark Gardner <mjgardner@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by GSI Commerce.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.