// The process is a script - excellent!
String startScript = (serverParentProcessCommandLine.length > startScriptIndex) ? serverParentProcessCommandLine[startScriptIndex]
: null;
startScriptFile = new File(startScript);
if (!startScriptFile.isAbsolute()) {
ProcExe parentProcessExe = serverParentProcess.getExecutable();
if (parentProcessExe == null) {
// TODO: This isn't really generic
startScriptFile = new File("bin", startScriptFile.getName());
} else {
String cwd = parentProcessExe.getCwd();
startScriptFile = new File(cwd, startScriptFile.getPath());
startScriptFile = new File(FileUtils.getCanonicalPath(startScriptFile.getPath()));
}
}
} else {