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

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

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

Javac.createCompilerArg介绍

[英]Adds an implementation specific command-line argument.
[中]添加特定于实现的命令行参数。

代码示例

代码示例来源:origin: stackoverflow.com

Javac javaCompile = (Javac) webServiceProject.createTask("javac");
javaCompile.createCompilerArg().setValue("-Xstdout");
String filePath = basePath + "resources" + File.separator
    + "errorlog.log";
javaCompile.createCompilerArg().setFile(new File(filePath));
javaCompile.setNowarn(true);

代码示例来源:origin: javaee/metro-jax-ws

/**
   * Performs a compile using the Javac externally.
   *
   * @throws BuildException if there is a problem.
   */
  public void execute() throws BuildException {
    ImplementationSpecificArgument argument = super.createCompilerArg();
    argument.setLine("-processor " + WebServiceAp.class.getName());
    argument = super.createCompilerArg();
    argument.setLine("-s " + sourceDestDir);
    if (procOnly) {
      argument = super.createCompilerArg();
      argument.setLine("-proc:only");
    }
    super.execute();
  }
}

代码示例来源:origin: com.sun.xml.ws/jaxws-tools

/**
   * Performs a compile using the Javac externally.
   *
   * @throws BuildException if there is a problem.
   */
  public void execute() throws BuildException {
    ImplementationSpecificArgument argument = super.createCompilerArg();
    argument.setLine("-processor " + WebServiceAp.class.getName());
    argument = super.createCompilerArg();
    argument.setLine("-s " + sourceDestDir);
    if (procOnly) {
      argument = super.createCompilerArg();
      argument.setLine("-proc:only");
    }
    super.execute();
  }
}

代码示例来源:origin: javaee/metro-jax-ws

/**
   * Performs a compile using the Javac externally.
   *
   * @throws BuildException if there is a problem.
   */
  public void execute() throws BuildException {
    ImplementationSpecificArgument argument = super.createCompilerArg();
    argument.setLine("-processor " + WebServiceAp.class.getName());
    argument = super.createCompilerArg();
    argument.setLine("-s " + sourceDestDir);
    if (procOnly) {
      argument = super.createCompilerArg();
      argument.setLine("-proc:only");
    }
    super.execute();
  }
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

/**
   * Performs a compile using the Javac externally.
   *
   * @throws BuildException if there is a problem.
   */
  public void execute() throws BuildException {
    ImplementationSpecificArgument argument = super.createCompilerArg();
    argument.setLine("-processor " + WebServiceAp.class.getName());
    argument = super.createCompilerArg();
    argument.setLine("-s " + sourceDestDir);
    if (procOnly) {
      argument = super.createCompilerArg();
      argument.setLine("-proc:only");
    }
    super.execute();
  }
}

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

j.createCompilerArg().setValue("-Xlint");
j.createCompilerArg().setValue("-Xlint:-options");
j.createCompilerArg().setValue("-Xlint:-serial");
if (jckit.getVersion() == JavaCardSDK.Version.V304) {
  j.createCompilerArg().setLine("-processor com.oracle.javacard.stringproc.StringConstantsProcessor");
  Path pcp = new Javac().createClasspath();
  for (File jar : jckit.getCompilerJars()) {
    pcp.append(new Path(project, jar.getPath()));
  j.createCompilerArg().setLine("-processorpath \"" + pcp.toString() + "\"");
  j.createCompilerArg().setValue("-Xlint:all,-processing");

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

if(endorsed != null) {
  Javac.ImplementationSpecificArgument endorsedArg =
    javac.createCompilerArg();
  endorsedArg.setLine("-J-Djava.endorsed.dirs=" +
      quotePathList(endorsed));

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

if(endorsed != null) {
  Javac.ImplementationSpecificArgument endorsedArg = 
    javac.createCompilerArg();
  endorsedArg.setLine("-J-Djava.endorsed.dirs=" +
      quotePathList(endorsed));

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

if(endorsed != null) {
  Javac.ImplementationSpecificArgument endorsedArg = 
    javac.createCompilerArg();
  endorsedArg.setLine("-J-Djava.endorsed.dirs=" +
      quotePathList(endorsed));

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

if(endorsed != null) {
  Javac.ImplementationSpecificArgument endorsedArg =
    javac.createCompilerArg();
  endorsedArg.setLine("-J-Djava.endorsed.dirs=" +
      quotePathList(endorsed));

相关文章