Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.1.0
-
Fix Version/s: 2.1.1
-
Component/s: documentation, pom task
-
Labels:None
-
Environment:ant 1.8.1
maven-ant-tasks-2.1.0
Mac OSX 10.6.4
-
Number of attachments :
Description
In the documentation for the "pom" tasks at http://maven.apache.org/ant-tasks/examples/pom.html
there's a section "Accessing POM information" with a very simple example that I can't get to work.
Attached is my build.xml and pom.xml which should match the example. I expected the placeholder
$
the placeholder. I also tried with ${mypom.project.version} with the same result.
The output from "ant":
Buildfile: /Users/knut/build.xml
propdemo:
[echo] The version is ${mypom.version}
BUILD SUCCESSFUL
Total time: 1 second
If I instead use the ANT construct <xmlproperty file="pom.xml" prefix="maven"/>
I get the properties, but that's not the same thing.
Issue Links
- duplicates
-
MANTTASKS-178
artifact:pom task not working with Ant 1.8.0
-