Target lookup disabled and hot-swap?

Answered

I am using hot-swap to replace static resources in exploded WAR deployed on my JBoss. To be able to do this I have to mark target/frontend folder as resources in Project Settings, whereas target itself is ignored in the project settings. This has a side effect: when I am navigating using Ctrl+Shift+N the files from target are also included so they are displayed twice. Of course I don't want to open nor edit those files.

Is there a way to disable showing of files from target in the Ctrl+Shift+N and still be able to hot-swap target resources?

0
3 comments

Hotswap works from the exploded artifact, IDE will copy the changed resource to target on Update action (or on frame activation if you enable this option).

See https://www.jetbrains.com/idea/help/updating-applications-on-application-servers.html.

0
Avatar
Permanently deleted user

@Serge Baranov, In my case the update resources action does not work if the directory with the resources is marked as "Excluded" in the project settings.

-1

Resources directory should not be marked as Excluded, it's marked exactly as Resources in the project structure.

If you are using some non-standard configuration, please file a ticket to support with a sample project to reproduce attached.

1

Please sign in to leave a comment.