File Coverage

blib/lib/Alien/OpenJDK.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Alien::OpenJDK;
2             $Alien::OpenJDK::VERSION = '0.01';
3 1     1   288230 use strict;
  1         9  
  1         30  
4 1     1   6 use warnings;
  1         2  
  1         26  
5 1     1   5 use base qw( Alien::Base );
  1         2  
  1         1075  
6 1     1   6318 use 5.008004;
  1         4  
7              
8             1;
9              
10             =head1 NAME
11              
12             Alien::OpenJDK - Find or build OpenJDK
13              
14             =head1 SYNOPSIS
15              
16             From L:
17              
18             use ExtUtils::MakeMaker;
19             use Alien::Base::Wrapper ();
20              
21             WriteMakefile(
22             Alien::Base::Wrapper->new('Alien::OpenJDK')->mm_args2(
23             NAME => 'FOO::XS',
24             ...
25             ),
26             );
27              
28             From L:
29              
30             use Module::Build;
31             use Alien::Base::Wrapper qw( Alien::OpenJDK !export );
32             use Alien::OpenJDK;
33              
34             my $build = Module::Build->new(
35             ...
36             configure_requires => {
37             'Alien::Base::Wrapper' => '0',
38             'Alien::OpenJDK' => '0',
39             ...
40             },
41             Alien::Base::Wrapper->mb_args,
42             ...
43             );
44              
45             $build->create_build_script;
46              
47             From L / L script:
48              
49             use Inline 0.56 with => 'Alien::OpenJDK';
50              
51             From L
52              
53             [@Filter]
54             -bundle = @Basic
55             -remove = MakeMaker
56              
57             [Prereqs / ConfigureRequires]
58             Alien::OpenJDK = 0
59              
60             [MakeMaker::Awesome]
61             header = use Alien::Base::Wrapper qw( Alien::OpenJDK !export );
62             WriteMakefile_arg = Alien::Base::Wrapper->mm_args
63              
64             Command line tool:
65              
66             use Alien::OpenJDK;
67             use Env qw( @PATH );
68              
69             unshift @PATH, Alien::OpenJDK->bin_dir;
70              
71             =head1 DESCRIPTION
72              
73             This distribution provides OpenJDK so that it can be used by other
74             Perl distributions that are on CPAN. It does this by first trying to
75             detect an existing install of OpenJDK on your system. If found it
76             will use that. If it cannot be found, the source code will be downloaded
77             from the internet and it will be installed in a private share location
78             for the use of other modules.
79              
80             =head1 SEE ALSO
81              
82             =over 4
83              
84             =item L
85              
86             Documentation on the Alien concept itself.
87              
88             =item L
89              
90             The base class for this Alien.
91              
92             =item L
93              
94             Detailed manual for users of Alien classes.
95              
96             =back
97              
98             =cut