Erik Hatcher wrote:

On Feb 27, 2005, at 9:28 AM, Drew Davidson wrote:

I have an ant task that writes a property file based on a prefix.


For a frequent basher of Ant, it might behoove you to know the enemy well:

<project name="propfile">
  <property name="hibernate.whatever" value="Drew"/>
  <echoproperties destfile="hibernate.properties" prefix="hibernate."/>
</project>

True that this misses the original point, as does your task, of keeping the comments intact. <echoproperties> also supports the <propertyset>'s, which allow lots of control over which properties are selected, not just by prefix.

Great, just try to find it in

   http://ant.apache.org/manual/index.html

Oh, it's in "Optional Tasks": what does that mean? Only with the ant optional jar? How do I know someone will have that who tries to use my build file? Why is it optional? Which Ant developer made the arbitrary decision that this "echoproperties" gem should be "optional" instead of "core"?

The documentation is IMPOSSIBLE TO NAVIGATE. I wish that I'd saved myself the time and effort to write this because Ant's documentation was written and organized by a 4 year old. Thanks for making me angrier.

As to "For a frequent basher of Ant, it might behoove you to know the enemy well" I really don't want to have to grovel through a big, unorganized heap of incredibly badly written documentation to find this. The fact that I didn't find this (and I was looking) and Chad didn't find it might make you think that maybe it's the fault of the lousy documentation, not the searcher. The docs are all just a big bag of stuff with no organizations or explainations. How the hell am I supposed to know to look in "Optional Tasks" instead of "Core Tasks"???

- Drew

--
+---------------------------------+
< Drew Davidson | OGNL Technology >
+---------------------------------+
|  Email: [EMAIL PROTECTED]          /
|    Web: http://www.ognl.org   /
|    Vox: (520) 531-1966       <
|    Fax: (520) 531-1965        \
| Mobile: (520) 405-2967         \
+---------------------------------+


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to