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.

Bug 190460 - ant test-generate-html cannot find build.dir
Summary: ant test-generate-html cannot find build.dir
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.0
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 13:27 UTC by Jan Lahoda
Modified: 2012-06-20 16:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-09-20 13:27:19 UTC
[recent sources, but is happening for some time]

When I try to run (java.hints) tests using:
$ cd java.hints
$ ant test
and then (if some tests fail) generate the html report:
$ ant test-generate-html
(still in java.hints directory)

the task crashes:
$ ant test-generate-html
Buildfile: build.xml

test-generate-html:

BUILD FAILED
/usr/local/home/lahvac/src/nb/working/nbbuild/templates/common.xml:692: /usr/local/home/lahvac/src/nb/working/java.hints/${build.dir}/test not found.

Total time: 1 second

To generate the report, I must do:
ant -Dbuild.dir=build test-generate-html
Comment 1 Jesse Glick 2010-09-20 22:52:19 UTC
"init test-generate-html" works. (Was designed to be run as "test test-generate-html" in which case build.dir gets defined first.)
Comment 2 Jaroslav Tulach 2012-06-20 16:33:56 UTC
Seems to be fixed in 7.2.