Scope for web facet

Hi all. I'm trying to set up a scope for the JSPs in my web aspect, but I just can't figure it out.

The file structure is like this
sandbox\project = Module content root
sandbox\project\src = Java root
sandbox\project\web = Web facet resource directory /

Before upgrading from 4.5 to 7.0, we had a separate Module for the sandbox\project\web dir, to ease limiting searching to the JSPs. When converting the project files to 7.0 IntelliJ complains (on every load) it cannot determine the module type of the web module. Therefore I thought I'd remove the web module and instead add a web facet under the Java module. But then I will have to create a separate Scope to ease the searching again.

But how do I specify that Scope???
I have tried things like "file[Project]:web/*" but the web facet files are not included anyway.

(Automatic search scopes for web facets would be nice a feature...)

4 comments
Comment actions Permalink

Hello Mattias,

please try file[MODULE_NAME]:web/**

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hi all. I'm trying to set up a scope for the JSPs in my web aspect,
but I just can't figure it out.

The file structure is like this
sandbox\project = Module content root
sandbox\project\src = Java root
sandbox\project\web = Web facet resource directory /
Before upgrading from 4.5 to 7.0, we had a separate Module for the
sandbox\project\web dir, to ease limiting searching to the JSPs. When
converting the project files to 7.0 IntelliJ complains (on every load)
it cannot determine the module type of the web module. Therefore I
thought I'd remove the web module and instead add a web facet under
the Java module. But then I will have to create a separate Scope to
ease the searching again.

But how do I specify that Scope???
I have tried things like "file[Project]:web/*" but the web facet files
are not included anyway.
(Automatic search scopes for web facets would be nice a feature...)



0
Comment actions Permalink

The extra ending * seems to make no difference, still "Scope contains 0 of total N files". I tried "file[MODULE_NAME]:web/.." too.
I might be worth noting that the web directory is not shown in the scope package/directory tree (so I cannot select it and click Include).

Hello Mattias,

please try file[MODULE_NAME]:web/**

0
Comment actions Permalink

Mattias,

Do you see web directory in Project View? Could you please send us your .ipr/.iml
files?

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

The extra ending * seems to make no difference, still "Scope contains
0 of total N files". I tried "file[MODULE_NAME]:web/.." too.

I might be worth noting that the web directory is not shown in the
scope package/directory tree (so I cannot select it and click
Include).

>> Hello Mattias,
>>
>> please try file[MODULE_NAME]:web/**
>>


0
Comment actions Permalink

Do you see web directory in Project View?


The web-directory did not turn up in the project tree under the Java module. So I removed the "dummy" module with "web" as content root. Then "file[MODULE_NAME]:web/.." worked just fine.

I also filed a JIRA request for a more easily accessible option here: http://www.jetbrains.net/jira/browse/IDEA-17118

0

Please sign in to leave a comment.