我需要将 -XdisableCastChecking 设置为 true 以构建 GWT 应用程序(使用 Eclipse)。
我知道如何编译应用程序,但我无法将 -XdisableCastChecking 设置为 true 以构建 war 文件(我正在使用 build.xml 和文件)。
有人知道如何将此标志包含到 ant 文件中吗?
先感谢您。阿尔西拉
我需要将 -XdisableCastChecking 设置为 true 以构建 GWT 应用程序(使用 Eclipse)。
我知道如何编译应用程序,但我无法将 -XdisableCastChecking 设置为 true 以构建 war 文件(我正在使用 build.xml 和文件)。
有人知道如何将此标志包含到 ant 文件中吗?
先感谢您。阿尔西拉
如果您使用的是由wepAppCreator生成的标准 build.xml ,那么您的 build.xml 顶部应该有类似下面的块的内容。修改gwt.args
添加要传递给 gwt 编译器的参数的行:
<?xml version="1.0" encoding="utf-8" ?>
<project name="myproject" default="build" basedir=".">
<!-- Arguments to gwtc and devmode targets -->
<property name="gwt.args" value="-XdisableCastChecking" />
[...]