And what about 'android.plugin.runtimeJarList'? 'getRuntimeJarList' has an 
explicit public modifier in its declaration :)
Does it mean something?
Another question: is 'android.plugin' a public API?

On Tuesday, 18 June 2013 18:25:05 UTC+3, Xavier Ducrohet wrote:
>
> This is correct, but accessing 'android.plugin.sdkDirectory' is a private 
> API so it may start failing at any time.
>
>
> On Sun, Jun 16, 2013 at 12:20 AM, Matthew Accola 
> <[email protected]<javascript:>
> > wrote:
>
>> I think I have it figured out.  Here is what I came up with.  Any 
>> suggestions for improvement are welcome.
>>
>> android.libraryVariants.findAll { variant -> variant.name == 'Release' } 
>> each { variant ->
>>  task("generate${variant.name}Javadoc", type: Javadoc) {
>>  description "Generates Javadoc for $variant.name."
>>  source = variant.javaCompile.source
>> ext.androidJar = 
>> "${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
>>  classpath = files(variant.javaCompile.classpath.files) + 
>> files(ext.androidJar)
>> }
>>
>> task("bundle${variant.name}Javadoc", type: Zip) {
>>  description "Bundles Javadoc into zip for $variant.name."
>>  classifier = "javadoc"
>> from tasks["generate${variant.name}Javadoc"]
>>  }
>> }
>>
>> On Wednesday, June 12, 2013 8:59:26 AM UTC-7, Matthew Accola wrote:
>>>
>>> I'd like to add the android.jar to the classpath of a Javadoc task but I 
>>> can't figure out where in the model the path to the jar is exposed.  Is 
>>> there a place?  Here is my current Javadoc task.
>>>
>>> android.libraryVariants.findAll { variant -> variant.name == 'Release' 
>>> } each { variant ->
>>>
>>>     task("generate${variant.name}Javadoc", type: Javadoc) {
>>>
>>>         failOnError false
>>>
>>>         source = variant.javaCompile.source
>>>
>>>         ext.cp = variant.javaCompile.classpath.files
>>>
>>>         classpath = files(ext.cp)
>>>
>>>     }
>>>
>>> }
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to