* @param args
*/
public static void main(String[] args) {
// init logging
Logging logging = new Logging();
logging.init();
// parse params
boolean hasCommands = false;
String commandString = null;
String indexString = null;
boolean enableLogfile = false;
for (int i = 0; i < args.length; i++) {
String arg = args[i];
if (arg.startsWith("enable_logfile")) {
enableLogfile = true;
}
else {
if (commandString == null) {
hasCommands = true;
commandString = arg;
}
else {
indexString = arg;
}
}
}
// add logfile logger if enable_logfile option as startargument
if (enableLogfile) {
logging.addFileLogger();
}
// Environment
Environment env = Environment.getInstance();
// FileEnvironment