This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Now you have to setup the test.results.dir property manually otherwise the task fails with: $ ant test-generate-html Buildfile: build.xml -do-test-generate-html: BUILD FAILED /space/nbhg/main/nbbuild/templates/common.xml:558: /space/nbhg/main/languages/${test.results.dir} not found. The fix should be easy, see the attached patch. If nobody objects I'll commit it at Fri.
Created attachment 70340 [details] common.xml patch
[JG01] Do not use Report URL: file:${basedir}/html/index.html Rather run <makeurl> so as to work correctly on all platforms. [JG02] You can simplify by making -test-browse-html depend on -do-test-generate-html and calling only -test-browse-html in <subant>.
Created attachment 70446 [details] Better patch.
CCing Lukas who have a idea how to browse results without Nb.
Created attachment 70478 [details] patch w/o nbbrowse
idea used in a patch I attached is stolen from webapps' headless build created by Stepan Herold. Also note that it will perhaps need some cleanup and testing (I didn't do that, sorry) - feel free to improve and apply it if it suites your needs ;-)
mschovanek's last patch looks fine to me. Please do not use jungi's patch. The browser display is intended only for interactive use within the IDE. Command-line builds should not attempt to do anything like this.
Just FYI: my intention was only to avoid using nbbrowse, nothing else - therefore I didn't spend time on making conditions "correct" in sense of when exactly to open a browser
Lots of targets that create HTML of possible interest run nbbrowse when netbeans.home is set (i.e. when run from inside the IDE). When run outside the IDE, whether on a desktop machine or a headless server, we do not want to do anything.
OK, I'm not trying to convince you.
http://hg.netbeans.org/main/rev/c1a418952c3b
fixed
Integrated into 'main-golden', will be available in build *200809290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c1a418952c3b User: Martin Schovanek <mschovanek@netbeans.org> Log: Issue #148068 - test-generate-html task should setup test.results.dir