Copying non-java files to Java EE Web Module exploded directory

I have a bunch of non-java (xml, xsl) files in my source directory
alongside with .java files. If I select to create web module exploded
directory, how do I make it copy non-java files from my source tree to
exploded directory ?

If I set web resource directory, it will copy all files including .java.
Is there a way to specify file types in web resource ?

Second question is: If I have other modules in dependencies, class files
from those modules are copied automatically to exploded directory. But
how do I include non-java files from those modules ? You can't specify
resources from different module's source tree.

-dragisa

2 comments
Comment actions Permalink

you should add the extensiosn of the files you want to copied to the list of "compiled" files
this is set in the "resource patterns" of the compiler options


This should work for both of your concerns at the same time

0
Comment actions Permalink

Thibaut wrote:

you should add the extension of the files you want to copied to the list of "compiled" files
this is set in the "resource patterns" of the compiler options


This should work for both of your concerns at the same time


Thanks ! This is what I was looking for.

0

Please sign in to leave a comment.