Removed java classpath configuration.
This commit is contained in:
		| @@ -51,10 +51,6 @@ public final class JavaExecutionContext extends JavaScriptingEngine | ||||
| 		// Set options. | ||||
| 		addOptionIfNotNull(_options, getProperty("source"), "-source"); | ||||
| 		addOptionIfNotNull(_options, getProperty("sourcepath"), "-sourcepath"); | ||||
| 		if (!addOptionIfNotNull(_options, getProperty("cp"), "-cp") && !addOptionIfNotNull(_options, getProperty("classpath"), "-classpath")) | ||||
| 		{ | ||||
| 			addOptionIfNotNull(_options, System.getProperty("java.class.path"), "-cp"); | ||||
| 		} | ||||
| 		addOptionIfNotNull(_options, getProperty("g"), "-g:"); | ||||
| 		 | ||||
| 		// We always set the target JVM to the current running version. | ||||
|   | ||||
| @@ -52,15 +52,7 @@ public class JavaScriptingEngine | ||||
| 		// Set properties. | ||||
| 		for (Entry<Object, Object> prop : props.entrySet()) | ||||
| 		{ | ||||
| 			String key = (String) prop.getKey(); | ||||
| 			String value = (String) prop.getValue(); | ||||
| 			 | ||||
| 			if (value.startsWith("%") && value.endsWith("%")) | ||||
| 			{ | ||||
| 				value = System.getProperty(value.substring(1, value.length() - 1)); | ||||
| 			} | ||||
| 			 | ||||
| 			_properties.put(key, value); | ||||
| 			_properties.put((String) prop.getKey(), (String) prop.getValue()); | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment