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/03/24 17:18:51 UTC

[jira] Commented: (MPECLIPSE-14) Add the ability to exclude source

The following comment has been added to this issue:

     Author: Boris Boehlen
    Created: Wed, 24 Mar 2004 11:17 AM
       Body:
It would also be great to consider the excludes from the sourceModifications tag in the project descriptor. The following is slight modification of the "classpath.jelly":

    <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}"/>

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPECLIPSE-14&page=comments#action_17840

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPECLIPSE-14
    Summary: Add the ability to exclude source
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Original Estimate: 1 week
 Time Spent: Unknown
  Remaining: 1 week

    Project: maven-eclipse-plugin

   Assignee: 
   Reporter: dion gillard

    Created: Mon, 2 Jun 2003 7:49 PM
    Updated: Wed, 24 Mar 2004 11:17 AM

Description:
>From "Doug Patterson" <do...@gmx.net>

The Eclipse plugin creates a .classpath file with tags like:

<classpathentry kind="src" path="src/java">

Eclipse also supports an excluding attribute that filters out any files
matching the supplied pattern. I tweaked plugin.jelly (patch below) to check
for a maven.eclipse.exclude property in project.properties and modify
kind="src" entries accordingly. For example:

maven.eclipse.exclude=**/.svn/*    # Stop Eclipse complaining about Subversion files




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