I am currently using the -logfile flag on my ant script. Is there a way to display the ant output to the console and have it log the output too?
I can not download other applications to acheive this. Needs to be native to windows or ant.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ant has a recorder task that can be used to log all or part of a build to a file.
To just record the whole build to a file add a line like:
near to the start of your buildfile. There are options to set the level of verbosity and control log file appending too.
You can run multiple recorders during a build – say to capture a summary to one log file, and full details to a longer second log file. You can also use the
actionattribute of the task to run the recording for just part of the build.