Warning: mysql_real_escape_string(): No such file or directory in /customers/webs/271605/www/volkersfreunde/wp-content/plugins/statpress/statpress.php on line 1191 Warning: mysql_real_escape_string(): A link to the server could not be established in /customers/webs/271605/www/volkersfreunde/wp-content/plugins/statpress/statpress.php on line 1191 Warning: mysql_real_escape_string(): No such file or directory in /customers/webs/271605/www/volkersfreunde/wp-content/plugins/statpress/statpress.php on line 1194 Warning: mysql_real_escape_string(): A link to the server could not be established in /customers/webs/271605/www/volkersfreunde/wp-content/plugins/statpress/statpress.php on line 1194 Warning: mysql_real_escape_string(): No such file or directory in /customers/webs/271605/www/volkersfreunde/wp-content/plugins/statpress/statpress.php on line 1197 Warning: mysql_real_escape_string(): A link to the server could not be established in /customers/webs/271605/www/volkersfreunde/wp-content/plugins/statpress/statpress.php on line 1197 Android jar tasks » volkersfreunde

Android jar tasks

Android lacks tasks to generate sourceJars, javaDocJars by default.

Wiebe posted a neat solution, I improved upon it and uploaded it as a Gist:

This should work equally good if you replace .libraryVariants with .applicationVariants but I don´t know why you want to generate Javadoc for an App.

This will create these tasks:


Jar tasks
---------
generateDebugJavadocJar - Assembles a jar archive containing the generated Javadoc API documentation of debug.
generateDebugProguardFilesJar - Assembles a jar archive containing the Proguard files of debug.
generateDebugSourcesJar - Assembles a jar archive containing the main sources of debug.
generateJavadoc - Generate all Javadoc of all Variants
generateJavadocJar - Generate all Javadoc Jars of all Variants
generateMinifiedJavadocJar - Assembles a jar archive containing the generated Javadoc API documentation of minified.
generateMinifiedProguardFilesJar - Assembles a jar archive containing the Proguard files of minified.
generateMinifiedSourcesJar - Assembles a jar archive containing the main sources of minified.
generateProguardJar - Generate all Proguard Jars of all Variants
generateReleaseJavadocJar - Assembles a jar archive containing the generated Javadoc API documentation of release.
generateReleaseProguardFilesJar - Assembles a jar archive containing the Proguard files of release.
generateReleaseSourcesJar - Assembles a jar archive containing the main sources of release.
generateSourcesJar - Generate all Sources Jars of all Variants

If you have comments on the solution, feel free add them directly in the Gist, fork it, improve it!

Kommentare sind geschlossen.