tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1094836 - /tapestry/tapestry5/trunk/build.gradle
Date Tue, 19 Apr 2011 01:20:12 GMT
Author: hlship
Date: Tue Apr 19 01:20:11 2011
New Revision: 1094836

URL: http://svn.apache.org/viewvc?rev=1094836&view=rev
Log:
TAP5-116: Add root project aggregateJavadocs task

Modified:
    tapestry/tapestry5/trunk/build.gradle

Modified: tapestry/tapestry5/trunk/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1094836&r1=1094835&r2=1094836&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/build.gradle (original)
+++ tapestry/tapestry5/trunk/build.gradle Tue Apr 19 01:20:11 2011
@@ -85,4 +85,43 @@ subprojects {
             
         }
     }
-}
\ No newline at end of file
+}
+
+subprojects.each { evaluationDependsOn(it.name) }
+
+// Cribbed from
+https://github.com/hibernate/hibernate-core/blob/master/release/release.gradle#L19
+
+javadocBuildDir = dir( buildDirName + "/documentation/javadocs" )
+
+task aggregateJavadocs(type: Javadoc) {
+   description = "Build the aggregated JavaDocs for all modules"
+   maxMemory = '512m'
+   destinationDir = javadocBuildDir.dir
+   configure(options) {
+       // overview = new File( projectDir, 'src/javadoc/package.html' )
+       // stylesheetFile = new File( projectDir, 'src/javadoc/stylesheet.css' )
+       windowTitle = 'Tapestry API Documentation'
+       docTitle = "Tapestry JavaDoc ($project.version)"
+       bottom = "Copyright &copy; 2003-2011 <a href=\"http://tapestry.apache.org\">The
Apache Software Foundation</a>."
+       use = true
+       links = [ 'http://download.oracle.com/javase/6/docs/api/', 'http://download.oracle.com/javaee/6/api/'
]
+   }
+
+   subprojects.each { subProject->
+
+       subProject.sourceSets.each { set ->
+		
+           if ("test" != set.name) {
+               source set.java
+
+               if (classpath) {
+                   classpath += set.classes + set.compileClasspath
+               }
+               else {
+                   classpath = set.classes + set.compileClasspath
+               }
+           }
+       }
+   }
+}



Mime
View raw message