Creating javadoc with gwt-user.jar through Gradle -
i'm trying compile javadocs application, , reason throws errors while compiling this:
/users/sander/.gradle/caches/artifacts-23/filestore/com.google.gwt/gwt-user/2.4.0/jar/949dcb5d14cb0e2c8dec98efc0760be68753c124/gwt-user-2.4.0.jar(com/google/gwt/dom/client/canvaselement.java):18: error: cannot access context import com.google.gwt.canvas.dom.client.context; all errors thrown found in gwt-user-2.4.0.jar. basically, (i think) it's trying compile .java source files jar file contains, shouldn't do. there way make javadoc command ignore java source files?
i've tried removing source files jar manually, way build succeeds. however, since jar gradle dependency, manually altering file not option.
i got work. turned out, javadoc command needed sourcepath flag set, because otherwise start looking source files in classpath, contained source files gwt jar file. since minimaljavadocoptions gwt class doesn't support this, had set manually adding following line:
options.addstringoption("sourcepath", <path_to_source>)
this fixed problem. not ideal, topic in gradle support forums has been created, see http://forums.gradle.org/gradle/topics/allow_javadoc_sourcepath_to_be_set_directly
Comments
Post a Comment