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

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

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

Javac.setCompiler介绍

[英]Choose the implementation for this particular task.
[中]选择此特定任务的实现。

代码示例

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

javac.setTaskName(getTaskName());
javac.setClasspath(classpath);
if (compiler != null) javac.setCompiler(compiler);
javac.setDebug(debug);
if (debugLevel != null) javac.setDebugLevel(debugLevel);

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

javac.setTaskName(getTaskName());
javac.setClasspath(classpath);
if (compiler != null) javac.setCompiler(compiler);
javac.setDebug(debug);
if (debugLevel != null) javac.setDebugLevel(debugLevel);

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

javac.setTaskName(getTaskName());
javac.setClasspath(classpath);
if (compiler != null) javac.setCompiler(compiler);
javac.setDebug(debug);
if (debugLevel != null) javac.setDebugLevel(debugLevel);

代码示例来源: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.setCompiler(options.getCompiler());
info.append("    compiler=" + options.getCompiler() + "\n");

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

javac.setCompiler(options.getCompiler());
info.append("    compiler=" + options.getCompiler() + "\n");

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

javac.setCompiler(options.getCompiler());
info.append("    compiler=" + options.getCompiler() + "\n");

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

javac.setCompiler(options.getCompiler());
info.append("    compiler=" + options.getCompiler() + "\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();
}

相关文章

微信公众号

最新文章

更多