Ant JUnit task: Is there a difference between on, yes, and true?
问题 TL;DR: To enable an Ant feature, is there a difference between on , yes , and true ? I cannot find any documentation regarding this matter. We have some Ant build scripts that seem to randomly pick between: on yes and true to enable various Ant JUnit features. Example attributes: fork and haltonerror Ref: http://ant.apache.org/manual/Tasks/junit.html 回答1: From http://ant.apache.org/manual/develop.html: The most common way to write an attribute setter is to use a java.lang.String argument. In