Easy way to expand file?

View: New views
3 Messages — Rating Filter:   Alert me  

Easy way to expand file?

by Robert Fischer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd like to expand ./foo/bar/*.baz a la the file system or Ant, and I'd like to get a file back from
that.  Is there an easy way to do this in Groovy or Gradle?

--
~~ Robert Fischer, Smokejumper IT Consulting.
Enfranchised Mind Blog http://EnfranchisedMind.com/blog

Grails Expert Retainer Services
http://smokejumperit.com/grails-retainer/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Easy way to expand file?

by Tim Yates :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Best I can think of is:

new AntBuilder().fileset( dir:"foo/bar" ) { include ( name:"*.baz" ) }

Tim

On Sun, Nov 1, 2009 at 12:52 AM, Robert Fischer <robert.fischer@...> wrote:
I'd like to expand ./foo/bar/*.baz a la the file system or Ant, and I'd like to get a file back from that.  Is there an easy way to do this in Groovy or Gradle?

--
~~ Robert Fischer, Smokejumper IT Consulting.
Enfranchised Mind Blog http://EnfranchisedMind.com/blog

Grails Expert Retainer Services
http://smokejumperit.com/grails-retainer/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email




Re: Easy way to expand file?

by Chris Broadfoot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Found an old thread on this that provides a solution:

http://markmail.org/thread/p4mquxemamr73gmt

2009/11/1 Tim Yates <tim.yates@...>:

> Best I can think of is:
>
> new AntBuilder().fileset( dir:"foo/bar" ) { include ( name:"*.baz" ) }
>
> Tim
>
> On Sun, Nov 1, 2009 at 12:52 AM, Robert Fischer
> <robert.fischer@...> wrote:
>>
>> I'd like to expand ./foo/bar/*.baz a la the file system or Ant, and I'd
>> like to get a file back from that.  Is there an easy way to do this in
>> Groovy or Gradle?
>>
>> --
>> ~~ Robert Fischer, Smokejumper IT Consulting.
>> Enfranchised Mind Blog http://EnfranchisedMind.com/blog
>>
>> Grails Expert Retainer Services
>> http://smokejumperit.com/grails-retainer/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email