To use gradle for zipping at the moment it's best to have a Zip task :) If you need zip method on the project please file a jira ticket and we'll decide/prioritize it.
Cheers, Szczepan On Mon, Jun 6, 2011 at 12:43 PM, evgenyg <evge...@gmail.com> wrote: > Hi, > > Gradle Project has convenient methods like copy() or delete() that can be > used everywhere. Some Gradle tasks, like Zip, are not available via Project > methods and the way to use them is shown in > http://gradle.org/current/docs/userguide/working_with_files.html#sec:archives > "15.8. Creating archives" by creating a new explicit task: > > task zip(type: Zip) { > from 'src/dist' > into('libs') { > from configurations.runtime > } > } > > > But what if I want to invoke a Zip task inside some other task? Today I use > https://github.com/evgeny-goldin/teamcity-plugins/blob/b0d6a1be83c5312f6026464092d539cedc253b73/build.gradle#L55 > ant.zip(..) to accomplish that but would like to move away from Ant and use > more Gradle's built-in tasks. > > Can it be done or I'd better keep on using Ant for that? Thanks! > > ----- > Best regards, > > Evgeny > > evgeny-goldin.com > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/Explicitly-invoking-a-Task-when-there-s-no-Project-method-tp4458231p4458231.html > Sent from the gradle-user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Szczepan Faber Principal engineer@gradleware Lead@mockito --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email