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/03/29 08:12:48 UTC
[maven-studies] branch maven-buildinfo-plugin updated: keep add
order
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch maven-buildinfo-plugin
in repository https://gitbox.apache.org/repos/asf/maven-studies.git
The following commit(s) were added to refs/heads/maven-buildinfo-plugin by this push:
new e78e58b keep add order
e78e58b is described below
commit e78e58b3cb14ad8a3ae55e106780a85ccd4c08be
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Mar 29 10:12:44 2020 +0200
keep add order
---
.../java/org/apache/maven/plugins/buildinfo/BuildinfoMojo.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/buildinfo/BuildinfoMojo.java b/src/main/java/org/apache/maven/plugins/buildinfo/BuildinfoMojo.java
index c56f567..3fd1aee 100644
--- a/src/main/java/org/apache/maven/plugins/buildinfo/BuildinfoMojo.java
+++ b/src/main/java/org/apache/maven/plugins/buildinfo/BuildinfoMojo.java
@@ -43,11 +43,10 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
-import java.util.HashSet;
+import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
-import java.util.Set;
/**
* Creates a buildinfo file recording build environment and output, as specified in
@@ -260,8 +259,8 @@ public class BuildinfoMojo
Properties reference = BuildInfoWriter.loadOutputProperties( referenceBuildinfo );
int ok = 0;
- Set<String> okFilenames = new HashSet<>();
- Set<String> koFilenames = new HashSet<>();
+ List<String> okFilenames = new ArrayList<>();
+ List<String> koFilenames = new ArrayList<>();
File referenceDir = referenceBuildinfo.getParentFile();
for ( Map.Entry<Artifact, String> entry : artifacts.entrySet() )
{