Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
sort manually crafted descriptors files for reproducible builds
Browse files Browse the repository at this point in the history
this closes #27
  • Loading branch information
hboutemy committed Oct 22, 2019
1 parent a14f3ac commit 03349df
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -149,6 +149,15 @@ public int compare( ComponentDescriptor d1, ComponentDescriptor d2 )
{
File[] files = request.componentDescriptorDirectory.listFiles();

// Sort the files by name to make the output reproducible
Arrays.sort( files, new Comparator<File>()
{
public int compare( File f1, File f2 )
{
return f1.getName().compareTo( f2.getName() );
}
});

int added = 0;
for ( File file : files )
{
Expand Down

0 comments on commit 03349df

Please sign in to comment.