commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juozas Baliuka" <bali...@mwm.lt>
Subject Re: [lang] System properties
Date Fri, 23 Aug 2002 15:22:32 GMT

As I understand it need to know "style of command" not "operating system",
I think it is not the same, but do not think I propose some "better design"
for Ant,
I do not know Ant internals  and can't help with "better design" at this
time.


> Check out the "exec" task in ant. It needs to know the operating system
> so it can know what style of command to run when it creates a
> subprocess.
>
>
> Steven Caswell
> steven@caswell.name
> a.k.a Mungo Knotwise of Michel Delving
> "One ring to rule them all, one ring to find them..."
>
>
> > -----Original Message-----
> > From: Juozas Baliuka [mailto:baliuka@mwm.lt]
> > Sent: Friday, August 23, 2002 8:12 AM
> > To: Jakarta Commons Developers List
> > Subject: Re: [lang] System properties
> >
> >
> >
> > Hi,
> > I do not like any kind of OS detection, I think it useless.
> > Things must be configured, not detected from System
> > properties by OS name.
> >
> > Like "pool.maxThreads=40" and not this kind of crap:
> >
> >
> > if ( Constants.OS_LINUX ){
> >
> >    maxThreads = GOOD_CONSTANT;
> >
> > }else if (  Constants.OS_WINDOWS ) {
> >
> >     maxThreads = BAD_CONSTANT;
> >
> > }else{
> >
> >    maxThreads = DEFAULT_CONSTANT;
> >
> > }
> >
> > Doe's somebody knows "good" usage for OS_XXX ?
> >
> >
> >
> >
> > > I think I'm happy with this approach. But I now feel too
> > closeto make
> > > a
> > judgement for certain. What do other [lang] committers feel?
> > >
> > > Stephen
> > >
> > > >  from:    Andrew Conrad <andrewconrad@attbi.com>
> > > >  date:    Fri, 23 Aug 2002 10:50:47
> > > >  to:      commons-dev@jakarta.apache.org
> > > >  subject: RE: [lang] System properties
> > > >
> > > > OK, here is a new version of SystemUtils that supports
> > Linux == Unix
> > > > and OSX == Mac and OSX == Unix.
> > > >
> > > > It's a pretty simple AND solution that should be easy to
> > update and
> > > > extend.
> > > >
> > > > - Andrew
> > > >
> > > > > -----Original Message-----
> > > > > From: scolebourne@btopenworld.com
> > > > > [mailto:scolebourne@btopenworld.com]
> > > > > Sent: Friday, August 23, 2002 5:18 AM
> > > > > To: commons-dev@jakarta.apache.org
> > > > > Subject: RE: [lang] System properties
> > > > >
> > > > >
> > > > > >  from:    Andrew Conrad <andrewconrad@attbi.com>
> > > > > > So your saying that potentially there could be a
> > Solaris family
> > > > > > encompassing all Solaris versions, Windows NT family
> > > > > encompassing NT,
> > > > > > 2000, XP?
> > > > >
> > > > > I think that demand will come. Is Mac OSX a Mac or a UNIX?
> > > > >
> > > > >
> > > > > > Without thinking too hard about it, the only thing I can
> > > > > think of is
> > > > > > to use a byte as the enumeration type then AND them
> > together and
> > > > > > compare. That will allow a boolean method
> > isOSFamilyLinux and
> > > > > > isOSFamilyUnix to both return true  (and other possible
> > > > > options:  I think I heard OSX ).
> > > > >
> > > > > One thing I hate is manipulating bytes with AND and OR
> > operations.
> > > > > It requires me to think too much.
> > > > >
> > > > > > What's the reasoning behind wanting to differentiate
> > > > > between Linux and
> > > > > > Unix, but not SunOS and AIX?
> > > > >
> > > > > I would have added a Solaris option, but didn't know if
> > Solaris ==
> > > > > SunOS or not.
> > > > >
> > > > > Stephen
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > > <mailto:commons-dev-> unsubscribe@jakarta.apache.org>
> > > > > For
> > > > > additional commands,
> > > > > e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> > > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:commons-dev-help@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:commons-dev-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message