ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r481329 - /ant/core/trunk/docs/manual/develop.html
Date Fri, 01 Dec 2006 18:10:21 GMT
Author: jglick
Date: Fri Dec  1 10:10:20 2006
New Revision: 481329

Forgot to document #41058!


Modified: ant/core/trunk/docs/manual/develop.html
--- ant/core/trunk/docs/manual/develop.html (original)
+++ ant/core/trunk/docs/manual/develop.html Fri Dec  1 10:10:20 2006
@@ -171,6 +171,15 @@
   inner <code>AddAsisRemove</code> class used in <code>setCr</code>
   for an example.</li>
+  <li>A (Java 5) enumeration. Ant will call the setter with the enum constant
+  matching the value given in the build file. This is easier than using
+  <code>EnumeratedAttribute</code> and can result in cleaner code, but of course
+  your task will not run on JDK 1.4 or earlier. Note that any override of
+  <code>toString()</code> in the enumeration is ignored; the build file must
+  the declared name (see <code>Enum.getName()</code>). You may wish to use lowercase
+  enum constant names, in contrast to usual Java style, to look better in build files.
+  <em>As of Ant 1.7.0.</em></li>
 <p>What happens if more than one setter method is present for a given

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message