build.properties 补充:Eclipse插件中的compilerArg
build.properties addition: compilerArg in Eclipse plug-in
我想将以下编译器属性添加到我为 Lotus Notes 开发的 Eclipse 插件中,以便在发生异常时获取发生异常的行:
debug=true debuglevel=lines,vars,source
在看到 this question
之后,我认为这是执行此操作的最佳方法
所以我在 build.properties 文件中添加了这一行
compilerArg ="-debug=true -debuglevel=lines,vars,source "
不显示出现异常的行(仍然显示“Unknown Source”)
如有任何想法,我们将不胜感激。
编辑:我正在使用 Eclipse 运行 从更新站点项目构建。
Eclipse 使用 Eclipse 'ecj' 编译器而不是 'javac',因此您需要指定 'ecj' 理解的参数(参见 here)。所以 -g
或 -g:lines,vars,source
设置所有调试信息。
无头 pde 构建的模板位于每个 eclipse-sdk 中,位于
<eclipse-sdk>\plugins\org.eclipse.pde.build_<version>\templates\headless-build\build.properties
如果您遵循 PDE product build you should use the template from above inside <buildConfigurations>/build.properties
. Similar thing is described here for PDE feature builds 的说明。
呃,Lotus Notes 似乎默认隐藏了行号,尽管它们出现在 类:
http://lekkimworld.com/2010/04/14/java_class_line_numbers_for_plugin_developers.html
Line numbers are removed from the classes added to the shared class
cache to reduce the memory needed for the memory mapped classes. To
re-enable the line numbers, one needs to edit the
\framework\rcp\deploy\jvm.properties file and add comment out
the ignorelinenumbers vm argument.
我想将以下编译器属性添加到我为 Lotus Notes 开发的 Eclipse 插件中,以便在发生异常时获取发生异常的行:
debug=true debuglevel=lines,vars,source
在看到 this question
之后,我认为这是执行此操作的最佳方法所以我在 build.properties 文件中添加了这一行
compilerArg ="-debug=true -debuglevel=lines,vars,source "
不显示出现异常的行(仍然显示“Unknown Source”)
如有任何想法,我们将不胜感激。
编辑:我正在使用 Eclipse 运行 从更新站点项目构建。
Eclipse 使用 Eclipse 'ecj' 编译器而不是 'javac',因此您需要指定 'ecj' 理解的参数(参见 here)。所以 -g
或 -g:lines,vars,source
设置所有调试信息。
无头 pde 构建的模板位于每个 eclipse-sdk 中,位于
<eclipse-sdk>\plugins\org.eclipse.pde.build_<version>\templates\headless-build\build.properties
如果您遵循 PDE product build you should use the template from above inside <buildConfigurations>/build.properties
. Similar thing is described here for PDE feature builds 的说明。
呃,Lotus Notes 似乎默认隐藏了行号,尽管它们出现在 类:
http://lekkimworld.com/2010/04/14/java_class_line_numbers_for_plugin_developers.html
Line numbers are removed from the classes added to the shared class cache to reduce the memory needed for the memory mapped classes. To re-enable the line numbers, one needs to edit the \framework\rcp\deploy\jvm.properties file and add comment out the ignorelinenumbers vm argument.