On Fri, 3 Aug 2001 14:55, Eung-ju Park wrote: > ----- Original Message ----- > From: "Peter Donald" <[EMAIL PROTECTED]> > To: "Avalon Development" <[email protected]> > Sent: Friday, August 03, 2001 1:10 PM > Subject: Re: NPE at FileTarget... > > > Error on my part. I assume destination is something like /mylogfile.txt > > (ie > > > at root of filesystem). In which case it has no parent file but I wasnt > > guarding against that. Fixed in CVS. > > my real destination is not exists in root filesystem.
that should be fine. > new File( filename ) means file on current directory. > destination variable is "datasources.log" but real destination is > "/home/colus/foo/bar/datasource.log". > hmm. it is a java.io.File.parent's bug? No idea - can you check latest CVS and see if it works for you ? If it doesn't could you send details like * results of java -version * tell me if you are working on directories made out of symlinks * on an alternate filesystem (and what OS you are running). The only thing I can thing of if it still doesn't work is that *maybe* doing getCanoncialFile().getParent() may work. Theres certain idiosyncracies on certain filesystems etc. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
