Question about Web Resource Directories

I'm in a project that has the web-files in a directory where the images and javascript are subfolders of the html-directory. Like this:

html
+---images
+---javascript

In the "Web Resource Directories" part of the "Web-Settings"-tab in the web-facet I have created a web recource dir that points to the html-dir and "Path Relative to Deployment Root" is "/"

However, the images and javascript directories are not copied to my exploded directory, what am I doing wrong?

I'm using IDEA 7.0.1.

/Jörgen Lundberg

5 comments
Avatar
Nikolay Chashnikov

Are you sure that exploded directory is correctly configured in Project
Settings | Web facet | "JavaEE build settings" tab?

I'm in a project that has the web-files in a directory where the images and javascript are subfolders of the html-directory. Like this:

html
+---images
+---javascript

In the "Web Resource Directories" part of the "Web-Settings"-tab in the web-facet I have created a web recource dir that points to the html-dir and "Path Relative to Deployment Root" is "/"

However, the images and javascript directories are not copied to my exploded directory, what am I doing wrong?

I'm using IDEA 7.0.1.

/Jörgen Lundberg

0

I have "create web module exploded directory" checked.
The html- and jsp-files in the top directory (html) are copied correctly but not the subdirectories.

0

Hm, in the compiler settings: Are the extensions of your js and image files configured to let Idea copy them?

Jörgen Lundberg wrote:

I have "create web module exploded directory" checked.
The html- and jsp-files in the top directory (html) are copied correctly but not the subdirectories.

0
Avatar
Nikolay Chashnikov

May be your folders are marked as exluded in Project Structure ->
Modules -> -> Sources? Or your files satisfy patterns in Settings -> General ->]]> "Ignore files and folders" field?

I have "create web module exploded directory" checked.
The html- and jsp-files in the top directory (html) are copied correctly but not the subdirectories.

0

May be your folders are marked as exluded in Project Structure ->
Modules -> <Your module> -> Sources? Or your files satisfy patterns in
Settings -> General -> "Ignore files and folders" field?


Nope, none of of those two.
But, today when I restarted IDEA the files get copied to the exploded directory correctly...
Thanks for the help anyway.

/Jörgen

0

Please sign in to leave a comment.