cellio: (avatar)
Monica ([personal profile] cellio) wrote2005-03-03 04:26 pm
Entry tags:

embarrassing code

I just wrote an ant target to call a bat file to loop over all files of a given type and call a different bat file. (This last bat file doesn't understand wildcards, and it's commercial software so I'm loathe to hack at it.)

I feel dirty.

(I couldn't figure out how to write the loop within the body of the ant target, which would clearly be better.)

[identity profile] dvarin.livejournal.com 2005-03-03 10:37 pm (UTC)(link)
You can't loop naturally in ant. When Elias was wanting to do that sort of thing in writing the buildfiles, he had to write a java plugin to ant to do it for him.

I don't think ant has any list functions either, so you can't loop by recursion.

[identity profile] magid.livejournal.com 2005-03-04 02:04 pm (UTC)(link)
Not knowing anything about programming, this sounds darned funny. I don't think most bats eat ans...