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.

Bug 225728 - Groovy in Web Applications: Don't exclude all *.groovy from deployment
Summary: Groovy in Web Applications: Don't exclude all *.groovy from deployment
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 23:39 UTC by eddelplus
Modified: 2013-03-18 08:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eddelplus 2013-02-04 23:39:31 UTC
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.
Comment 1 Martin Janicek 2013-02-05 09:50:46 UTC
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 :)
Comment 2 Martin Janicek 2013-02-05 13:05:03 UTC
I have removed **/*.groovy exclusion for Ant based Web Projects with activated groovy (web-main #a9ed861542db).
Comment 3 Quality Engineering 2013-02-06 11:20:59 UTC
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
Comment 4 eddelplus 2013-03-16 17:51:46 UTC
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".
Comment 5 Martin Janicek 2013-03-18 08:24:18 UTC
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".