netbeans-gradle-javaee-project icon indicating copy to clipboard operation
netbeans-gradle-javaee-project copied to clipboard

Can't display webapp in source dir.

Open micfans opened this issue 10 years ago • 3 comments

I have created a dir 'webapp' in source dir, such as 'src/main/webapp'. but not display it in project view. But I aleady installed 'Gradle JavaEE support' plugin, and applied plugin 'war'. -------------------- my source path : -src   -main   -java   -resources   -webapp    -WEB-INF     -web.xml    -index.jsp

my build.gradle file:

apply plugin: 'war' apply plugin: 'idea' apply plugin: 'jetty'

[jettyRun, jettyRunWar, jettyStop].stopPort = 9966 [jettyRun, jettyRunWar, jettyStop].stopKey = 'stopKey'

dependencies { compile project(':QBS-UTIL') compile project(':QBS-CORE') compile project(':QBS-SERVICE') providedRuntime 'javax.servlet.jsp:jsp-api:2.2' providedRuntime 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.1' providedRuntime 'javax.servlet:servlet-api:2.5' runtime 'javax.servlet:jstl:1.1.2' } -------------------- is there any errors? Thx.

micfans avatar Aug 04 '14 08:08 micfans

I try uninstall the 'Gradle JavaEE support' plugin, now the 'WebPages' show in project view. may be exits a bug.

please check it. thx.

micfans avatar Aug 05 '14 01:08 micfans

Hi. I've been able to view the Web Pages folder, both with and without the Gradle JavaEE plugin enabled. I do know that the standard Gradle plugin displays a hard-coded webapps folder, but should only do that if the Gradle JavaEE plugin is not installed. So, this is the projects tab when the JavaEE plugin is disabled (http://imgur.com/LGMEm4W) and this is the projects tab when the JavaEE plugin is enabled (http://imgur.com/pcK6lRH). In both cases, I could see the files.

One difference with my project that is different from yours is I only apply the war plugin. Could you see if, by removing the jetty and idea plugins if that makes a difference?

hildo avatar Aug 05 '14 11:08 hildo

Also, I think the folder should be src/main/webapp. According to your message, it's src/webapp.

In fact, I would have assumed the java and resources folder would be in src/main as well as webapp. That's how I have mine, and I think that's the default convention.

hildo avatar Aug 05 '14 11:08 hildo