Is it possible that the resources arrive in target after the attempt
to copy them as a resource?

I don't think keeping them in target is wise, regardless. If they are
generated by the build, the build should put them in the right place
to start with.

- Brett

On Mon, 21 Jun 2004 22:23:20 +0200, David Garnier
<[EMAIL PROTECTED]> wrote:
> 
> Hello,
> 
> It seems that Maven can't 'see' resources when they are in the target
> dir. In the POM, I specified resources for the unit tests:
> 
> <resources>
>         <resource>
>                 <directory>${basedir}/target/res/</directory>
>                 <targetPath>/</targetPath>
>                 <includes>
>                         <include>**/*</include>
>                 </includes>
>         </resource>
> </resources>
> 
> This does not work. When I try to load a file using something like this
> :
> retval.getClass().getResourceAsStream("/netlist.txt");
> 
> I get a null InputStream. The resources are dynamically generated in a
> post-goal on test:test-resources, but I've confirmed that the files are
> indeed present.
> 
> Now here is the interesting part. If I generate the resources in
> ${basedir}/res instead of ${basedir}/target/res, maven:site will find
> the files. I've set maven.junit.fork to true, otherwise Maven does not
> find the files at all.
> 
> Is this a bug or a specified behavior?
> 
> Best Regards,
> David Garnier
> --
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to