我有一个 github 存储库,运行 Java 和 JUnit,我也想运行 lint4j。我的项目建立在 travis-ci 上。
但是,lint 失败了:
BUILD FAILED
/home/travis/build/jvoller/SPDDB/build.xml:39: Problem: failed to create task or type lint4j
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.
我的 ANT 脚本有什么问题?
<target name="lint" description="runs lint4j on source files" >
<mkdir dir = "tmp" />
<lint4j sourcepath="src"
classpath="lib/junit-4.11.jar"
packages="${main.src.dir}.*"
level="5"
exact="false" >
<formatters>
<formatter type="text" />
<formatter type="text" toFile="tmp/lint.out"/>
</formatters>
</lint4j>
</target>