1- package de .variantsync .vevos .extraction ;
1+ package org .variantsync .vevos .extraction ;
22
3- import de .variantsync .vevos .extraction .util .ConfigManipulator ;
4- import de .variantsync .vevos .extraction .util .ShellExecutor ;
3+ import org .variantsync .vevos .extraction .util .ConfigManipulator ;
4+ import org .variantsync .vevos .extraction .util .ShellExecutor ;
55import net .lingala .zip4j .ZipFile ;
66import net .lingala .zip4j .exception .ZipException ;
77import net .ssehub .kernel_haven .SetUpException ;
2323import java .util .stream .Collectors ;
2424import java .util .stream .Stream ;
2525
26- import static de .variantsync .vevos .extraction .Extraction .*;
2726import static java .nio .file .StandardCopyOption .REPLACE_EXISTING ;
2827
2928public class AnalysisTask implements Runnable {
@@ -69,9 +68,9 @@ public void run() {
6968 try {
7069 Configuration config ;
7170 config = new Configuration (propertiesFile );
72- config .registerSetting (LOG_LEVEL_MAIN );
73- config .registerSetting (EXTRACTION_TIMEOUT );
74- LOGGER .setLevel (config .getValue (LOG_LEVEL_MAIN ));
71+ config .registerSetting (Extraction . LOG_LEVEL_MAIN );
72+ config .registerSetting (Extraction . EXTRACTION_TIMEOUT );
73+ LOGGER .setLevel (config .getValue (Extraction . LOG_LEVEL_MAIN ));
7574 prepareConfig (workDir , propertiesFile );
7675 } catch (SetUpException e ) {
7776 LOGGER .logError ("Invalid configuration detected:" , e .getMessage ());
@@ -335,7 +334,7 @@ private void createBlocker(File dir) {
335334 try {
336335 if (!blocker .createNewFile ()) {
337336 LOGGER .logError ("Was not able to create blocker file!" );
338- quitOnError ();
337+ Extraction . quitOnError ();
339338 } else {
340339 LOGGER .logInfo ("BLOCKED - OK" );
341340 }
@@ -354,7 +353,7 @@ private void adjustMakefiles(File dir) {
354353 makefiles .forEach (this ::removeErrorFlags );
355354 } catch (IOException e ) {
356355 LOGGER .logException ("Was not able to search for Makefiles: " , e );
357- quitOnError ();
356+ Extraction . quitOnError ();
358357 }
359358 }
360359
@@ -366,11 +365,11 @@ private void removeErrorFlags(Path pathToFile) {
366365 lines = reader .lines ().collect (Collectors .toList ());
367366 } catch (IOException e ) {
368367 LOGGER .logException ("Was not able to read Makefile: " + pathToFile , e );
369- quitOnError ();
368+ Extraction . quitOnError ();
370369 }
371370 if (lines == null ) {
372371 LOGGER .logError ("The file's content is null: " + pathToFile );
373- quitOnError ();
372+ Extraction . quitOnError ();
374373 }
375374
376375 // Remove all error flags
@@ -391,7 +390,7 @@ private void removeErrorFlags(Path pathToFile) {
391390 }
392391 } catch (IOException e ) {
393392 LOGGER .logException ("Was not able to write adjusted Makefile " + pathToFile , e );
394- quitOnError ();
393+ Extraction . quitOnError ();
395394 }
396395 }
397396
@@ -401,7 +400,7 @@ private void checkBlocker(File dir) {
401400 if (blocker .exists ()) {
402401 LOGGER .logError ("The SPL directory is blocked by another task! This indicates a bug in the " +
403402 "implementation of multi-threading." );
404- quitOnError ();
403+ Extraction . quitOnError ();
405404 } else {
406405 LOGGER .logInfo ("NO BLOCK FOUND - OK" );
407406 }
@@ -412,7 +411,7 @@ private void deleteBlocker(File dir) {
412411 File blocker = new File (dir , "BLOCKER.txt" );
413412 if (!blocker .delete ()) {
414413 LOGGER .logError ("Was not able to delete blocker file!" );
415- quitOnError ();
414+ Extraction . quitOnError ();
416415 } else {
417416 LOGGER .logInfo ("BLOCK REMOVED - OK" );
418417 }
0 commit comments