Maven 2.x Ant Tasks

Properties and references created by the pom and dependencies tasks don't persist across ant/subant task invocations.

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 3.0.0-beta-1
  • Component/s: None
  • Labels:
    None
  • Environment:
    Fedora Core 4
  • Number of attachments :
    3

Description

Properties and references created by the pom and dependencies tasks don't persist across ant/subant task invocations.
I've included some ant scripts. If you create a test-build dir and put build.xml and taskDefs.xml in it and then run ant -f test-build.xml from the parent dir of test-build you will see the problem in the output.

  1. build.xml
    21/Oct/05 4:30 PM
    0.4 kB
    Xavier Toth
  2. taskDefs.xml
    21/Oct/05 4:30 PM
    0.4 kB
    Xavier Toth
  3. test-build.xml
    21/Oct/05 4:30 PM
    2 kB
    Xavier Toth

Activity

Hide
Paul Gier added a comment -

The problem is that instead of setting the properties directly in the project, the Maven Ant Tasks register a property helper class to interpret the pom properties. The property helper is not included in new projects invoked by the "ant" task.

Show
Paul Gier added a comment - The problem is that instead of setting the properties directly in the project, the Maven Ant Tasks register a property helper class to interpret the pom properties. The property helper is not included in new projects invoked by the "ant" task.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: