tags:

views:

119

answers:

1

I have an ant build script that needs to pull files down from a web server. I can use the "get" task to pull these files down one by one. However, I'd like to be able to get a list of these files first and then iterate over the list with "get" to download the files. The webserver will report the list of files in json format, but I'm not sure how to parse json with ant.

Are there any ant plugins that allow for json parsing?

A: 

You can use a <script> task to run JavaScript to decode your JSON.

dave