I'm trying to grab a dynamic task to assign to the archives' artifacts. I'm
sure it must be easy but I'm missing the trick to actually get the task.



afterEvaluate { project ->
    // ...
    
    rarDirs.each { file ->
        task "rarFor_$file.name" (type Jar) {
            // ...
        }

        artifacts {
            // something like (doesn't work):
            archives getTask("rarFor_$file.name")
        }
    }
}    



Any ideas?
Cheers,
Chris.
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Adding-a-dynamic-task-to-a-configuration-s-artifacts-tp3238773p3238773.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


Reply via email to