ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/manifest core-ant-descriptor.xml
Date Sat, 29 Dec 2001 21:18:55 GMT
donaldp     01/12/29 13:18:55

  Modified:    proposal/myrmidon/src/manifest core-ant-descriptor.xml
  Log:
  Add a converter that converts between strings and org.apache.avalon.framework.Enums. It
is expected that the Enum class have two public static methods with the following signatures
  
  BlahEnum getByName(String name)
  (may return null or throw an IllegalArgumentException if bad name)
  
  String[] getNames()
  
  This is a replacement for EnumeratedAttribute that is more friendly to people who want to
use enums programatically.
  
  Revision  Changes    Path
  1.9       +3 -0      jakarta-ant/proposal/myrmidon/src/manifest/core-ant-descriptor.xml
  
  Index: core-ant-descriptor.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/manifest/core-ant-descriptor.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- core-ant-descriptor.xml	19 Dec 2001 10:38:48 -0000	1.8
  +++ core-ant-descriptor.xml	29 Dec 2001 21:18:55 -0000	1.9
  @@ -11,6 +11,9 @@
   
     <converters>
   
  +    <converter classname="org.apache.antlib.core.StringToEnumConverter"
  +               source="java.lang.String"
  +               destination="org.apache.avalon.framework.Enum" />
       <converter classname="org.apache.antlib.core.StringToFileConverter"
                  source="java.lang.String"
                  destination="java.io.File" />
  
  
  

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


Mime
View raw message