On Nov 14, 2008, at 7:16 AM, mvlcek wrote:



hdockter wrote:


On Nov 12, 2008, at 8:20 AM, mvlcek wrote:


How do I define in libs/dists files other than archives that I want
to upload
to a repository?

We don't provide a way for this yet. But we should do.



Yes, it should be possible to upload any files (e.g. a .tld file for a tag
library) as it is with Ivy.
Maybe you can add a fileSet to the dists path?

Thinking about it again:

What you can do is something like (configure is a rather new convenience method in trunk):

dependencies {
        addArtifacts('libs', configure(new DefaultPublishArtifact()) {
                        name = 'mytaglib'
                        extension = 'tld'
                        type = 'tld'})
}

See http://gradle.org/api/latestlatest/org/gradle/api/ DependencyManager.html and the methods getAbsoluteArtifactPattern, getDefaultArtifactPaterns and getArtifactParentDirs for telling Ivy where to look for artifacts.


BTW, how can I specify the configuration, in which the file will be
published (e.g. a source configuration for the published source code)?

Could you explain this a little bit more?

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





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

   http://xircles.codehaus.org/manage_email


Reply via email to