You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Kev Jackson <ke...@it.fts-vn.com> on 2005/09/23 05:36:51 UTC
[exec] use of commons-logging
Hi,
I've been looking at the use of commons logging in exec. Coming from
ant dev, it would be nice to refactor ant to use the commons-exec
package, but Ant has it's own logging mechanism (using logging
listeners), and I'm pretty sure that the ant code base will not change
to using commons-logging throughout except as the listener, and as far
as I'm aware the ant team want to keep the ant bootstrap as minimal as
possible (require nothing but an xml parser and a jdk). [1]
There's also the problem of the minimum version of Java supported by
commons-exec, though this looks like it will be less of a problem.
Still it would be nice to use these components in more than one place so
that changes/fixes don't have to be copied about, I'm just not too sure
that it will happen anytime soon
[1]http://marc.theaimsgroup.com/?l=ant-dev&m=112729258826251&w=2
Kev
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [exec] use of commons-logging
Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Fri, 2005-09-23 at 14:50 +0200, jerome lacoste wrote:
> On 9/23/05, Trygve Laugstøl <tr...@codehaus.org> wrote:
> > On Fri, 2005-09-23 at 10:36 +0700, Kev Jackson wrote:
> > > Hi,
> > >
> > > I've been looking at the use of commons logging in exec. Coming from
> > > ant dev, it would be nice to refactor ant to use the commons-exec
> > > package, but Ant has it's own logging mechanism (using logging
> > > listeners), and I'm pretty sure that the ant code base will not change
> > > to using commons-logging throughout except as the listener, and as far
> > > as I'm aware the ant team want to keep the ant bootstrap as minimal as
> > > possible (require nothing but an xml parser and a jdk). [1]
> > >
> > > There's also the problem of the minimum version of Java supported by
> > > commons-exec, though this looks like it will be less of a problem.
> >
> > I'm concerned about this issue too and have been looking into ways to
> > automate the testing to make sure that we're not using any JDK1.3+ API
> > parts. Do you have any good ideas?
>
> I can also set up an automated build that uses 1.3... that should
> catch errors (a little bit late, but easy to set up).
That would be useful too, but I was hoping for something that would
break the build if you where to start using JDK1.3+ stuff
Note that not using JDK1.3+ means that you'd have to run the tests with
java 1.2.
--
Trygve
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [exec] use of commons-logging
Posted by jerome lacoste <je...@gmail.com>.
On 9/23/05, Trygve Laugstøl <tr...@codehaus.org> wrote:
> On Fri, 2005-09-23 at 10:36 +0700, Kev Jackson wrote:
> > Hi,
> >
> > I've been looking at the use of commons logging in exec. Coming from
> > ant dev, it would be nice to refactor ant to use the commons-exec
> > package, but Ant has it's own logging mechanism (using logging
> > listeners), and I'm pretty sure that the ant code base will not change
> > to using commons-logging throughout except as the listener, and as far
> > as I'm aware the ant team want to keep the ant bootstrap as minimal as
> > possible (require nothing but an xml parser and a jdk). [1]
> >
> > There's also the problem of the minimum version of Java supported by
> > commons-exec, though this looks like it will be less of a problem.
>
> I'm concerned about this issue too and have been looking into ways to
> automate the testing to make sure that we're not using any JDK1.3+ API
> parts. Do you have any good ideas?
I can also set up an automated build that uses 1.3... that should
catch errors (a little bit late, but easy to set up).
J
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [exec] use of commons-logging
Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Fri, 2005-09-23 at 10:36 +0700, Kev Jackson wrote:
> Hi,
>
> I've been looking at the use of commons logging in exec. Coming from
> ant dev, it would be nice to refactor ant to use the commons-exec
> package, but Ant has it's own logging mechanism (using logging
> listeners), and I'm pretty sure that the ant code base will not change
> to using commons-logging throughout except as the listener, and as far
> as I'm aware the ant team want to keep the ant bootstrap as minimal as
> possible (require nothing but an xml parser and a jdk). [1]
>
> There's also the problem of the minimum version of Java supported by
> commons-exec, though this looks like it will be less of a problem.
I'm concerned about this issue too and have been looking into ways to
automate the testing to make sure that we're not using any JDK1.3+ API
parts. Do you have any good ideas? Brett mentioned clirr and jdiff so
I'll look into those later, jdiff already has a Maven 2 report and it
shouldn't be hard to make a similar clirr report. Although these are
both manual tests and I'd like to be able to automate this.
[1]: http://clirr.sourceforge.net/
[2]: http://jdiff.sourceforge.net/
--
Trygve
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [exec] use of commons-logging
Posted by Brett Porter <br...@apache.org>.
Kev Jackson wrote:
> Hi,
>
> I've been looking at the use of commons logging in exec.
It needs to go for the reasons you listed.
I talked about this earlier with Niklas and we agreed, it just hasn't
been looked at yet - not only do we need to have a simple monitor to be
able to pass on the messages, but probably do more logging of the output
streams.
http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=112260252732344&w=2
> There's also the problem of the minimum version of Java supported by
> commons-exec, though this looks like it will be less of a problem.
Yes, we need to keep an eye on this. Is Ant 1.2+ or 1.3+ these days? I
remember a vote for 1.4+ got voted down...
http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=112328474406242&w=2
Perhaps since this is targetted for Ant 1.8, it can be reassessed again.
- Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org