Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: java@g.o, Mike Gilbert <floppym@g.o>
Subject: Re: [gentoo-dev] [PATCH] java-utils-2.eclass: remove ebegin calls that lack eend calls
Date: Fri, 15 Apr 2022 14:24:32
Message-Id: 402d6b1a93a65e250fb2b8e64142a7ec570dddaf.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] java-utils-2.eclass: remove ebegin calls that lack eend calls by Mike Gilbert
1 On Fri, 2022-04-15 at 10:11 -0400, Mike Gilbert wrote:
2 > Instead, echo the command we are about to run.
3 >
4 > Closes: https://bugs.gentoo.org/838475
5 > Closes: https://bugs.gentoo.org/838478
6 > Closes: https://bugs.gentoo.org/838481
7 > Closes: https://bugs.gentoo.org/838487
8 > Closes: https://bugs.gentoo.org/838490
9 > Closes: https://bugs.gentoo.org/838493
10 > Signed-off-by: Mike Gilbert <floppym@g.o>
11 > ---
12 >  eclass/java-utils-2.eclass | 10 ++++++----
13 >  1 file changed, 6 insertions(+), 4 deletions(-)
14 >
15 > diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
16 > index 11798908dae..2a649942550 100644
17 > --- a/eclass/java-utils-2.eclass
18 > +++ b/eclass/java-utils-2.eclass
19 > @@ -2099,8 +2099,9 @@ ejavac() {
20 >                 einfo "${compiler_executable} ${javac_args} ${@}"
21 >         fi
22 >  
23 > -       ebegin "Compiling"
24 > -       ${compiler_executable} ${javac_args} "${@}" || die "ejavac
25 > failed"
26 > +       local args=( ${compiler_executable} ${javac_args} "${@}" )
27 > +       echo "${args[@]}" >&2
28 > +       "${args[@]}" || die "ejavac failed"
29 >  }
30 >  
31 >  # @FUNCTION: ejavadoc
32 > @@ -2125,8 +2126,9 @@ ejavadoc() {
33 >                 einfo "javadoc ${javadoc_args} ${@}"
34 >         fi
35 >  
36 > -       ebegin "Generating JavaDoc"
37 > -       javadoc ${javadoc_args} "${@}" || die "ejavadoc failed"
38 > +       local args=( javadoc ${javadoc_args} "${@}" )
39 > +       echo "${args[@]}" >&2
40 > +       "${args[@]}" || die "ejavadoc failed"
41 >  }
42 >  
43 >  # @FUNCTION: java-pkg_filter-compiler
44
45 Another nice example of "edo" being reinvented. LGTM