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 2021/05/12 21:09:29 UTC
[maven-artifact-plugin] branch master updated: [MARTIFACT-19] quote
reference 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-artifact-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 658b686 [MARTIFACT-19] quote reference version
658b686 is described below
commit 658b686bf2db094ad0c9d1673cd79da496f7e6f1
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Wed May 12 23:09:25 2021 +0200
[MARTIFACT-19] quote reference version
---
.../org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
index 3ed06e3..ea187f5 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
@@ -410,12 +410,12 @@ public class BuildinfoMojo
String v = ref.getProperty( "java.version" );
if ( v != null )
{
- p.println( "reference_java_version=" + v );
+ p.println( "reference_java_version=\"" + v + '"' );
}
v = ref.getProperty( "os.name" );
if ( v != null )
{
- p.println( "reference_os_name=" + v );
+ p.println( "reference_os_name=\"" + v + '"' );
}
for ( String diffoscope : diffoscopes )
{