[ http://jira.codehaus.org/browse/MPIDEA-11?page=comments#action_38793 ]
Geoffrey commented on MPIDEA-11:
--------------------------------
so in module.jelly before:
<orderEntry type="sourceFolder" forTests="false"/>
> include maven project resources in module library
> -------------------------------------------------
>
> Key: MPIDEA-11
> URL: http://jira.codehaus.org/browse/MPIDEA-11
> Project: maven-idea-plugin
> Type: Improvement
> Reporter: Matthew McGowan
> Priority: Minor
> Attachments: diff.txt
>
>
> Maven source and unit test resource directories are added to the module path,
> so they are picked up when running apps or unit tests directly from IDEA.
> Index: src/plugin-resources/templates/v4/module.jelly
> ===================================================================
> RCS file:
> /home/cvspublic/maven-plugins/idea/src/plugin-resources/templates/v4/module.jelly,v
> retrieving revision 1.7
> diff -u -r1.7 module.jelly
> --- src/plugin-resources/templates/v4/module.jelly 23 Jun 2004 12:28:49
> -0000 1.7
> +++ src/plugin-resources/templates/v4/module.jelly 28 Sep 2004 13:10:17
> -0000
> @@ -122,6 +122,44 @@
> <sourceFolder url="file://$$MODULE_DIR$$/${value}"
> isTestSource="true"/>
> </j:if>
> </content>
> +
> + <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>
> +
> <orderEntry type="jdk" jdkName="java version
> "${java.version}""/>
> <orderEntry type="sourceFolder" forTests="false"/>
> <j:forEach var="lib" items="${pom.artifacts}">
--
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]