ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian M. Savage" <jsav...@fisci.com>
Subject Re: Output file attribute for <java> task?
Date Sun, 01 Oct 2000 09:31:02 GMT
I was thinking after submiting my patch for CVS (that redirects output or
error to a file) that it might make sense to be able to redirect output for
any task, rather than reimplementing this functionality for tasks on an ad
hoc manner.

I notice that the <echo/> task simply specifies "file" as the output file,
however, I think that if it is generalized, there should be an output,
error, and perhaps input file.

However, I think that it is a good idea to have an option to append, perhaps
implemented as in the echo task using a boolean append. ie, <echo/>
currently seems to work something like this:
<echo message="Eat at Al's" file="eat.txt" append="yes"/>

Julian.

----- Original Message -----
From: "Diane Holt" <holtdl@yahoo.com>
To: <ant-dev@jakarta.apache.org>
Sent: Sunday, October 01, 2000 12:11 PM
Subject: RE: Output file attribute for <java> task?


> --- Jose  Alberto Fernandez <JFernandez@viquity.com> wrote:
> > In the last week we have seen adding outfile attribute to <echo>,
> > <exec>, and the list keeps on growing. It looks like this is a
> > generalized need that probably should be done at the Task level and get
> > all tasks able to use this functionality.
> >
> > I am thinking on having Task.getOutputStream() which will return the
> > correct output stream depending of the value for "outfile"
> > or "appendfile". What do people thing about this?
>
> I like the idea -- having it be consistent across all the tasks would be a
> good thing, and "appendfile" would be a nice addition. I have several
> targets I'm putting together now that I'd really like to have their output
> going to a single output file, not as part of all the logging output from
> ant redirected but just the output they produce going into their own
> output file, so having "outfile" and "appendfile" generally available
> would come in very handy.
>
> Diane
>
> =====
> (holtdl@yahoo.com)
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
> http://photos.yahoo.com/
>


Mime
View raw message