Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running build.xml ant from another directory

Tags:

junit

xml

ant

can we run ant build.xml outide our java workspave as an example another directory.cause I wanna put the whole java project in anoter directory and run the buildfile with ant somewhere else, please help, also is it possible to export the report also in one file in another directory?

like image 206
user3738460 Avatar asked Jan 10 '23 06:01

user3738460


1 Answers

Use the buildfile command line option, for example:

ant -buildfile pathetoanotherdirectory/build.xml
like image 166
DavidPostill Avatar answered Jan 15 '23 08:01

DavidPostill