Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where should I place the "with.clover" when I pass it to ant build command that takes some options?

Mohamed Nafea September 20, 2017

In my project  I compile the java files using ant command that take some options as "-file"; I want to know where should I place the "with.clover". Should I place it after ant as follow "ant with.clover -file ..." or after all ant options as follow "ant -file ... with.clover" ?

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2017
$ ant -h

ant [options] [target [target2 [target3] ...]]

 

So, as you can see, options should come first, followed by targets. After targets you usually put java properties. Example:

ant -f mybuild.xml with.clover clean test clover.report -Dproject.title="My Project"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events