Skip to content
Snippets Groups Projects
Commit 45867149 authored by Mark McKinnon's avatar Mark McKinnon
Browse files

Update ALeappAnalyzerIngestModule.java

Fix misc spellings
parent 69d18bd5
Branches
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule { ...@@ -86,7 +86,7 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
@NbBundle.Messages({ @NbBundle.Messages({
"ALeappAnalyzerIngestModule.executable.not.found=aLeapp Executable Not Found.", "ALeappAnalyzerIngestModule.executable.not.found=aLeapp Executable Not Found.",
"ALeappAnalyzerIngestModule.requires.windows=aLeapp module requires windows.", "ALeappAnalyzerIngestModule.requires.windows=aLeapp module requires windows.",
"ALeappAnalyzerIngestModule.error.ileapp.file.processor.init=Failure to initialize aLeappProcessFile"}) "ALeappAnalyzerIngestModule.error.aleapp.file.processor.init=Failure to initialize aLeappProcessFile"})
@Override @Override
public void startUp(IngestJobContext context) throws IngestModuleException { public void startUp(IngestJobContext context) throws IngestModuleException {
this.context = context; this.context = context;
...@@ -102,7 +102,7 @@ public void startUp(IngestJobContext context) throws IngestModuleException { ...@@ -102,7 +102,7 @@ public void startUp(IngestJobContext context) throws IngestModuleException {
try { try {
aLeappFileProcessor = new LeappFileProcessor(XMLFILE, ALeappAnalyzerModuleFactory.getModuleName(), ALEAPP, context); aLeappFileProcessor = new LeappFileProcessor(XMLFILE, ALeappAnalyzerModuleFactory.getModuleName(), ALEAPP, context);
} catch (IOException | IngestModuleException | NoCurrentCaseException ex) { } catch (IOException | IngestModuleException | NoCurrentCaseException ex) {
throw new IngestModuleException(Bundle.ALeappAnalyzerIngestModule_error_ileapp_file_processor_init(), ex); throw new IngestModuleException(Bundle.ALeappAnalyzerIngestModule_error_aleapp_file_processor_init(), ex);
} }
try { try {
...@@ -148,7 +148,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress ...@@ -148,7 +148,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress
writeErrorMsgToIngestInbox(); writeErrorMsgToIngestInbox();
return ProcessResult.ERROR; return ProcessResult.ERROR;
} }
aLeappPathsToProcess = loadIleappPathFile(tempOutputPath); aLeappPathsToProcess = loadAleappPathFile(tempOutputPath);
if (aLeappPathsToProcess.isEmpty()) { if (aLeappPathsToProcess.isEmpty()) {
logger.log(Level.SEVERE, String.format("Error getting file paths to search, list is empty")); logger.log(Level.SEVERE, String.format("Error getting file paths to search, list is empty"));
writeErrorMsgToIngestInbox(); writeErrorMsgToIngestInbox();
...@@ -178,7 +178,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress ...@@ -178,7 +178,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress
} }
statusHelper.switchToIndeterminate(); statusHelper.switchToIndeterminate();
statusHelper.progress(Bundle.ILeappAnalyzerIngestModule_processing_iLeapp_results()); statusHelper.progress(Bundle.ALeappAnalyzerIngestModule_processing_aLeapp_results());
extractFilesFromDataSource(dataSource, aLeappPathsToProcess, tempOutputPath); extractFilesFromDataSource(dataSource, aLeappPathsToProcess, tempOutputPath);
processALeappFs(dataSource, currentCase, statusHelper, tempOutputPath.toString()); processALeappFs(dataSource, currentCase, statusHelper, tempOutputPath.toString());
...@@ -219,7 +219,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI ...@@ -219,7 +219,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI
return; return;
} }
addILeappReportToReports(moduleOutputPath, currentCase); addALeappReportToReports(moduleOutputPath, currentCase);
} catch (IOException ex) { } catch (IOException ex) {
logger.log(Level.SEVERE, String.format("Error when trying to execute aLeapp program against file %s", aLeappFile.getLocalAbsPath()), ex); logger.log(Level.SEVERE, String.format("Error when trying to execute aLeapp program against file %s", aLeappFile.getLocalAbsPath()), ex);
...@@ -227,7 +227,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI ...@@ -227,7 +227,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI
} }
if (context.dataSourceIngestIsCancelled()) { if (context.dataSourceIngestIsCancelled()) {
logger.log(Level.INFO, "ILeapp Analyser ingest module run was canceled"); //NON-NLS logger.log(Level.INFO, "aLeapp Analyser ingest module run was canceled"); //NON-NLS
return; return;
} }
...@@ -262,7 +262,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng ...@@ -262,7 +262,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng
return; return;
} }
addILeappReportToReports(moduleOutputPath, currentCase); addALeappReportToReports(moduleOutputPath, currentCase);
} catch (IOException ex) { } catch (IOException ex) {
logger.log(Level.SEVERE, String.format("Error when trying to execute aLeapp program against file system"), ex); logger.log(Level.SEVERE, String.format("Error when trying to execute aLeapp program against file system"), ex);
...@@ -270,7 +270,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng ...@@ -270,7 +270,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng
} }
if (context.dataSourceIngestIsCancelled()) { if (context.dataSourceIngestIsCancelled()) {
logger.log(Level.INFO, "ILeapp Analyser ingest module run was canceled"); //NON-NLS logger.log(Level.INFO, "aLeapp Analyser ingest module run was canceled"); //NON-NLS
return; return;
} }
...@@ -335,7 +335,7 @@ private static File locateExecutable(String executableName) throws FileNotFoundE ...@@ -335,7 +335,7 @@ private static File locateExecutable(String executableName) throws FileNotFoundE
* Find the index.html file in the aLeapp output directory so it can be * Find the index.html file in the aLeapp output directory so it can be
* added to reports * added to reports
*/ */
private void addILeappReportToReports(Path aLeappOutputDir, Case currentCase) { private void addALeappReportToReports(Path aLeappOutputDir, Case currentCase) {
List<String> allIndexFiles = new ArrayList<>(); List<String> allIndexFiles = new ArrayList<>();
try (Stream<Path> walk = Files.walk(aLeappOutputDir)) { try (Stream<Path> walk = Files.walk(aLeappOutputDir)) {
...@@ -363,7 +363,7 @@ private void addILeappReportToReports(Path aLeappOutputDir, Case currentCase) { ...@@ -363,7 +363,7 @@ private void addILeappReportToReports(Path aLeappOutputDir, Case currentCase) {
* Reads the aLeapp paths file to get the paths that we want to extract * Reads the aLeapp paths file to get the paths that we want to extract
* *
*/ */
private List<String> loadIleappPathFile(Path moduleOutputPath) throws FileNotFoundException, IOException { private List<String> loadAleappPathFile(Path moduleOutputPath) throws FileNotFoundException, IOException {
List<String> aLeappPathsToProcess = new ArrayList<>(); List<String> aLeappPathsToProcess = new ArrayList<>();
Path filePath = Paths.get(moduleOutputPath.toString(), ALEAPP_PATHS_FILE); Path filePath = Paths.get(moduleOutputPath.toString(), ALEAPP_PATHS_FILE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment