You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/07/22 22:34:49 UTC
[maven-dist-tool] branch master updated: remove "1." prefix from
JDK version
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
The following commit(s) were added to refs/heads/master by this push:
new 4466c6a remove "1." prefix from JDK version
4466c6a is described below
commit 4466c6acc725f92423e551a2ca2dbcfbc80ac7d4
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Thu Jul 23 00:34:39 2020 +0200
remove "1." prefix from JDK version
---
.../apache/maven/dist/tools/prerequisites/PluginPrerequisites.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/maven/dist/tools/prerequisites/PluginPrerequisites.java b/src/main/java/org/apache/maven/dist/tools/prerequisites/PluginPrerequisites.java
index 38b5f6b..215c563 100644
--- a/src/main/java/org/apache/maven/dist/tools/prerequisites/PluginPrerequisites.java
+++ b/src/main/java/org/apache/maven/dist/tools/prerequisites/PluginPrerequisites.java
@@ -61,6 +61,10 @@ public class PluginPrerequisites
public void setJdkVersion( String jdkVersion )
{
+ if ( jdkVersion.startsWith( "1." ) )
+ {
+ jdkVersion = jdkVersion.substring( 2 );
+ }
this.jdkVersion = jdkVersion;
}