jmx4perl
view release on metacpan or search on metacpan
inc/Module-Build/Module/Build/Base.pm view on Meta::CPAN
return {} unless -d $dir;
return { map {$_, $_}
map $self->localize_file_path($_),
grep !/\.\#/,
@{ $self->rscan_dir($dir, file_qr("\\.$type\$")) } };
}
sub localize_file_path {
my ($self, $path) = @_;
return File::Spec->catfile( split m{/}, $path );
}
sub localize_dir_path {
my ($self, $path) = @_;
return File::Spec->catdir( split m{/}, $path );
}
sub fix_shebang_line { # Adapted from fixin() in ExtUtils::MM_Unix 1.35
my ($self, @files) = @_;
my $c = ref($self) ? $self->{config} : 'Module::Build::Config';
my ($does_shbang) = $c->get('sharpbang') =~ /^\s*\#\!/;
for my $file (@files) {
my $FIXIN = IO::File->new($file) or die "Can't process '$file': $!";
local $/ = "\n";
lib/JMX/Jmx4Perl.pm view on Meta::CPAN
my $list;
if ($path_or_resp && UNIVERSAL::isa($path_or_resp,"JMX::Jmx4Perl::Response")) {
$path = $path_or_resp->request->get("path");
$list = $path_or_resp->value;
} else {
$path = $path_or_resp;
$list = $self->list($path);
}
my @path = ();
@path = split m|/|,$path if $path;
#print Dumper(\@path);
croak "A path can be used only for a domain name or MBean name" if @path > 2;
my $intent = "";
my $ret = &_format_map("",$list,\@path,0);
}
# ===============================================================================================
# Helper method for extracting parameters for the set/get methods.
( run in 0.687 second using v1.01-cache-2.11-cpan-71847e10f99 )