Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant: echo file contents to console with Get task?

Tags:

java

ant

Just what the title says - is it possible to echo the response contents without having to store the file?

I would also settle for being able to throw out the results, so a dest file is not created (on Windows, so no /dev/null).

like image 681
Dmitri Avatar asked Oct 15 '25 10:10

Dmitri


1 Answers

Specify the file path in srcfile. the content of the file will be stored into variable from the given file

<loadfile property="content" srcfile="filepath"/>
<echo message="========================================================"></echo>
<echo message="${content}" />
like image 196
Madhu Arukala Avatar answered Oct 16 '25 23:10

Madhu Arukala