ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Chalko <>
Subject Re: DO NOT REPLY [Bug 26511] - Add IFileSet interface
Date Thu, 29 Jan 2004 08:22:24 GMT wrote:

>I don´t know ruper. But "autodownload and cache resources" via fileset? A 
>fileset lists per definition only present files ... why download present files?
Here is a sample of what I want to achieve. 
<ruperset id="test1">
            <resource name="log4j" version="1.2" repository="maven"/>
        <copy toDir="${test.dir}">
            <fileset refid="test1"/>

If ruper has a copy of log4j version 1.2 then good, if not download and 
store localy,  in all cases the fileset with refid="test1"    would 
return  <mylocal-jar-dir>/org.apache.jakarta/log4j/jars/log4j-1.2.jar   

However I seem to have error already
 Copy doesn't like
public void addFileset(IFileSet set) {

It says 
 The <copy> type doesn't support the nested "fileset" element.

So I will need to investigate some more. 
It does seem that FileSet is a heavy. 
It seems to me that the base type for FileSet   sould only have then method
publid File[] getFiles()

I will take a look at selectors.


>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message