eclipse - Problem: failed to create task or type workspacePreferenceFile
问题描述
I'm quite new with ANT to build an Eclipse (Oxygen) project. I'm using existing build.xml file which previously written in RAD environment.
Here is my workspacePreferenceFile
;
<workspacePreferenceFile
preferenceFileName="${rad.preferences.filename}"
useEclipsePrefs="true"
overwrite="true" />
Here is my ${rad.preferences.filename}
compiler.problem.unusedImport=ignore
compiler.compliance=1.8
compiler.source=1.8
And here is the error
BUILD FAILED
Problem: failed to create task or type workspacePreferenceFile
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Any idea? Thanks!
解决方案
workspacePreferenceFile
is only available in IBM RAD, it is not in standard Eclipse.
Eclipse preferences files use the normal Java property file format so you may be able to use the standard Ant property
task.
推荐阅读
- azure-devops - 我可以在 Azure DevOps 管道库中的变量组中强制使用相同的变量吗?
- mysql - 使用类似外键的 CASE 语句更新
- r - 和有什么区别
在 BASH 和 在 R? - node.js - 使用 Stripe 向银行账户汇款 | 节点JS
- c++ - 如何在不使用任何特殊头文件的情况下序列化可能包含 C++ 中用户定义类的其他对象的对象?
- json - 牛顿软件。json serializeObject 字符串包含小数值似乎没有正确转义
- javascript - 你如何在JS中传递参数?
- haskell - 如何在 Haskell 中编写密码强度测试程序?
- php - Laravel:在数据库中创建具有类别的新产品
- java - 将字符串格式的数字转换为整数格式(Java)