ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rogers" <jason.rog...@tumbleweed.com>
Subject RE: [antlist] custom task - how to pass *.java filenames
Date Wed, 01 Aug 2001 15:40:34 GMT
Is there any reason to add in the expense of a Vector (vs. a List like
ArrayList)?  Is there multithreading going on?

-Jason

    > -----Original Message-----
    > From: Matthew Inger [mailto:matti@sedonacorp.com]
    > Sent: Wednesday, August 01, 2001 11:30 AM
    > To: ant-user@jakarta.apache.org
    > Subject: Re: [antlist] custom task - how to pass *.java filenames
    > 
    > 
    > T Master wrote:
    > 
    > >I'm starting to write my own custom task (oooooh) as a 
    > wrapper around
    > >JavaNCSS.
    > >
    > >I want to be able to pass all the *.java names to my task.
    > >I'm thinking I should have my custom task allow a nested 
    > fileset (along with
    > >patternset).
    > >
    > >How would I pass this to my task?  Would it be a 
    > String[] of the actual
    > >*.java filenames?
    > >
    > >All comments appreciated, and thanks in advance.
    > >
    > >T Master
    > >
    > add the following to your task:
    > 
    > 
    > private Vector filesets = new Vector();
    > 
    > public void addFileset(FileSet set)
    > {
    >     filesets.addElement(set);
    > }
    > 
    > 
    > 
    > 
    > 
    > 


Mime
View raw message