我有一个非常,非常简单的任何构建脚本:为什么这个简单的ant文件在Eclipse中被标记为错误?
<project name="quiz_jar" default="all">
<target name="all">
<jar destfile="/home/mike/export/quiz_all.jar" duplicate="preserve">
<archives>
<zips>
<files includes="/home/mike/export/quiz.jar" />
<files includes="/home/mike/download/jeuclid-3.1.9/repo/*.jar" />
</zips>
</archives>
<manifest>
<attribute name="Main-Class" value="com.antlersoft.quiz.ui.QuizFrame"/>
</manifest>
</jar>
</target>
</project>
,当我运行它在Eclipse的Ant任务(或命令行)
但它工作正常,在问题选项卡,其上标有以下错误:
Default target all does not exist in this project
不是因为最后没有--这是在问题中,但只显示在编辑页面上,而不是当问题被查看时(这将是一个堆栈交换错误...)我添加了一些空格现在收盘出现。 – antlersoft