You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/04/25 04:55:11 UTC

[jira] Commented: (MPECLIPSE-21) Generate excludes for classpath from Maven's source modifications

The following comment has been added to this issue:

     Author: Brett Porter
    Created: Sat, 24 Apr 2004 10:54 PM
       Body:
apparently dion has a valid objection to this, rolling the patch back.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPECLIPSE-21&page=comments#action_19060

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPECLIPSE-21

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPECLIPSE-21
    Summary: Generate excludes for classpath from Maven's source modifications
       Type: Improvement

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-eclipse-plugin

   Assignee: Brett Porter
   Reporter: Boris Boehlen

    Created: Mon, 5 Apr 2004 5:59 AM
    Updated: Sat, 24 Apr 2004 10:54 PM

Description:
I'm using Maven's source code modifications to exclude certain
directories from the build. It would be great if this can be generated by your plugin.
My solution may not be perfect, but I would greatly appreciate it if something similar to my contribution would make it into to the plugin.

Here's how I modified "classpath.jelly":
 
  <j:if test="${sourcesPresent}">
    <maven:makeRelativePath var="srcDir" basedir="${basedir}" path="${pom.build.sourceDirectory}"/>
    <j:set var="exluding" value=""/>
    <j:forEach var="sm" items="${pom.build.sourceModifications}">
      <j:forEach var="exclude" items="${sm.excludes}">
        <j:set var="excluding" value="${excluding},${exclude}"/>
      </j:forEach>
    </j:forEach>
    <j:set var="excluding">${excluding.substring(1)}</j:set>
    <classpathentry kind="src" path="${srcDir}" excluding="${excluding}"/>
  </j:if>


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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