ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Dimock <>
Subject RE: proposing
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"

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"\>

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

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

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

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

View raw message