admin@glassfish.java.net

Re: admin iteam meeting

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Tue, 16 Nov 2010 12:01:40 -0800
Yes -- but we are running inside a JVM where 'which' doesn't exist.  I need a solution that is pure java API.

On 11/16/2010 11:42 AM, Paul M Davies (Oracle) wrote:
Hi Byron,

On UNIX and LInux systems, would the which command give you what you want?

sr1-jurassic-02(45) which which
/usr/bin/which

Regards,
-Paul


On 11/16/10 11:30, Byron Nevins wrote:
Topic:

Q: I need to get the full path for an executable file.  I know it is somewhere in the user's path.  It has to handle the fact that on UNIX/LINUX the path is PATH and on Windows it can be either Path or PATH or both.  Once it gets that path variable it needs to go through all of the elements -- IN ORDER -- to find the executable.  If it finds it it needs to verify that it is executable AND that the user has permission to run it. 
Whew!  And I want to do it in ONE LINE of code.  How to do that?

A:

Q: I have the path to a File.  I want to read it in to a String.  I don't want to add a dozen lines of try/catch/finally boilerplate.  Do I want a buffered reader?  Should it be an InputStream?  Oh I forget.  Where can I copy and paste a dozen lines of code from?  Or -- can I do this with ONE LINE of code?

A:

Q:  Why am I writing this ugly line of code over and over and over and over and over again?  Is there a better way?
if(str != null && str.length() > 0)

A:



On 11/16/2010 10:52 AM, Tom Mueller wrote:
Here is the agenda for today's admin iteam meeting.  Just one topic from last week, plus status reports.
Please let me know if you have additional topics.
http://wikis.sun.com/display/GlassFish/AdminIteam
Tom

Meeting Details:

Tuesdays 3PM Pacific
Room: PEZ, SCA 22, 1st floor, 1305
US toll free: 866-682-4770
Code: 1485398#
Security Code: 4321#
Email alias: admin@glassfish.dev.java.net

Agenda - Nov 9, 2010

  • warning message from create-instance (about down instances)
  • General Topics
    • Quality update
      • Monitoring
      • Admin Infrastructure
    • Documentation update


-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188
  
--------------------------------------------------------------------- To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: admin-help@glassfish.dev.java.net


--



Oracle
Paul Davies| Principal Technical Writer| +1.408.276.3413
Oracle GlassFish Server Documentation
4140 Network Circle, Santa Clara CA 95054, USA

Green Oracle Oracle is committed to developing practices and products that help protect the environment



-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188

picture
(image/gif attachment: 01-part)

picture
(image/gif attachment: 02-part)