package com.lazerycode.jmeter.properties;

/**
 * An Enum holding a list of reserved properties.
 * Properties configured here may not be set by client configuration.
 *
 * @author Mark Collin
 */
public enum ReservedProperties {

	JAVA_CLASS_PATH("java.class.path", null),
	USER_DIR("user.dir", null),
	JMETERENGINE_REMOTE_SYSTEM_EXIT("jmeterengine.remote.system.exit", "false"),
	JMETERENGINE_STOPFAIL_SYSTEM_EXIT("jmeterengine.stopfail.system.exit", "false");

	private final String propertyKey;
	private final String requiredValue;

	ReservedProperties(String propertyKey, String requiredValue) {
		this.propertyKey = propertyKey;
		this.requiredValue = requiredValue;
	}

	public String getPropertyKey() {
		return propertyKey;
	}

	public String getRequiredValue() {
		return requiredValue;
	}
}

@@ -224,17 +224,20 @@
 ties %7B%0A%0A
-%09
+    
 JAVA_CLA
@@ -261,26 +261,23 @@
 ss.path%22
-, null),%0A%09
+),%0A    
 USER_DIR
@@ -291,18 +291,15 @@
 dir%22
-, null),%0A%09
+),%0A    
 JMET
@@ -363,21 +363,15 @@
 xit%22
-, %22false%22),%0A%09
+),%0A    
 JMET
@@ -439,22 +439,16 @@
 xit%22
-, %22false%22);%0A%0A%09
+);%0A%0A    
 priv
@@ -481,47 +481,13 @@
 ey;%0A
-%09private final String requiredValue;%0A%0A%09
+%0A    
 Rese
@@ -523,36 +523,20 @@
 yKey
-, String requiredValue) %7B%0A%09%09
+) %7B%0A        
 this
@@ -567,51 +567,19 @@
 ey;%0A
-%09%09this.requiredValue = requiredValue;%0A%09%7D%0A%0A%09
+    %7D%0A%0A    
 publ
@@ -603,26 +603,32 @@
 ertyKey() %7B%0A
-%09%09
+        
 return prope
@@ -639,73 +639,12 @@
 ey;%0A
-%09%7D%0A%0A%09public String getRequiredValue() %7B%0A%09%09return requiredValue;%0A%09
+    
 %7D%0A%7D%0A

Remove obsolete ReservedProperties values