| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/java-ebuilder/pull/11
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/903666
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
| |
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
| |
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The MavenParser class uses Java's ProcessBuilder to start a Maven
process without consuming the process's output. This might cause the
Maven process to hang indefinitely after the output stream buffer is
full, because the process is blocked to wait for the contents in the
buffer to be cleared, but no other program is going to clear them.
When java-ebuilder is asked to create an ebuild for a Maven artifact
whose dependencies are mostly not cached in the local Maven repository
(stored in ~/.m2 by default), it will call Maven, which in turn will
download artifacts for all those dependencies, flooding lots of contents
into the output stream. The size of output stream buffers Java uses for
the processes created from ProcessBuilder is just 8192 bytes, so with
lots of output, the buffer can become full fairly easily.
This explains why a hanging process is often observed when java-ebuilder
is requested to generate ebuilds for some new Maven artifacts, but
interrupting the process and restarting java-ebuilder can resolve the
issue. When java-ebuilder is restarted, as long as MAVEN_ARTS is
unchanged, it can skip downloading the dependencies that have already
been cached in the previous execution before the buffer is full, so the
number of artifacts it still needs to download is reduced, and it might
be able to complete before the buffer is full again.
The solution to this issue is simple: either suppress Maven's output, or
consume the output stream buffer's contents to prevent blocking. The
former solution is probably more preferable because it only requires
minimal change to both the source code and the program's behavior, and
it avoids output redirection, which is not easily portable between
different operating systems.
Reference: https://stackoverflow.com/questions/3285408/java-processbuilder-resultant-process-hangs
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/java-ebuilder/pull/10
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/793863
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
| |
Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com>
|
|
|
|
|
|
|
| |
specify it to prevent java-ebuilder from printing
lines that are related to src_test().
Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
| |
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
| |
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
|
|
|
|
| |
Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
|
|
| |
use Makefile to drive the process of generating maven overlay
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
|
|
|
|
|
| |
1. ebuild for jsch-agent-proxy can be generated by hand, remove the related lines
2. make java-pkg-binjar.eclass record dependencies of the pkg
3. fix typo: juniper -> jupiter
4. move the pre-process of maven's license name to MavenLicense
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
--binjar-uri, which specifies uri of the pre-compiled jar
support installing binary maven packge
support future src_test(), which will
compare Gentoo-compiled jars and Maven
Central distributed jars
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
|
|
|
| |
new CLI switch:
--from-maven-central
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
|
|
|
|
| |
make MavenVersion.class able to compare incremental version
make it convert qualifier to lowercase to avoid the situation when
maintainer mixes uppercase and lowercase
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|
|
|
|
| |
Signed-off-by: zongyu <zzy2529420793@gmail.com>
|