public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java-ebuilder:master commit in: src/main/java/org/gentoo/java/ebuilder/maven/
Date: Wed,  5 Aug 2020 14:31:47 +0000 (UTC)	[thread overview]
Message-ID: <1596452182.774340875eb0e929b0db193cd4e84887e52339d8.fordfrog@gentoo> (raw)

commit:     774340875eb0e929b0db193cd4e84887e52339d8
Author:     zongyu <zzy2529420793 <AT> gmail <DOT> com>
AuthorDate: Mon Aug  3 08:38:58 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Aug  3 10:56:22 2020 +0000
URL:        https://gitweb.gentoo.org/proj/java-ebuilder.git/commit/?id=77434087

make MavenEbuilder not print unnecessary lines

Signed-off-by: zongyu <zzy2529420793 <AT> gmail.com>

 .../gentoo/java/ebuilder/maven/MavenEbuilder.java  | 24 ++++++++--------------
 1 file changed, 8 insertions(+), 16 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 1fde760..857d6c1 100644
--- a/src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java
+++ b/src/main/java/org/gentoo/java/ebuilder/maven/MavenEbuilder.java
@@ -450,10 +450,8 @@ public class MavenEbuilder {
                 mavenProjects, "runtime");
         final boolean hasCDepend = !commonDependencies.isEmpty();
 
-        writer.println();
-
         if (hasCDepend) {
-            writer.println("# Common dependencies");
+            writer.println("\n# Common dependencies");
 
             mavenProjects.stream().
                     filter((mavenProject)
@@ -474,11 +472,9 @@ public class MavenEbuilder {
             writer.println('"');
         }
 
-        writer.println();
-
         if (!compileDependencies.isEmpty()
                 || !testDependencies.isEmpty()) {
-            writer.println("# Compile dependencies");
+            writer.println("\n# Compile dependencies");
 
             mavenProjects.stream().
                     filter((mavenProject)
@@ -543,10 +539,8 @@ public class MavenEbuilder {
 
         writer.println('"');
 
-        writer.println();
-
         if (!runtimeDependencies.isEmpty()) {
-            writer.println("# Runtime dependencies");
+            writer.println("\n# Runtime dependencies");
 
             mavenProjects.stream().
                     filter((mavenProject)
@@ -558,7 +552,7 @@ public class MavenEbuilder {
                     });
         }
 
-        writer.print("RDEPEND=\"\n\t>=virtual/jre-");
+        writer.print("\nRDEPEND=\"\n\t>=virtual/jre-");
         writer.print(getMinTargetVersion(
                 mavenProjects, config.getForceMinJavaVersion()));
         writer.println(":*");
@@ -575,8 +569,6 @@ public class MavenEbuilder {
             });
         }
 
-
-
         writer.println('"');
     }
 
@@ -680,14 +672,14 @@ public class MavenEbuilder {
         // Global:
         // JAVA_GENTOO_CLASSPATH
         // JAVA_CLASSPATH_EXTRA
-        // JAVA_GENTOO_TEST_CLASSPATH
+        // JAVA_TEST_GENTOO_CLASSPATH
         // JAVA_ENCODING (unless it differs in projects)
         // Compile (jars, doc):
         // JAVA_SRC_DIR
         // JAVA_RESOURCE_DIRS
         // JAVA_ENCODING (in case project encodings are different)
         // Test:
-        // JAVA_TESTING_FRAMEWORK
+        // JAVA_TESTING_FRAMEWORKS
         // JAVA_TEST_SRC_DIR
         // JAVA_TEST_RESOURCE_DIRS
         // Install (jars, doc, sources):
@@ -855,7 +847,7 @@ public class MavenEbuilder {
                 firstTestVar = false;
             }
 
-            writer.print("JAVA_TESTING_FRAMEWORK=\"");
+            writer.print("JAVA_TESTING_FRAMEWORKS=\"");
             writer.print(testingFramework);
             writer.println('"');
         }
@@ -866,7 +858,7 @@ public class MavenEbuilder {
                 firstTestVar = false;
             }
 
-            writer.print("JAVA_GENTOO_TEST_CLASSPATH=\"");
+            writer.print("JAVA_TEST_GENTOO_CLASSPATH=\"");
             writer.print(createClassPath(mavenProject.getTestDependencies()));
             writer.println('"');
         }


             reply	other threads:[~2020-08-05 14:31 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-05 14:31 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-02 16:38 [gentoo-commits] proj/java-ebuilder:master commit in: src/main/java/org/gentoo/java/ebuilder/maven/ Miroslav Šulc
2021-07-01 13:13 Miroslav Šulc
2021-06-15  7:40 Miroslav Šulc
2021-06-03  8:38 Miroslav Šulc
2020-10-02  7:43 Miroslav Šulc
2020-08-30 18:22 Miroslav Šulc
2020-08-30 18:22 Miroslav Šulc
2020-08-27 17:24 Miroslav Šulc
2020-08-27 17:24 Miroslav Šulc
2020-08-18  8:11 Miroslav Šulc
2020-08-18  8:11 Miroslav Šulc
2020-08-05 14:31 Miroslav Šulc
2020-08-05 14:31 Miroslav Šulc
2020-08-05 14:31 Miroslav Šulc
2020-08-05 14:31 Miroslav Šulc
2020-08-05 14:31 Miroslav Šulc
2020-07-24  6:41 Miroslav Šulc
2020-07-24  6:41 Miroslav Šulc
2020-07-06 10:56 Miroslav Šulc
2020-07-06 10:56 Miroslav Šulc
2020-07-06 10:56 Miroslav Šulc
2020-07-06 10:56 Miroslav Šulc
2020-07-06 10:56 Miroslav Šulc
2019-11-27  9:50 Miroslav Šulc
2019-11-27  9:50 Miroslav Šulc
2019-11-03 15:14 Miroslav Šulc
2019-11-03 12:17 Miroslav Šulc
2019-11-03 12:17 Miroslav Šulc
2019-11-03 11:26 Miroslav Šulc
2019-11-03 10:37 Miroslav Šulc
2019-11-03 10:14 Miroslav Šulc
2019-11-03 10:12 Miroslav Šulc
2019-11-03 10:12 Miroslav Šulc
2019-11-02 22:27 Miroslav Šulc
2019-11-02 21:54 Miroslav Šulc
2019-11-02 21:42 Miroslav Šulc
2019-11-02 21:42 Miroslav Šulc
2019-11-01 18:43 Miroslav Šulc
2019-11-01 18:43 Miroslav Šulc
2019-11-01 18:43 Miroslav Šulc
2019-11-01 18:43 Miroslav Šulc
2019-11-01 18:43 Miroslav Šulc
2019-10-30 17:43 Miroslav Šulc
2019-10-30 17:35 Michał Górny
2019-10-30 17:35 Michał Górny
2019-10-30 17:35 Michał Górny
2019-10-30 17:35 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1596452182.774340875eb0e929b0db193cd4e84887e52339d8.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox