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 253004 - junit test with a (java) file containg .xml in its name fails.
Summary: junit test with a (java) file containg .xml in its name fails.
Status: RESOLVED DUPLICATE of bug 246526
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 8.0
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-15 13:22 UTC by EduardKarelEtc
Modified: 2015-06-24 15:47 UTC (History)
0 users

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 EduardKarelEtc 2015-06-15 13:22:10 UTC
In the build file common.xml on lines 863-866 an ANT condition is specified matching any file that has ".xml" as substring with the intended effect that such a file is not tested.

This condition matches any file where the path name contains 'xml' hence any file directly or nested in package that starts with 'xml'. This is incorrect.

This bug can be corrected with the ant 'matches' task with a pattern to match .xml as file name suffix.

A work around is to patch the ant target with this incorrect condition in the build.xml file.
Comment 1 Tomas Stupka 2015-06-24 15:47:03 UTC
perhaps this was already fixed in issue #246526

please always provide info about your NetBeans version
Comment 2 Tomas Stupka 2015-06-24 15:47:37 UTC

*** This bug has been marked as a duplicate of bug 246526 ***