Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.6
-
Fix Version/s: None
-
Component/s: Maven
-
Labels:None
-
Number of attachments :
Description
I want to precompile my JSP's which have *.html extensions (historically).
For everything to work when no precompilation used I added the followign servlet mappign to my web.xml
<!-- [INSERT FRAGMENT HERE] -->
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
but when running maven-jetty-jspc-plugin it doesn't take to the account this mapping, but only *.jsp files are processed.
I find no other configuration I could modify in doc:
http://jetty.mortbay.org/jspc-maven-plugin/jspc-mojo.html
To make it even more flexible from maven side I've added the following configuration parameters to the plugin (see patch):
extensions = "jsp,jspx"
includes
excludes
I've added by default */.svn/,/Jetty_* to the default excludes (just to exclude Jetty work files and svn repository files) althogh all
DirectoryScanner.DEFAULTEXCLUDES can be used easily joining them.
This patch also fixes bug that generated sources were not actually removed due that packageRootDirectory were not added to generatedClasses, here is the fix:
//delete the .java files - depending on keepGenerated setting
if (!keepSources)
{
String packageRootDirectory = packageRoot.replace('.', File.separatorChar);
File generatedClassesDir = new File(generatedClasses + File.separatorChar + packageRootDirectory);
Please apply this patch.