NAME
XML::Ant::BuildFile::Resource - Role for Ant build file resources
VERSION
version 0.211
SYNOPSIS
package XML::Ant::BuildFile::Resource::Foo;
use Moose;
with 'XML::Ant::BuildFile::Resource';
after BUILD => sub {
my $self = shift;
print "I'm a ", $self->resource_name, "\n";
};
1;
DESCRIPTION
This is a role shared by resources in an XML::Ant::BuildFile::Project.
ATTRIBUTES
resource_name
Name of the task's XML node.
id
id
attribute of this resource.
as_string
Every role consumer must implement the as_string
method.
content
XML::Ant::BuildFile::Resource provides a default content
attribute, but it only returns undef
. Consumers should use the around
method modifier to return something else in order to support resources with refid
attributes
METHODS
BUILD
After a resource is constructed, it adds its id and string representation to the XML::Ant::Properties singleton with toString:
prepended to the id
.
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.