Hello. I am new to ANT.
I am trying to generate code coverage report using ANT but when I try to run the following in Command Prompt
cd C:/Users/DGM(IT)/Downloads/Compressed/apache-ant-1.8.4-bin/apache-ant-1.8.4/bin/C:/Users/DGM(IT)/Downloads/Compressed/JaCoCo_KT/JaCoCo_KT/JaCoCo_Ant.xml -DdumpLocation=C:/Users/DGM(IT)/Downloads/JaCoCo_KT/JaCoCo_KT generateDump
I get the error
Buildfile: build.xml does not exist!
I navigated to the folder that contains my build file (JaCoCo_Ant.xml) and typed 'ant' in command prompt. I get the same error.
What could be the problem and how can I solve it?
I edited your original post so that your XML is in code tags. Now it's much easier to see that at line 20 you have an unmatched end-tag for a <target> element. So your XML is malformed.
posted 4 years ago
Paul Clapham wrote:I edited your original post so that your XML is in code tags. Now it's much easier to see that at line 20 you have an unmatched end-tag for a <target> element. So your XML is malformed.
It still gives the same error.
JaCoCo_Ant.xml:20:The element type "project" must be terminated by the matching end-tag "</project>"
Then I would recommend making sure your XML is not malformed again. It would be easier to do that if it were properly indented -- what you posted here was sort of randomly indented, but that can happen when you mix spaces and tabs while manually indenting.
Also make sure that the XML you are looking at is the same XML which the Ant process is complaining about. You could test that by deleting it (save a copy!), and then the Ant task should complain that it can't find the build file.
I think I'll just lie down here for a second. And ponder this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop