Alien-PlantUML
view release on metacpan or search on metacpan
plugin 'Probe::CommandLine' => (
command => 'plantuml',
args => [ '-version' ],
match => qr/PlantUML/,
version => qr/PlantUML version ([0-9\.]+)/,
);
sub find_jar_file {
my $plantuml = path(scalar which('plantuml'));
if( my ($jar_file) = $plantuml->slurp_utf8 =~ qr/-jar\s+(\S+\.jar)/s ) {
return $jar_file;
}
}
meta->around_hook( probe => sub {
my $orig = shift;
my ($build) = @_;
my $install_type = $orig->(@_);
my $jar_file = find_jar_file();
( run in 0.934 second using v1.01-cache-2.11-cpan-49f99fa48dc )