remove quotes around path for exec

This commit is contained in:
Greg DiCristofaro 2023-07-02 19:53:24 -04:00
parent 85e0d9945e
commit 29457dc686
2 changed files with 4 additions and 4 deletions

View File

@ -289,7 +289,7 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
private ProcessBuilder buildaLeappCommand(Path moduleOutputPath, String sourceFilePath, String aLeappFileSystemType) { private ProcessBuilder buildaLeappCommand(Path moduleOutputPath, String sourceFilePath, String aLeappFileSystemType) {
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker( ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
"\"" + aLeappExecutable + "\"", //NON-NLS aLeappExecutable.getAbsolutePath(), //NON-NLS
"-t", aLeappFileSystemType, //NON-NLS "-t", aLeappFileSystemType, //NON-NLS
"-i", sourceFilePath, //NON-NLS "-i", sourceFilePath, //NON-NLS
"-o", moduleOutputPath.toString(), "-o", moduleOutputPath.toString(),
@ -303,7 +303,7 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
private ProcessBuilder buildaLeappListCommand(Path moduleOutputPath) { private ProcessBuilder buildaLeappListCommand(Path moduleOutputPath) {
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker( ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
"\"" + aLeappExecutable + "\"", //NON-NLS aLeappExecutable.getAbsolutePath(), //NON-NLS
"-p" "-p"
); );
processBuilder.redirectError(moduleOutputPath.resolve("aLeapp_paths_error.txt").toFile()); //NON-NLS processBuilder.redirectError(moduleOutputPath.resolve("aLeapp_paths_error.txt").toFile()); //NON-NLS

View File

@ -289,7 +289,7 @@ public class ILeappAnalyzerIngestModule implements DataSourceIngestModule {
private ProcessBuilder buildiLeappCommand(Path moduleOutputPath, String sourceFilePath, String iLeappFileSystemType) { private ProcessBuilder buildiLeappCommand(Path moduleOutputPath, String sourceFilePath, String iLeappFileSystemType) {
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker( ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
"\"" + iLeappExecutable + "\"", //NON-NLS iLeappExecutable.getAbsolutePath(), //NON-NLS
"-t", iLeappFileSystemType, //NON-NLS "-t", iLeappFileSystemType, //NON-NLS
"-i", sourceFilePath, //NON-NLS "-i", sourceFilePath, //NON-NLS
"-o", moduleOutputPath.toString() "-o", moduleOutputPath.toString()
@ -309,7 +309,7 @@ public class ILeappAnalyzerIngestModule implements DataSourceIngestModule {
private ProcessBuilder buildiLeappListCommand(Path moduleOutputPath) { private ProcessBuilder buildiLeappListCommand(Path moduleOutputPath) {
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker( ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
"\"" + iLeappExecutable + "\"", //NON-NLS iLeappExecutable.getAbsolutePath(), //NON-NLS
"-p" "-p"
); );
processBuilder.redirectError(moduleOutputPath.resolve("iLeapp_paths_error.txt").toFile()); //NON-NLS processBuilder.redirectError(moduleOutputPath.resolve("iLeapp_paths_error.txt").toFile()); //NON-NLS