use of com.hazelcast.simulator.utils.CommandLineExitException in project hazelcast-simulator by hazelcast.
the class WizardUtils method getProfileFile.
static File getProfileFile(String directory) {
File zshrcFile = new File(directory, ".zshrc");
if (zshrcFile.isFile()) {
return zshrcFile;
}
File bashrcFile = new File(directory, ".bashrc");
if (bashrcFile.isFile()) {
return bashrcFile;
}
File profileFile = new File(directory, ".profile");
if (profileFile.isFile()) {
return profileFile;
}
throw new CommandLineExitException("Could not find one of .zshrc, .bashrc or .profile files" + " under directory '" + directory + "`" + " Installation not supported on this system!");
}
Aggregations