From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A6C8138334 for ; Sun, 3 Nov 2019 10:14:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0C55E0826; Sun, 3 Nov 2019 10:14:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 849D0E0826 for ; Sun, 3 Nov 2019 10:14:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 905D334C78D for ; Sun, 3 Nov 2019 10:14:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 41F687F9 for ; Sun, 3 Nov 2019 10:14:55 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1572776084.08c9231f4893571a89387035c4e63e09f08dfa9e.fordfrog@gentoo> Subject: [gentoo-commits] proj/java-ebuilder:master commit in: src/main/java/org/gentoo/java/ebuilder/maven/ X-VCS-Repository: proj/java-ebuilder X-VCS-Files: src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java X-VCS-Directories: src/main/java/org/gentoo/java/ebuilder/maven/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 08c9231f4893571a89387035c4e63e09f08dfa9e X-VCS-Branch: master Date: Sun, 3 Nov 2019 10:14:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 31396669-1bb5-4ef4-962c-d07f338ed1f3 X-Archives-Hash: 61cd3fc55055ffa55839faa7f9167585 commit: 08c9231f4893571a89387035c4e63e09f08dfa9e Author: Miroslav Šulc gentoo org> AuthorDate: Sun Nov 3 10:14:44 2019 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sun Nov 3 10:14:44 2019 +0000 URL: https://gitweb.gentoo.org/proj/java-ebuilder.git/commit/?id=08c9231f reformatted Signed-off-by: Miroslav Šulc gentoo.org> .../java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java b/src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java index 5953815..b7192d6 100644 --- a/src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java +++ b/src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java @@ -38,11 +38,15 @@ public class MavenEbuilder { writeHeader(writer); writeCommand(config, writer); writeEAPI(writer); - MavenProject mp = mavenProjects.get(mavenProjects.size() - 1); - writeInherit(mp, writer); - // write the info from the last project as it is probably the one - // that depends on the rest - writePackageInfo(config, mp, writer); + + /** + * Write the info from the last project as it is probably the one + * that depends on the rest. + */ + final MavenProject mavenProject + = mavenProjects.get(mavenProjects.size() - 1); + writeInherit(mavenProject, writer); + writePackageInfo(config, mavenProject, writer); writeDependencies(config, mavenProjects, writer); writeSourceDir(writer);