Removed java classpath configuration.

This commit is contained in:
MobiusDevelopment
2019-04-12 18:16:50 +00:00
parent 988fc150ac
commit 8b77a39aaf
36 changed files with 24 additions and 240 deletions

View File

@@ -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.

View File

@@ -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());
}
}