You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Otto von Wachter (JIRA)" <ji...@codehaus.org> on 2005/06/23 20:21:52 UTC

[jira] Updated: (MPIDEA-35) Patch for .iml template for Irida (Idea 5)

     [ http://jira.codehaus.org/browse/MPIDEA-35?page=all ]

Otto von Wachter updated MPIDEA-35:
-----------------------------------

    Attachment: module.jelly.patch

Ok, sorry, here is the unified diff attached

> Patch for .iml template for Irida (Idea 5)
> ------------------------------------------
>
>          Key: MPIDEA-35
>          URL: http://jira.codehaus.org/browse/MPIDEA-35
>      Project: maven-idea-plugin
>         Type: Bug
>     Versions: 1.5
>  Environment: Irida (Idea 5)
>     Reporter: Otto von Wachter
>      Fix For: 1.5
>  Attachments: module.jelly.patch, module.jelly.patch, module.jelly.patch2
>
>
> The problem is that maven generated .iml files don't specify module type, so Idea gives a warning and doesn't allow to see module properties in the project properties window. 
> The solution: (patch to maven-idea-plugin-1.5\plugin-resources\templates\v4)
> *** module.jelly.bak Fri Jun 25 13:13:36 2004
> --- module.jelly Thu Jun 23 10:17:20 2005
> ***************
> *** 22,33 ****
>     <maven:get var="type" plugin="maven-multiproject-plugin" property="maven.multiproject.type" />
>   
>     <j:set var="IDEA_TYPE" value=""/>
> !   <j:if test="${type == 'ejb'}">
>       <j:set var="IDEA_TYPE" value="J2EE_EJB_MODULE"/>
> !   </j:if>
> !   <j:if test="${type == 'war'}">
>       <j:set var="IDEA_TYPE" value="J2EE_WEB_MODULE"/>
> !   </j:if>
>   
>     <module version="4" relativePaths="false" type="${IDEA_TYPE}">        
>       <j:if test="${type == 'ejb'}">
> --- 22,38 ----
>     <maven:get var="type" plugin="maven-multiproject-plugin" property="maven.multiproject.type" />
>   
>     <j:set var="IDEA_TYPE" value=""/>
> !   <j:choose>
> !   <j:when test="${type == 'ejb'}">
>       <j:set var="IDEA_TYPE" value="J2EE_EJB_MODULE"/>
> !   </j:when>
> !   <j:when test="${type == 'war'}">
>       <j:set var="IDEA_TYPE" value="J2EE_WEB_MODULE"/>
> !   </j:when>
> !   <j:otherwise>
> !     <j:set var="IDEA_TYPE" value="JAVA_MODULE"/>
> !   </j:otherwise>
> !   </j:choose>
>   
>     <module version="4" relativePaths="false" type="${IDEA_TYPE}">        
>       <j:if test="${type == 'ejb'}">

-- 
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