[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-dev
Subject:    DO NOT REPLY [Bug 42814]  - <zipfileset> changed under 1.7.0
From:       bugzilla () apache ! org
Date:       2007-07-30 4:07:15
Message-ID: 20070730040715.536207141F1 () brutus ! apache ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic