ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingmar J Stein" <>
Subject echoproperties
Date Tue, 07 May 2002 07:14:52 GMT
> Shouldn't we change the subject of this thread?

done :-)

> I looked over the code this weekend.  Overall, looks good.  As for the new
> formatting, I was imagining something more generic, similar to how the
> task handles the Formatter: move the actual output code into its own class
> (which may be reused easily by other tasks), have two defaults ("xml" and
> "text"), and allow for the user to specify their own class if they want
> something else.  Of course, that may be overkill for this small task :-)

Yes, this is what I meant when I was talking about a common interface
that both property writers implement. If noone comes up with another
property file format, then I think we should stick to the current solution.
Factoring out the i/o functions does not give us any additional benefit
now and as you said it, it's overkill for this small task.

> The "srcfile" is an interesting addition.  I like it.  Will there be a
> future need/want to load the XML formatted properties here?

I don't see that need right now, but it might be a good idea to
merge xmlproperties and echoproperties. I can imagine a single
task that reads and writes property files in either text or XML format.

> Here are the things that stood out: the property file reading doesn't
> the "failonerror" flag

Right. I will fix that.

> no document updates :)

Dammit, you noticed that :-)

> the loading of the
> Properties object from the project Hashtable relies on a JDK 1.2 API
> (putAll).

Yeah, that's why it's an optional task, isn't it?

> I like your tests.  I couldn't figure a good way to check the XML
> generation, but your "indexOf" is good.  My only suggestion is to create
> in the "setup" target through the <echo
> file=""> task, and delete it in the "cleanup"
> target.  Yours isn't wrong, but this just eliminates one more external
> dependency in the tests.

Mmh, that's a matter of taste. Personally, I don't like to regenerate static
files every time I run a test, but if that's ant's test writing policy, I
will change
it at once.

> I've included my document changes. Due the to the HTML stripping, I've
> zipped it up.  Unfortunately, from work my CVS access is blocked by the
> firewall, so I couldn't get a proper diff.  Is there an xdocs version I
> should be modding for v1.6 instead?

Hmm, anyone?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message