Repository navigation
Straightforward use of ant javadoc on JDK25+ - #9701
Conversation
|
makes sense overall. The title is a bit misleading though, given that we already build the javadoc using JDK 25 for NetBeans releases with some of the newer features enabled. Something like "configure parser limits for javadoc target" would be more precise IMO, since the current title would imply that it can't be built on JDK 25 and above right now. This would also have to remove Line 84 in d5a2acd and netbeans/.github/workflows/main.yml Line 471 in d5a2acd with the same commit. We should do that for jenkins too (probably at https://github.com/apache/netbeans-jenkins-lib/blob/master/vars/asfMainNetBeansBuild.groovy) Eric/Neil know that area better. |
ant javadoc on JDK25+
|
|
Makes sense overall. Added @ebarboni as reviewer as he's probably done the most work on Javadoc here. Please wait for his input before merging. Is the naming There seem to be a lot of warnings about the property already being set in the CI, even after removing the environment variable? Is this setting in the right place? I assume the JDK also caches the first value it sees when needed.
Could possibly change for |
ebarboni
left a comment
There was a problem hiding this comment.
LGTM,
it works well with jdk25, it simplify build
PS:
there is a change in jdk26+ that remove jdk.jsobject => java.source.base javadoc are KO but not because of this PR
matthiasblaesing
left a comment
There was a problem hiding this comment.
Makes sense to me. Alternative (more specialized tasks) could be done, but this is small, well readable and solves the problem, so lets keep it. Thank you.
| <taskdef name="subant-junit" classname="org.netbeans.nbbuild.SubAntJUnitReport" classpath="${nbantext.jar}"/> | ||
| <taskdef name="resolvelist" classname="org.netbeans.nbbuild.ResolveList" classpath="${nbantext.jar}"/> | ||
| <taskdef name="checkmoduleconfigs" classname="org.netbeans.nbbuild.CheckModuleConfigs" classpath="${nbantext.jar}"/> | ||
| <taskdef name="sysproperty" |
There was a problem hiding this comment.
Nitpick: I think it would be good to follow the formatting convention of the surrounding code.
There was a problem hiding this comment.
There is
<taskdef name="hgid"
classname="org.netbeans.nbbuild.HgId"
classpath="${nbantext.jar}"/>just few lines above. E.g. there doesn't seem to be a single formatting of these statements.
c27f11b to
5ec934e
Compare
Problem Description
Generating Javadoc on JDK25+ fails as described on mailing list:
Workaround
The way this is currently handled is covered in the README at https://github.com/apache/netbeans#generating-javadoc
export ANT_OPTS=-Djdk.xml.totalEntitySizeLimit=200000
as pointed out by @neilcsmith-net
Review the Fix
@matthiasblaesing and @mbien joined the discussion and showed an interest in proper review. Let this PR be a forum for such a review.