org.apache.tools.ant.taskdefs.Javac.setFork()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中org.apache.tools.ant.taskdefs.Javac.setFork()方法的一些代码示例,展示了Javac.setFork()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javac.setFork()方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Javac
类名称:Javac
方法名:setFork

Javac.setFork介绍

[英]If true, forks the javac compiler.
[中]如果为true,则分叉javac编译器。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

javac.setExecutable(forkedExecutable);
javac.setFailonerror(failonerror);
javac.setFork(fork);
if (javasource != null)

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

javac.setExecutable(forkedExecutable);
javac.setFailonerror(failonerror);
javac.setFork(fork);
if (javasource != null)

代码示例来源:origin: com.github.pjfanning/xmlbeans

javac.setExecutable(forkedExecutable);
javac.setFailonerror(failonerror);
javac.setFork(fork);
if (javasource != null)

代码示例来源:origin: org.tinygroup/org.tinygroup.jspengine

public void init(JspCompilationContext ctxt,
         ErrorDispatcher errDispatcher,
         boolean suppressLogging) {
  this.ctxt = ctxt;
  this.errDispatcher = errDispatcher;
  options = ctxt.getOptions();
  log = suppressLogging ?
      new org.tinygroup.jspengine.org.apache.commons.logging.impl.NoOpLog() :
      org.tinygroup.jspengine.org.apache.commons.logging.LogFactory.getLog(
          AntJavaCompiler.class);
  getProject();
  javac = (Javac) project.createTask("javac");
  javac.setFork(options.getFork());
  // Set the Java compiler to use
  if (options.getCompiler() != null) {
    javac.setCompiler(options.getCompiler());
  }
  startThreadPool();
}

代码示例来源:origin: org.apache.tomcat/tomcat-jasper

javac.setSrcdir(srcPath);
javac.setTempdir(options.getScratchDir());
javac.setFork(ctxt.getOptions().getFork());
info.append("    srcDir=" + srcPath + "\n" );

代码示例来源:origin: codefollower/Tomcat-Research

javac.setTempdir(options.getScratchDir());
javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );
javac.setFork(ctxt.getOptions().getFork());
info.append("    srcDir=" + srcPath + "\n" );

代码示例来源:origin: org.apache.geronimo.ext.tomcat/jasper

javac.setTempdir(options.getScratchDir());
javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );
javac.setFork(ctxt.getOptions().getFork());
info.append("    srcDir=" + srcPath + "\n" );

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

javac.setTempdir(options.getScratchDir());
javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );
javac.setFork(ctxt.getOptions().getFork());
info.append("    srcDir=" + srcPath + "\n" );

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1

public void init(JspCompilationContext ctxt,
         ErrorDispatcher errDispatcher,
         boolean suppressLogging) {
  this.ctxt = ctxt;
  this.errDispatcher = errDispatcher;
  options = ctxt.getOptions();
  log = suppressLogging?
    new com.sun.org.apache.commons.logging.impl.NoOpLog():
    com.sun.org.apache.commons.logging.LogFactory.getLog(
      AntJavaCompiler.class);
  getProject();
  javac = (Javac) project.createTask("javac");
  javac.setFork(options.getFork());
  // Set the Java compiler to use
  if (options.getCompiler() != null) {
    javac.setCompiler(options.getCompiler());
  }
  startThreadPool();
}

代码示例来源:origin: martinpaljak/ant-javacard

j.setFork(true);

相关文章