NAME

XML::Ant::BuildFile::Element::Arg - Argument element for a task in an Ant build file

VERSION

version 0.211

SYNOPSIS

package My::Ant::Task;
use Moose;
with 'XML::Ant::BuildFile::Task';

has arg_objects => (
    isa         => 'ArrayRef[XML::Ant::BuildFile::Element::Arg]',
    traits      => ['XPathObjectList'],
    xpath_query => './arg',
);

sub all_args {
    my $self = shift;
    return map {$_->args} @{ $self->arg_objects };
}

DESCRIPTION

This is an incomplete class to represent <arg/> elements in a build file project.

METHODS

args

Returns a list of arguments contained in the element. Currently handles <arg/> elements with the following attributes:

value
line
pathref

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.