Am Di, 18.01.2011, 10:58, schrieb Sean Van Buggenum:
> Hi all,
>
>
> mail is an optional ant task. First i've tried adding the mail.java and
> activation.jar files to the appropriate places (in the gradle/lib path)
> like I had already before for ant. That didn't work.
>
>
> I've seen an example a similar problem, in the gradle doco
>
>
> http://www.gradle.org/0.8/docs/userguide/organizing_build_logic.html
>
>
> configurations { ftpAntTask }
>
>
> dependencies { ftpAntTask("org.apache.ant:ant-commons-net:1.7.0") {
> module("commons-net:commons-net:1.4.1") {
> dependencies "oro:oro:2.0.8:jar" }
> }
> }
>
>
> but I do not quite understand it, and how I can apply it to my problem.
>
>
> What is that string that is used the keyword 'dependencies'
> And that string in the module task ("commons-net:commons-net:1.4.1)
> What sort of string is this?
This string is used as a unique identifier for the artifact you depend on.
If you have the snippet:
dependencies {
ftpAntTask("org.apache.ant:ant-commons-net:1.7.0")
}
is just a common shortcut for
dependencies {
ftpAntTask(group:"org.apache.ant", name:"ant-commons-net"version:"1.7.0")
}
with these informations you can resolve your artifact from a common maven
repository. if you're not sure about the detailed unique version string,
you can have a look at
http://mvnrepository.com/artifact/org.apache.ant/ant-javamail/1.8.2
This is explained in detail in the gradle user guide (chapter 32) have
look at
gradle.org/0.9.1/docs/userguide/dependency_management.html#sec:dependency_configurations
.
regards,
René
>
>
> I would have to add the mail.jar and activation.jar in this somehow ,
> but I don't understand this syntax.
>
> Would be helpful if someone can tell me what it should look like.
> But also, obviously I am new to groovy (as well as gradle) .... and
> this is probably the reason why I have no real idea of how to work this out
> for myself, without a concrete example. What should I read/look at to
> inform myself? Is this groovy knowledge I need in this particular case, or
> gradle knowledge only?
>
> thanks,
>
> sean
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
> http://xircles.codehaus.org/manage_email
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email