Skip to content

Commit

Permalink
Add more debug output for javadoc build options
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed Apr 6, 2023
1 parent 579736c commit 3444471
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions bundles/org.eclipse.jdt.doc.isv/buildDoc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,31 +105,31 @@

<echo>org.eclipse.jdt.doc.isv/buildDoc.xml - generateJavadoc:</echo>
<echo>Using java home: ${java.home} and javadocExecutable: ${javadocExecutable}</echo>
<!--

<echo>${basedir}/${replaceFile} before _* expansion:</echo>
<concat><filelist files="${basedir}/${replaceFile}"></filelist></concat>
-->

<!-- strip away leading path -->
<replaceregexp file="${basedir}/${replaceFile}" flags="g" match="(?m)^.*/([^/]*)$$" replace="\1" />
<!-- remove lines without version pattern "[_-]\d+\.\d+\.\d+"; version pattern is a workaround for bug 402392 -->
<replaceregexp file="${basedir}/${replaceFile}" flags="g" match="(?m)^(.*[-_]\d+\.\d+(\.\d+)?.*)|(.*)$$" replace="\1" />
<!-- create "<aa>_*[.jar]=<aa><version>[.jar]" property for lines with a version -->
<replaceregexp file="${basedir}/${replaceFile}" flags="g" match="(?m)^(.*)[-_]\d+\.\d+(\.\d+)?.*?(.jar)?$$" replace="\1_*\3=\0" />

<!--

<echo>${basedir}/${replaceFile} after _* expansion:</echo>
<concat><filelist files="${basedir}/${replaceFile}"></filelist></concat>
-->


<!-- workaround for bug 402392, which can make the ${replaceFile} end up empty: -->
<echo file="${basedir}/${replaceFile}" append="true">dummyForBug402392=dummyForBug402392&#xA;</echo>

<replace file="${basedir}/${optionsFile}" replacefilterfile="${basedir}/${replaceFile}"/>

<!--

<echo>${basedir}/${optionsFile} after _* expansion:</echo>
<concat><filelist files="${basedir}/${optionsFile}"></filelist></concat>
-->


<!--scrub isv plugin directories of any preexisting api doc content-->
<delete dir="reference/api"/>
Expand All @@ -139,9 +139,12 @@
<property name="env.JAVA_DOC_PROXIES" value=""/>

<exec dir="." executable="${javadocExecutable}" output="target/doc.bin.log" timeout="600000">
<arg line="@${basedir}/${optionsFile} -J-Xmx500M ${env.JAVA_DOC_PROXIES}" />
<arg line="@${basedir}/${optionsFile} -J-Xmx1000M ${env.JAVA_DOC_PROXIES}" />
</exec>

<echo>target/doc.bin.log after javadoc execution</echo>
<concat><filelist files="${basedir}/target/doc.bin.log"></filelist></concat>

<!--workaround for bug 409511, bug 101048-->
<replace dir="reference/api" token="='/../misc/api-usage-rules.html" value="='./../misc/api-usage-rules.html">
<include name="*.htm*" />
Expand Down

0 comments on commit 3444471

Please sign in to comment.