This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
New in 7.3 for web applications groovy files are compiled to class files. Typically those groovy files are in the WEB-INF/classes tree. By default this type of project now also sets **/*.groovy to be excluded from packaging. This results in ALL groovy files missing, not just those compiled to class files. The Groovy Servlet with its Groovlets is an important use case for Groovy in Web Applications. Those groovy files are typically distributed as source files located among the regular web files or in WEB-INF/groovy, more like JSP than Java. The default behavior for packaging should be that only groovy files in the WEB-INF/classes tree are purged. If that is not possible short term, then all groovy files should be kept based on default settings.
I'm going to take a look at this. Do not remember the reason why **/*.groovy exclusion were put to the configuration in the first place so can't say now if it will be technically possible or not :)
I have removed **/*.groovy exclusion for Ant based Web Projects with activated groovy (web-main #a9ed861542db).
Integrated into 'main-golden', will be available in build *201302060843* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a9ed861542db User: Martin Janicek <mjanicek@netbeans.org> Log: #225728 - Groovy in Web Applications: Dont exclude all *.groovy from deployment
This fix does not seem to have made it into the 7.3 final release. I've just created a fresh Java web application and added a Groovy class to it. The "Exclude From WAR File" field shows "**/*.java,**/*.form,**/*.groovy".
True, it is not a part of NB7.3 When I was fixing this issue we were already in high resistance mode for NB7.3 and thus it wasn't possible to put the fix to the final release. If you need it please use our daily build [1] or wait for the second NB7.3 patch. [1] http://bits.netbeans.org/download/trunk/nightly/latest/ (In reply to comment #4) > This fix does not seem to have made it into the 7.3 final release. I've just > created a fresh Java web application and added a Groovy class to it. > > The "Exclude From WAR File" field shows "**/*.java,**/*.form,**/*.groovy".