Recently I discovered an interesting task in Optional Ant Tasks, it was <script>. At the beginning, I needed add deleting the oldest files in a storage. There are no standard ant ability to do this, so I took a look at some libraries, e.g. Ant-Contrib, but in the end I selected scripts because of their comfort. Here is small example of using this task:
Ant was angry at this snippet and said:
operator (#48) in at line number 48
It was right to use the following line instead:
That’s all for the moment. Thanks for your attention.