You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Geoffrey (JIRA)" <ji...@codehaus.org> on 2005/05/03 14:10:02 UTC

[jira] Commented: (MPIDEA-22) include resources as source path

     [ http://jira.codehaus.org/browse/MPIDEA-22?page=comments#action_38450 ]
     
Geoffrey commented on MPIDEA-22:
--------------------------------

Problem is that IntelliJ filters the source on resources based on a pattern in the compile options.
If you use an exotic resource, for example hello.mail or file.doc it won't be accepted as a resource.

Even worse if you want to use for example HelloWorld.java as a resource: it's impossible because IntelliJ will always compile it.

> include resources as source path
> --------------------------------
>
>          Key: MPIDEA-22
>          URL: http://jira.codehaus.org/browse/MPIDEA-22
>      Project: maven-idea-plugin
>         Type: Improvement
>     Reporter: Brett Porter
>      Fix For: 1.6

>
>
> From Matthew McGowan
> 248a249,286
> <j:forEach var="res" items="${pom.build.resources}">
>   <orderEntry type="module-library">
>     <library>
>       <CLASSES>
>         <maven:makeRelativePath var="value" basedir="${basedir}" path="${res.directory}" separator="/" />
>         <root url="file://$$MODULE_DIR$$/${value}"/>
>       </CLASSES>
>       <JAVADOC />
>       <SOURCES />
>     </library>
>   </orderEntry>            
> </j:forEach>      
> <j:if test="${unitTestSourcesPresent == 'true'}">
>   <j:if test="${pom.build.unitTest != null}">
>     <j:forEach var="res" items="${pom.build.unitTest.resources}">
>   <orderEntry type="module-library">
>     <library>
>       <CLASSES>
>         <maven:makeRelativePath var="value" basedir="${basedir}" path="${res.directory}" separator="/" />
>         <root url="file://$$MODULE_DIR$$/${value}"/>
>       </CLASSES>
>       <JAVADOC />
>       <SOURCES />
>     </library>
>   </orderEntry>            
>     </j:forEach>      
>   </j:if>
> </j:if>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org