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

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

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

Javac.setDebugLevel介绍

[英]Keyword list to be appended to the -g command-line switch. This will be ignored by all implementations except modern and classic(ver >= 1.2). Legal values are none or a comma-separated list of the following keywords: lines, vars, and source. If debuglevel is not specified, by default, :none will be appended to -g. If debug is not turned on, this attribute will be ignored.
[中]要附加到-g命令行开关的关键字列表。除了modern和classic(版本>=1.2)之外,所有实现都将忽略这一点。合法值为无或以下关键字的逗号分隔列表:行、变量和源。如果未指定debuglevel,默认情况下,:none将附加到-g。如果未启用调试,则将忽略此属性。

代码示例

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

if (compiler != null) javac.setCompiler(compiler);
javac.setDebug(debug);
if (debugLevel != null) javac.setDebugLevel(debugLevel);
javac.setDestdir(classgendir);
javac.setExecutable(forkedExecutable);

代码示例来源:origin: org.codehaus.castor/castor-testsuite-xml-framework

compiler.setOptimize(false);
compiler.setDebug(true);
compiler.setDebugLevel("lines,vars,source");
compiler.setIncludejavaruntime(true);
if (XMLTestCase._verbose) {

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

if (compiler != null) javac.setCompiler(compiler);
javac.setDebug(debug);
if (debugLevel != null) javac.setDebugLevel(debugLevel);
javac.setDestdir(classgendir);
javac.setExecutable(forkedExecutable);

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

if (compiler != null) javac.setCompiler(compiler);
javac.setDebug(debug);
if (debugLevel != null) javac.setDebugLevel(debugLevel);
javac.setDestdir(classgendir);
javac.setExecutable(forkedExecutable);

相关文章

微信公众号

最新文章

更多