Ant conditions - which comes first 'if' or 'unless'
问题 Question If an ant target uses both if and unless , which is evaluated first? Example What comes first, the chicken or the egg? . . . <target name="prepare" if="chicken" unless="egg" > <echo>Dinner time. Chicken is served!</echo> </target> Would ant evaluate the chicken property first? Or the egg property? 回答1: It isn't really a question of evaluation, since the properties either are or are not set before the target gets called. EDIT: I looked at the 1.8.1 source and the logic is as follows: