Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@jakarta.apache.org Received: (qmail 65415 invoked by uid 500); 3 Aug 2001 10:10:03 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Avalon Development" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 65339 invoked from network); 3 Aug 2001 10:10:02 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Peter Donald To: "Avalon Development" Subject: Re: NPE at FileTarget... Date: Fri, 3 Aug 2001 19:26:04 +1000 X-Mailer: KMail [version 1.2] References: <006601c11bd2$0a873600$fbb2c4d3@juno> <01080317120201.00758@helm.realityforge.org> <019201c11bf8$69aeb060$fbb2c4d3@juno> In-Reply-To: <019201c11bf8$69aeb060$fbb2c4d3@juno> MIME-Version: 1.0 Message-Id: <01080319260400.00763@helm.realityforge.org> Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Fri, 3 Aug 2001 18:43, Eung-ju Park wrote: > > getCanoncialFile().getParent() may work. Theres certain idiosyncracies on > > certain filesystems etc. > > yeh. new FileTarget( new File( "datasources.log" ) ).getCanonicalFile(), > false, formatter ) > works on previous FileTarget. > How about use getFile().getCanonicalFile().getParent() instead of > getFile().getParentFile() at FileTarget.openFile? done. 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: avalon-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: avalon-dev-help@jakarta.apache.org