title: Ant unless attribute not working?
body: <p>I must be not understanding the <code>unless</code> attribute properly. I have a properties file that has a property as follows:</p>
  
  <pre><code>module.project.enabled=false
  module.finance.enabled=true
  </code></pre>
  
  <p>And in my Ant build file I have the following piece</p>
  
  <pre><code>&lt;echo message="Finance module enabled is ${module.finance.enabled}"/&gt;
  &lt;echo message="Project module enabled is ${module.project.enabled}"/&gt;
  &lt;javac srcdir="src" destdir="${classes}" debug="true"&gt;
      &lt;classpath&gt;
          &lt;pathelement path="src"/&gt;
          &lt;fileset dir="web/WEB-INF/lib" includes="*.jar"/&gt;
          &lt;fileset dir="lib" includes="*.jar"/&gt;
          &lt;fileset dir="${GWT.HOME}" includes="gwt-user.jar,gwt-servlet.jar"/&gt;
      &lt;/classpath&gt;
      &lt;exclude name="bla/finance/*.java" unless="${module.finance.enabled}"/&gt;
      &lt;exclude name="bla/project/*.java" unless="${module.project.enabled}"/&gt;
  &lt;/javac&gt;
  </code></pre>
  
  <p>When running my ant target the properties do seem to be read</p>
  
  <pre><code> [echo] Finance module enabled is true
   [echo] Project module enabled is false
  </code></pre>
  
  <p>But when I look at the <code>${classes}</code> directory I would have expected to see no classes in the project package and classes in the finance package but alas it seems to be excluding both packages?</p>