From: | "Michael Schmidt" <michaelmschmidt(at)msn(dot)com> |
---|---|
To: | "PostgreSQL JDBC" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re; pg_dump from Java |
Date: | 2006-04-10 03:28:13 |
Message-ID: | BAY101-DAV121FD09B38064071710341A3CC0@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Folks,
I've continued to work on the problem (stubbornness + free time is a deadly combination) and have gotten a solution others might find helpful. In Java 1.5 (5.0 per their new numbering) there is a new ProcessBuilder class. It is a different way to create a runtime process that allows setting environmental variables. Of particular interest is the redirectErrorStream() method, which does just that - combines stderr with stdin. This simplifies matters - allowing the use of just one BufferedReader and lo and behold - the Password: prompt showed up. You can't readLine() it, but nevertheless, it is accessible.
Later!
Michael Schmidt
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2006-04-10 09:35:00 | Re: Prepared statement leak |
Previous Message | Heikki Linnakangas | 2006-04-09 08:50:24 | Re: PostgreSQL (XADataSource) as Tomcat Resource |