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

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

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

Javac.setTarget介绍

[英]Sets the target VM that the classes will be compiled for. Valid values depend on the compiler, for jdk 1.4 the valid values are "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9" and any integral number bigger than 4
[中]设置将为其编译类的目标VM。有效值取决于编译器,对于JDK1.4,有效值为“1.1”、“1.2”、“1.3”、“1.4”、“1.5”、“1.6”、“1.7”、“1.8”、“1.9”以及任何大于4的整数

代码示例

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

javac.setTarget(javasource);
javac.setTarget("1.4");

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

public void setTargetVM(String targetVM) {
  javac.setTarget(targetVM);
  info.append("   compilerTargetVM=" + targetVM + "\n");
}

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

public void setTargetVM(String targetVM) {
  javac.setTarget(targetVM);
  info.append("   compilerTargetVM=" + targetVM + "\n");
}

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

javac.setTarget(javasource);
javac.setTarget("1.4");

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

javac.setTarget(javasource);
javac.setTarget("1.4");

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

javac.setTarget(options.getCompilerTargetVM());
info.append("   compilerTargetVM=" + options.getCompilerTargetVM() + "\n");

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

javac.setTarget(options.getCompilerTargetVM());
info.append("   compilerTargetVM=" + options.getCompilerTargetVM() + "\n");

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

javac.setTarget(options.getCompilerTargetVM());
info.append("   compilerTargetVM=" + options.getCompilerTargetVM() + "\n");

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

javac.setTarget(options.getCompilerTargetVM());
info.append("   compilerTargetVM=" + options.getCompilerTargetVM() + "\n");

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

j.setTarget(javaVersion);
j.setSource(javaVersion);
if (jckit.isVersion(JavaCardSDK.Version.V21)) {

相关文章