src/main/java/de/vandermeer/execs/Gen_RunScripts.java
protected final int initConfiguration(){
		String propFile = this.optionPropFile.getValue();

		this.configuration = this.loadProperties(propFile);
		if(this.configuration==null){
			System.err.println(this.getAppName() + ": could not load configuration properties from file <" + propFile + ">, exiting");
			return -1;
		}

		if(this.configuration.get(PROP_RUN_SCRIPT_NAME)==null){
			System.err.println(this.getAppName() + ": configuration does not contain key <" + PROP_RUN_SCRIPT_NAME + ">, exiting");
			return -1;
		}
		if(this.configuration.get(PROP_RUN_CLASS)==null){
			System.err.println(this.getAppName() + ": configuration does not contain key <" + PROP_RUN_CLASS + ">, exiting");
			return -1;
		}
		if(this.configuration.get(PROP_JAVA_CP)==null){
			System.err.println(this.getAppName() + ": configuration does not contain key <" + PROP_JAVA_CP + ">, exiting");
			return -1;
		}

		System.out.println(this.getAppName() + ": using configuration: ");
		System.out.println("  - run script name: " + this.configuration.get(PROP_RUN_SCRIPT_NAME));
		System.out.println("  - run class      : " + this.configuration.get(PROP_RUN_CLASS));
		System.out.println("  - java cp        : " + this.configuration.get(PROP_JAVA_CP));
		System.out.println("  - auto-gen reg   : " + this.configuration.get(PROP_EXECS_AUTOGEN_REGISTERED));

		for(Object key : this.configuration.keySet()){
			if(StringUtils.startsWith(key.toString(), PROP_JAVAPROP_START)){
				System.out.println("  - java property  : " + key + " = " + this.configuration.getProperty(key.toString()));
			}
		}
		System.out.println();

		return 0;
	}
protected final int initConfiguration(){
		String propFile = this.optionPropFile.getValue();

		this.configuration = this.loadProperties(propFile);
		if(this.configuration==null){
			System.err.println(this.getAppName() + ": could not load configuration properties from file <" + propFile + ">, exiting");
			return -1;
		}

		if(this.configuration.get(PROP_RUN_SCRIPT_NAME)==null){
			System.err.println(this.getAppName() + ": configuration does not contain key <" + PROP_RUN_SCRIPT_NAME + ">, exiting");
			return -1;
		}
		if(this.configuration.get(PROP_RUN_CLASS)==null){
			System.err.println(this.getAppName() + ": configuration does not contain key <" + PROP_RUN_CLASS + ">, exiting");
			return -1;
		}
		if(this.configuration.get(PROP_JAVA_CP)==null){
			System.err.println(this.getAppName() + ": configuration does not contain key <" + PROP_JAVA_CP + ">, exiting");
			return -1;
		}

		System.out.println(this.getAppName() + ": using configuration: ");
		System.out.println("  - run script name: " + this.configuration.get(PROP_RUN_SCRIPT_NAME));
		System.out.println("  - run class      : " + this.configuration.get(PROP_RUN_CLASS));
		System.out.println("  - java cp        : " + this.configuration.get(PROP_JAVA_CP));
		System.out.println("  - auto-gen reg   : " + this.configuration.get(PROP_EXECS_AUTOGEN_REGISTERED));

		for(Object key : this.configuration.keySet()){
			if(StringUtils.startsWith(key.toString(), PROP_JAVAPROP_START)){
				System.out.println("  - java property  : " + key + " = " + this.configuration.getProperty(key.toString()));
			}
		}
		System.out.println();

		return 0;
	}
Loads and tests the configuration from configuration properties file.
The default configuration file name is "de/vandermeer/execs/configuration.properties".
The file name can be overwritten using the "--property-file" CLI option.
The method will also test for some configuration keys to exist and fail if they are not defined.
@return 0 on success with configuration loaded, -1 on error with errors printed on standard error