netbeans shared.xml jtreg and javadoc.options properties

Lance Andersen Lance.Andersen at oracle.com
Fri Apr 5 14:19:38 UTC 2013


Hi all,

While finishing up the netbeans JDBC project, I tried to run the jtreg target and  received the following error;


/Users/lance/Documents/hg-workspaces/jdk8/jdbc-jdk/jdk/make/netbeans/common/shared.xml:289: A source file is missing :/Users/lance/Documents/hg-workspaces/jdk8/jdbc-jdk/jdk/build/windows-x86_64/jtreg/JDBC42/JTreport/report.html
	at org.apache.tools.ant.taskdefs.MakeUrl.validateFile(MakeUrl.java:227)
	at org.apache.tools.ant.taskdefs.MakeUrl.execute(MakeUrl.java:246)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:487)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.Target.performTasks(Target.java:413)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 26 seconds)


I changed common/shared.xml from

hg diff shared.xml 
diff -r 5d0c891264bf make/netbeans/common/shared.xml
--- a/make/netbeans/common/shared.xml	Mon Mar 25 14:29:13 2013 +0000
+++ b/make/netbeans/common/shared.xml	Fri Apr 05 10:10:50 2013 -0400
@@ -276,7 +276,7 @@
         <!-- You can override this target in the ../build.xml file. -->
     </target>
     <target name="-jtreg" depends="-init,-pre-jtreg,-taskdef-jtreg,-check-tests-defined,-jtreg-setup,-jtreg-make,-jtreg-ant,-post-jtreg">
-        <property name="jtreg.report" location="${jtreg.dir}/JTreport/report.html"/>
+        <property name="jtreg.report" location="${jtreg.dir}/JTreport/html/report.html"/>
         <condition property="jtreg.passed">
             <equals arg1="${jtreg.result}" arg2="0"/>
         </condition>
@@ -338,7 +338,7 @@
         <!-- Note: even with this default value, includes/excludes
          from share.src.dir get javadoc'd; see packageset below -->
         <property name="javadoc.packagenames" value="none"/> <!-- default, can be overridden per user or per project -->
-        <javadoc destdir="${javadoc.dir}" source="1.5"
+        <javadoc destdir="${javadoc.dir}" source="1.8"
             windowtitle="UNOFFICIAL" failonerror="true" use="true"
             author="false" version="false"
             packagenames="${javadoc.packagenames}">


Which allows the jtreg tests to run and pull up the report.  It also allows the javadocs to be generated

Is there any reason I should not check in the above change into openjdk8?

Also, the javadoc.options property is not set by default but can be set in the individual build.properties.

Should this match what is specified in the jdk make files, or at least include -Xdoclint:none as the makefiles do?


Best
Lance



Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com







More information about the core-libs-dev mailing list