ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Mann <rm...@latencyzero.com>
Subject Re: Loading resources from my task's JAR?
Date Thu, 05 Jan 2006 09:55:50 GMT

On Jan 5, 2006, at 1:45 AM, Stephen McConnell wrote:

> This is not a issue of locating the jar file - after all you  
> running which
> means you class is loaded which means the JRE has located the class  
> which
> means the jar is know.  If you task class is
> com/mycompany/tools/dbgen/DBGenAntTask.class then either of the  
> following
> two approaches should work:
>
>    getClass().getResourceAsStream("Class.tmpl");
>
>    getClass().getResourceAsStream("/com/mycompany/tools/dbgen/ 
> Class.tmpl");

My thoughts exactly. So, why is it returning null? I only bring up  
all the other stuff because I was "thinking out loud", trying to find  
something else to look for. Have you (or anyone else) ever succeeded  
in doing this?

-- 
Rick



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message