I use ant to run a Java program.
I do not want to "free" the output after the program ends. Therefore, I use the " output
" property to store the output in a file.
<java classname="..." fork="true" output="....txt">
Unfortunately, I no longer have console output. What would be a good way to get output on the console and in a txt file.
I am looking for an alternative
ant mytast > myFile.txt
because I do not want the "user" to use the shell redirect "> ..". If he / she does not select the redirection, the output is lost.
source share