MCPcopy Create free account
hub / github.com/annmuor/jnode / runCustomScript

Method runCustomScript

jnode-core/src/jnode/install/InstallUtil.java:358–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356 }
357
358 private void runCustomScript() throws IOException {
359 String customScriptFileName = MainHandler.getCurrentInstance().getProperty(MIGRATION_CUSTOMINITSCRIPT,
360 "");
361 if (customScriptFileName.length() > 0){
362 File f = new File(customScriptFileName);
363 if (f.exists()){
364 String scriptContent = FileUtils.readFile(customScriptFileName);
365 execQuery(scriptContent);
366 logger.l5(scriptContent + " = ok");
367 } else {
368 logger.l5(MessageFormat.format("custom script {0} not found", customScriptFileName));
369 }
370 }
371 }
372}

Callers 1

updateFromVersionMethod · 0.95

Calls 7

getCurrentInstanceMethod · 0.95
readFileMethod · 0.95
execQueryMethod · 0.95
getPropertyMethod · 0.80
existsMethod · 0.80
l5Method · 0.80
formatMethod · 0.80

Tested by

no test coverage detected