On 7/05/10 5:30 AM, mjparme wrote:
I am trying to create a jar file for the JavaDoc of my project. I am using
the java plugin and that produces the javadoc but not a jar of those java
docs.

So I am trying something like this:

task packageJavadoc(type: Jar, dependsOn: 'javadoc') {
     fileSet(dir: 'build/docs/javadoc')
}

This actually runs successfully but doesn't actually produce a Jar file (if
it is producing one I can't find it). So surely there is a way for me to
specify the name of the Jar file and a path to write it in?

So my question is really how can I find out which options are available for
a task of type Jar?

With Gradle there doesn't seem to be any reference you go to like the core
Ant task reference. For that matter how do I know what task types are
available for the "type:" parameter? Where is that documentation?

At this stage, we're relying on the API javadoc/groovydoc to provide this kind of information. After all, your build script is just some code that drives the Gradle API.

It is, however, a bit awkward to use the javadoc to write a build script. Gradle relies heavily on the Groovy DSL goodness, and also on dynamic nature of Groovy. Both of these make it difficult for a newcomer to figure out what's going on, I think. So, at some point, possibly soon, we will add some documentation for the tasks and various domain objects, which is more like the ant task reference.


--
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