Skip to content

Commit

Permalink
'#43 prints aleapp dir log info only once
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Feb 6, 2024
1 parent 2c83cec commit 3c61144
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,19 @@ public void executePlugin(IItem evidence, LeapArtifactsPlugin p, List<String> fi
}

private File getAleappScriptsDir() {
if (config.getAleapScriptsDir() != null) {
aleappDir = new File(config.getAleapScriptsDir());
} else {
File pythonDir = new File(Configuration.getInstance().appRoot, "tools");
aleappDir = new File(pythonDir, "ALEAPP");
}
if (aleappDir == null) {
if (config.getAleapScriptsDir() != null) {
aleappDir = new File(config.getAleapScriptsDir());
} else {
File pythonDir = new File(Configuration.getInstance().appRoot, "tools");
aleappDir = new File(pythonDir, "ALEAPP");
}

try {
logger.info("ALeapp scripts dir:" + aleappDir.getCanonicalPath());
} catch (IOException e) {
e.printStackTrace();
try {
logger.info("ALeapp scripts dir:" + aleappDir.getCanonicalPath());
} catch (IOException e) {
e.printStackTrace();
}
}

return aleappDir;
Expand Down

0 comments on commit 3c61144

Please sign in to comment.