On 28/03/10 5:50 PM, Geronimo M. H. wrote:
On Sunday 28 March 2010 01:34:26, Adam Murdoch wrote:
On 27/03/10 5:43 PM, Geronimo M. H. wrote:
Hello,

I'm using this working copy-definition
     copy {
        from artifacts
        into artDir
     }

now I'd like to change the task to a file-based processing like I use
with dependencies:

     for(file in configurations.runtime) {
        ...
    }

whatever I tried failed, so I had a look at DefaultArtifactHandler - but
I did not find a hint to proceed ...

So how can I access the artifact as a File-instance?
Assuming you're after the artifacts the build produces, you can do
something like:

for (file in configurations.archives.allArtifactFiles) {
}
Great ;)

I found out (from gradles javadoc), that Configurations have
a "getAllArtifacts", but I did not succeed to get the filename out of it.

Then I learned, that the configurations is a Set of defined Configurations
like "comile" or "runtime", but I did not know about the "archives"
Configuration.


Set the of configurations varies based on which plugins you use, plus you can add your own configurations for whatever purpose you need.

The user guide chapter for each plugin describes the configurations it adds. For example, here are the configurations that the java plugin adds: http://gradle.org/0.8/docs/userguide/java_plugin.html#sec:java_plugin_and_dependency_management

Anyway, we will discuss this further on the dev list before we start to
make changes here.
Is it Ok to join the dev-list (and participate in discussions) being a
gradle-newbie(-user) or is that list for the gradle team-members only?

Everyone is welcome in the dev list. The focus is more about design discussions, so we tend to assume a bit more knowledge of Gradle, but anyone is welcome to participate, regardless of how much they do or don't know about Gradle. You can always ask if you don't understand something. Even the asking of a question can be useful feedback.


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to