ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42814] - <zipfileset> changed under 1.7.0
Date Mon, 30 Jul 2007 04:07:15 GMT
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 oliver@puppycrawl.com  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message