问题:无法创建任务或键入workspacePreferenceFile

问题描述 投票:0回答:1

我用Ant来构建一个Eclipse(氧气)项目很新。我使用这在以前写的RAD环境中存在的build.xml文件。

这里是我的workspacePreferenceFile;

<workspacePreferenceFile
  preferenceFileName="${rad.preferences.filename}"
  useEclipsePrefs="true"
  overwrite="true" />

这里是我的${rad.preferences.filename}

compiler.problem.unusedImport=ignore
compiler.compliance=1.8
compiler.source=1.8

这里是错误

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.

任何想法?谢谢!

eclipse ant
1个回答
1
投票

workspacePreferenceFile仅在IBM RAD可用,它是不是在标准的Eclipse。

Eclipse首选项文件使用普通的Java属性文件格式,因此你可以使用标准的Ant任务property

© www.soinside.com 2019 - 2024. All rights reserved.