jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Ant Tasks
  • MANTTASKS-40

The "artifact:dependencies" task has no way to filter based on dependency type (ie. jar, tld, etc...)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0
  • Component/s: None
  • Labels:
    None

Description

Currently the only filter that can be applied to the "artifact:dependencies" task is the scope.
It would be useful to be able to filter the artifact type, so that you can retrieve related sets
of dependencies, such as TLD files for inclusion into a .war file.

I am going to attach a new file "TypeArtifactFilter.java" along with a diff file for DependenciesTask.java
which will add this functionality to the task.

Both of these belong in the org.apache.maven.artifact.ant package (though TypeArtifactFilter could
potentially reside in the "artifact" component)

I'm not really sure how testcases are done for the tasks, but i can look into it. it's a relatively simple
change and something that's easy to check for.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    DependenciesTask.java.diff
    28/Sep/05 8:42 AM
    2 kB
    Matthew Inger
  2. Java Source File
    TypeArtifactFilter.java
    28/Sep/05 8:42 AM
    1 kB
    Matthew Inger
  • Options
    • Show All
    • Show Open

Sub-Tasks

1. type attribute of artifact:dependencies doesn't work for indirect dependencies Sub-task Reopened Reopened Unassigned
 

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 29/Sep/05 12:52 AM

applied with some modifications (though an empty And filter let everything through as desired, that's probably not how it should behave so I didn't want to rely on that).

Show
Brett Porter added a comment - 29/Sep/05 12:52 AM applied with some modifications (though an empty And filter let everything through as desired, that's probably not how it should behave so I didn't want to rely on that).

People

  • Assignee:
    Brett Porter
    Reporter:
    Matthew Inger
Vote (0)
Watch (0)

Dates

  • Created:
    28/Sep/05 8:42 AM
    Updated:
    08/Apr/07 9:48 PM
    Resolved:
    29/Sep/05 12:52 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.