ant-user mailing list archives

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

On Jan 5, 2006, at 2:12 AM, <Jan.Materne@rzf.fin-nrw.de>  
<Jan.Materne@rzf.fin-nrw.de> wrote:

> I did a quick test...
> and it works for me.

Yep, your example works for me, too. Grr.

> $ ant
> Buildfile: build.xml
>
> build:
>     [mkdir] Created dir: /Users/rmann/Desktop/testtask/build/classes
>     [javac] Compiling 1 source file to /Users/rmann/Desktop/ 
> testtask/build/classes
>       [jar] Building jar: /Users/rmann/Desktop/testtask/build/ 
> mytasks.jar
>
> test:
>    [mytask] Hello
>    [mytask] resource: default.tmpl
>    [mytask]   stream: java.util.zip.ZipFile$1@9d3f8b
>    [mytask] Hello
>    [mytask] resource: other.tmpl
>    [mytask]   stream: null
>
> all:
>
> BUILD SUCCESSFUL
> Total time: 3 seconds


My build.xml is a little different, in that I include a separate  
classpath reference, rather than defining it as an attribute...

Thanks for giving me a working example. I'll poke at the differences.

-- 
Rick



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


Mime
View raw message