try
{
process = pb.start();
final BufferedReader err =
new BufferedReader(new InputStreamReader(process.getErrorStream()));
new OutputReader(err)
{
public void processLine(String line)
{
LOG.log(Level.WARNING, "import-ldif error log: "+line);
application.notifyListeners(Message.raw(line));
application.notifyListeners(application.getLineBreak());
}
};
BufferedReader out =
new BufferedReader(new InputStreamReader(process.getInputStream()));
new OutputReader(out)
{
public void processLine(String line)
{
LOG.log(Level.INFO, "import-ldif out log: "+line);
application.notifyListeners(Message.raw(line));