@@ -187,7 +187,7 @@ public void generate( HistoricalContentDTO content )
187187 finally
188188 {
189189 buildConfigLocks .remove ( buildConfigId );
190- logger .info ( "lock released, buildConfigId {}" , buildConfigId );
190+ logger .info ( "<<<Lock released for buildConfigId {}" , buildConfigId );
191191 }
192192 } );
193193 try
@@ -216,7 +216,7 @@ public void generate( HistoricalContentDTO content )
216216 protected Boolean doGenerate ( HistoricalContentDTO content )
217217 {
218218 String buildConfigId = content .getBuildConfigId ();
219- logger .info ( "Handle generate event: {}, build config id: {}" , EVENT_GENERATE_ARCHIVE , buildConfigId );
219+ logger .info ( "<<< Handle generate event: {}, build config id: {}" , EVENT_GENERATE_ARCHIVE , buildConfigId );
220220
221221 Map <String , HistoricalEntryDTO > entryDTOs = reader .readEntries ( content );
222222 Map <String , String > downloadPaths = new HashMap <>();
@@ -483,10 +483,15 @@ private boolean renderArchive( File part, final String buildConfigId )
483483 public List <File > walkAllFiles ( String path )
484484 throws IOException
485485 {
486- List <File > contents = Files .walk ( Paths .get ( path ) )
487- .filter ( Files ::isRegularFile )
488- .map ( Path ::toFile )
489- .collect ( Collectors .toList () );
486+ List <File > contents = new ArrayList <>();
487+ Path directoryPath = Paths .get ( path );
488+ if ( Files .exists ( directoryPath ) )
489+ {
490+ contents = Files .walk ( directoryPath )
491+ .filter ( Files ::isRegularFile )
492+ .map ( Path ::toFile )
493+ .collect ( Collectors .toList () );
494+ }
490495 return contents ;
491496 }
492497
0 commit comments