Maven 2.x Ant Tasks

Pass Ant properties for resolved dependency JARs

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0.8
  • Component/s: dependencies task
  • Labels:
    None
  • Number of attachments :
    1

Description

Currently the dependencies tasks gives a path and a fileset, but in some cases the Ant file may want to know the resolved dependencies by name. This simple patch sets an ant property based of the artifact identifier that references the JAR file that got resolved.

Additionally, it modifies the DeployTask so that if no file is passed in to deploy, it will search for an ant property that references the JAR. This is useful in wrapping an existing Ant file to deploy a JAR

Activity

Hide
Herve Boutemy added a comment -

For each dependency resolved, the property {{groupId:artifactId:type[:classifier]}} is defined pointing to the corresponding file.

Show
Herve Boutemy added a comment - For each dependency resolved, the property {{groupId:artifactId:type[:classifier]}} is defined pointing to the corresponding file.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: