David Leader <[EMAIL PROTECTED]> writes: > I'm about to distribute my java app with an embedded derby database, > but it's really not polite for apps to write unsolicited files to > disc. Anyway of suppressing the derby.log file?
Hi David, You could take a look at the derby.stream.error.field property: http://db.apache.org/derby/docs/10.3/tuning/rtunproper33027.html If you create a stream object which swallows whatever is passed in to its write() method and put it in a public static field in the class MyApp, like this public static final OutputStream DEV_NULL = new OutputStream() { public void write(int b) { } }; then you can suppress the derby.log file by setting derby.stream.error.field to "MyApp.DEV_NULL". -- Knut Anders
