ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1727566 - /ace/trunk/build.gradle
Date Fri, 29 Jan 2016 12:35:15 GMT
Author: jawi
Date: Fri Jan 29 12:35:15 2016
New Revision: 1727566

URL: http://svn.apache.org/viewvc?rev=1727566&view=rev
Log:
Only use the doclint option when compiling with Java 8.

Modified:
    ace/trunk/build.gradle

Modified: ace/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ace/trunk/build.gradle?rev=1727566&r1=1727565&r2=1727566&view=diff
==============================================================================
--- ace/trunk/build.gradle (original)
+++ ace/trunk/build.gradle Fri Jan 29 12:35:15 2016
@@ -32,13 +32,16 @@ subprojects {
   def bndProject = bndWorkspace.getProject(name)
   if (bndProject != null) {
     plugins.apply 'biz.aQute.bnd'
-    
+
     test {
       useTestNG()
     }
-    
+
     tasks.withType(Javadoc) {
-      options.addStringOption('Xdoclint:none', '-quiet')
+        def runningJVM = JavaVersion.current().toString()
+        if (runningJVM.matches("1\\.8.*")) {
+            options.addStringOption('Xdoclint:none', '-quiet')
+        }
     }
   }
 



Mime
View raw message