From: Michael Schmidt <michaelmschmidt@msn.com>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re; pg_dump from Java
Date: Sun, 9 Apr 2006 21:28:13 -0600
Message-ID: <BAY101-DAV121FD09B38064071710341A3CC0@phx.gbl> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: michaelmschmidt@msn.com
Subject: Re: Re; pg_dump from Java
In-Reply-To: <BAY101-DAV121FD09B38064071710341A3CC0@phx.gbl>
References: <BAY101-DAV121FD09B38064071710341A3CC0@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox