Skip to content

Commit

Permalink
测试时,编译api,生成所有的debug信息
Browse files Browse the repository at this point in the history
  • Loading branch information
石源 committed Mar 30, 2018
1 parent 8d0b00a commit 4edcf1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/nlpcn/jcoder/run/java/DynamicEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.common.base.Joiner;
import org.nlpcn.jcoder.run.CodeException;
import org.nlpcn.jcoder.scheduler.TaskException;
import org.nlpcn.jcoder.util.StaticValue;
import org.nlpcn.jcoder.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -89,6 +90,9 @@ public Class<?> javaCodeToClass(String fullClassName, String javaCode) throws IO
options.add("-classpath");
options.add(this.classpath);
options.add("-parameters");
if (StaticValue.TESTRING) {
options.add("-g");
}

JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, jfiles);
boolean success = task.call();
Expand Down

0 comments on commit 4edcf1f

Please sign in to comment.