DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42814>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42814 ------- Additional Comments From [EMAIL PROTECTED] 2007-07-29 21:07 ------- The problem I am solving in my main build.xml file it so locate all the Spring configuration files in a set of JAR files and populate a ANT property with these names. This is used then to set a value in a application configuration file (via a <filterset>) which is used to initialise the system. Thanks to Paul's suggestion, below is what I ended up doing with Groovy that works under ANT 1.6.5 and 1.7.0. I'll leave it up to you if you want to close out this bug. ======================================================= <groovy> import java.util.jar.JarFile; theincs = "" def libdir = new File("${properties['local.target']}/lib") libdir.listFiles().grep(~/.*(dao|service)-.*jar$/).each() { it -> new JarFile(it).entries().each() { entry -> if (entry.name ==~ /^com\/kazgroup\/courtlink\/.*\/spring-inc-.*.xml$/) { theincs = theincs + " " + entry.name } } } properties["all-spring-incs"] = theincs </groovy> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]