> -----Original Message----- > From: Rick Mann [mailto:[EMAIL PROTECTED] > Sent: Thursday, 5 January 2006 8:53 PM > To: Ant Users List > Subject: Re: Loading resources from my task's JAR? > > > On Jan 5, 2006, at 1:25 AM, Stephen McConnell wrote: > > > Given that the "templates/Class.tmpl" is a relative address > (relative > > to the package namespace of the class returned from > getClass()), and > > if the class is in the package namespece > "com/mycompany/tools/dbgen" > > then woudn't the absolute resource reference would be > > "/com/mycompany/tools/dbgen/templates.Class.tmpl" ? > > The jar tf was for one particular attempt, one where I placed > the .tmpl files next to the classes (in order to simplify the > paths used in the code). > > I think you're right about the relative templates dir, but is the dot before "Class" correct?
No - my copy and paste mistake - should be "/". /Steve. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]