Преглед на файлове

Allow debug information from dynamically compiled scripts

Zoey76 преди 5 години
родител
ревизия
76186e942a
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      .gitignore
  2. 1 1
      src/main/java/com/l2jserver/gameserver/scripting/ScriptEngineManager.java

+ 1 - 0
.gitignore

@@ -4,5 +4,6 @@
 .idea/
 target/
 logs/
+log/
 test-output/
 hexid.txt

+ 1 - 1
src/main/java/com/l2jserver/gameserver/scripting/ScriptEngineManager.java

@@ -58,7 +58,7 @@ public final class ScriptEngineManager {
 	};
 	
 	private static final InMemoryJavaCompiler COMPILER = InMemoryJavaCompiler.newInstance() //
-		.useOptions("-classpath", CLASS_PATH) //
+		.useOptions("-classpath", CLASS_PATH, "-g") //
 		.ignoreWarnings();
 	
 	public void executeScriptList(File list) throws Exception {