patternset is nested within fileset, yet I don't see that closure in your gradle translation. Add some more curly braces and it should work fine.
-Spencer --- On Thu, 8/4/11, phil swenson <[email protected]> wrote: From: phil swenson <[email protected]> Subject: [gradle-user] translating ant.copy to gradle To: [email protected] Date: Thursday, August 4, 2011, 5:27 PM I gave up on trying to setup a source set filter to do what I need (can't find any examples) so now I'm trying to just directly convert ant: <copy todir="${component.out}/src" preservelastmodified="true"> <fileset dir="${java.src.dir}"> <patternset id="compile-scope"> <includesfile name="${component.compile.includes}" /> <excludesfile name="${component.compile.excludes}" /> <exclude name="**/test/**"/> </patternset> </fileset> </copy> to ant.copy(todir:"build/mapiToCompile"){ fileset dir:"/Users/phil/dev/optimize/trunk/src/java/core" patternset{ includesfile name: "/Users/phil/dev/optimize/trunk/build/dependencies/compile/mapi.txt" excludesfile name: "/Users/phil/dev/optimize/trunk/build/dependencies/compile/mapi-exclude" } } I got this error: A problem occurred evaluating root project 'bas-l10nSample'. Cause: copy doesn't support the nested "patternset" element. Cause: The <copy> type doesn't support the nested "patternset" element. Can I not translate this to gradle? Thanks phil --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
