Copying Resource files

I have my resource pattern working to copy all my files to the ouput, but they are getting budled into my .jar file.  Is there a way to tell the compiler to just copy them to the output directory?

1 comment
Comment actions Permalink

I suppose that the jar file is created using an artifact, configured in 'Project Structure' dialog, right? Artifact don't support file exclusion so if
the output directory is included into the artifact layout all files from the directory will be packed to the archive.
However you can move resource files to a separate module and add a dependency from the main module to the new module. After that resource files will
be included in the classpath of the application but won't be packed into the artifact.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.