ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: Loading resources from my task's JAR?
Date Thu, 05 Jan 2006 10:41:29 GMT
 

> -----Original Message-----
> From: Rick Mann [mailto:rmann@latencyzero.com] 
> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message