解决ant编译中出现“includeantruntime|解决ant编译中出现“includeantruntime was not set”警告的问题
ant编译报错如下:
compile:
[javac] D:\workspace\bits_core\build.xml:70: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds
【解决ant编译中出现“includeantruntime|解决ant编译中出现“includeantruntime was not set”警告的问题】解决方法:只需要根据提示在javac任务中添加includeAntRuntime="false"属性即可。例如:
修改前:
修改后:
注:
1.对于includeAntRuntime属性,官方的解释如下:
Whether to include the Ant run-time libraries in the classpath;
defaults to yes, unless build.sysclasspath is set. It is usually best to set this to false so the script's behavior is not sensitive to the environment in which it is run.
2.此警告在较早的ant版本中可能不会出现,当前用的版本是:Apache Ant(TM) version 1.8.2 compiled on December 20 2010。所以此问题跟ant版本有关。
推荐阅读
- parallels|parallels desktop 解决网络初始化失败问题
- 考研英语阅读终极解决方案——阅读理解如何巧拿高分
- MybatisPlus|MybatisPlus LambdaQueryWrapper使用int默认值的坑及解决
- 基于|基于 antd 风格的 element-table + pagination 的二次封装
- SpringBoot调用公共模块的自定义注解失效的解决
- 解决SpringBoot引用别的模块无法注入的问题
- Spark|Spark 数据倾斜及其解决方案
- 解决SyntaxError:|解决SyntaxError: invalid syntax
- Spectrum|Spectrum 区块偶尔停止同步问题排查与解决笔记
- 一劳永逸地解决词汇量不够的问题