On 6 August 2011 08:12, phil swenson <[email protected]> wrote:
>
> the ant copy patternset "includesfile" pulls in an external text file
> that has all the include patterns (like com/blah/**).  ant also has an
> "excludesfile".
>
> if there is a way to convert the sourceset to match this functionality
> so I could avoid the entire copy piece, that would be cool of
> course....

If you're coming from an Ant background, you're not used to having the
full power of a dynamic language in your build script. I'd highly
recommend taking the time to learn a little Groovy, which will make
your whole Gradle experience a little more, err, groovy.
One benefit of having groovy available is that it's trivial for you to
implement things like "includesfile", so we don't have to bloat Gradle
to handle every possible contingency.

Try something like:

sourceSets {
  main {
    java {
      file('includes.txt').eachLine { line ->
        include line
      }
      file('excludes.txt').eachLine { line ->
        exclude line
      }
    }
  }
}

-- 
Darrell (Daz) DeBoer
Principal Engineer, Gradleware
http://www.gradleware.com

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

    http://xircles.codehaus.org/manage_email


Reply via email to