You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jg...@apache.org on 2006/12/01 19:10:21 UTC

svn commit: r481329 - /ant/core/trunk/docs/manual/develop.html

Author: jglick
Date: Fri Dec  1 10:10:20 2006
New Revision: 481329

URL: http://svn.apache.org/viewvc?view=rev&rev=481329
Log:
Forgot to document #41058!

Modified:
    ant/core/trunk/docs/manual/develop.html

Modified: ant/core/trunk/docs/manual/develop.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/develop.html?view=diff&rev=481329&r1=481328&r2=481329
==============================================================================
--- 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 use
+  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>
+
 </ul>
 
 <p>What happens if more than one setter method is present for a given



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org