Resource patterns should be configurable and have a better default (+patch)
---------------------------------------------------------------------------

         Key: MIDEA-18
         URL: http://jira.codehaus.org/browse/MIDEA-18
     Project: Maven 2.x Idea Plugin
        Type: Improvement

    Reporter: Geoffrey


Currently the resource patterns are fixed:
    <resourceExtensions>
      <entry name=".+\.(properties|xml|html)"/>
      <entry name=".+\.(gif|png|jpeg)"/>
    </resourceExtensions>

This has several problems:
1) This default does not include jpg, svg, bmp, jelly, xsd, xslt, etc files
2) This property is not adjustable to include any of the type of files it's 
missing
3) resourceExtensions has been depricated in favor of wildcardResourcePatterns 
(since 4.0 I believe)

This means that if you 're using a resource files called myLogo.jpg, do mvn 
idea:idea and run in it in IDEA, the file might not be found or up to date.

Solution
1) Default to anything but java. This does include package.html file, but the 
old value does that too.
This is backward compatible because the older extensions all are copied too.
2) Make a wildcardResourcePatterns property
3) Use wildcards instead of regex. Personally I 'd prefer regex, but IntelliJ 5 
(and probably 4 too) forces you to change your regex into a wildcart pattern.
It actually ignores the resourceExtensions entity (except to create a 
wildcardResourcePatterns entity if there is none).

I 'm finishing up the patch and I 'll include it shortly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to