ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Dimock <t...@cornell.edu>
Subject RE: proposing TaskUtil.java
Date Wed, 28 Jun 2000 16:49:10 GMT
At 11:31 AM 06/28/2000 -0400, Tim wrote:
>What would you prefer:
>
><available classname="org.whatever.MyClass,org.whatever.MyClass2"
>property="myclasses.present"
>/>

Ugly, becomes very difficult to read if the list gets very long.

><available property="myclasses.present">
>       <resource classname="org.whatever.MyClass"\>
>	 <resource classname="org.whatever.MyClass2"\>
></available>

Much more readable.  Should the inner tag be <resource
classname="whatever"/> or <class name="whatever"/>?  The latter would seem
to allow for fairly straightforward extension to other resource types.  Or
maybe

<available property="myclasses.present">
       <resource.class name="org.whatever.MyClass"\>
	<resource.class name="org.whatever.MyClass2"\>
</available>

which retains the extensibility, but still makes it clear that this is a
resoucre check...

----------------------------------------------------------------------------
       Tom Dimock  ----  Cornell University  ----  tad1@cornell.edu
"There go my people.  I must follow them, for I am their leader."  M. Gandhi

Mime
View raw message