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.
Summary: | IAE: Zero or multiple asterisks in .../Ai2a*/build/generated-sources/ap-source-output/*.java | ||
---|---|---|---|
Product: | java | Reporter: | michbarsinai <michbarsinai> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jglick |
Priority: | P4 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 184002 |
Attachments: | stacktrace |
Description
michbarsinai
2011-12-23 21:19:37 UTC
Created attachment 114440 [details]
stacktrace
java.api.common.queries.FileBuiltQueryImpl.createDelegate uses root + "/*.java" which is dangerous; should probably use "${build.generated.sources.dir}/" + root.getName() + "/*.java" instead. Ought to be easy enough to check in a unit test. Workaround: do not include metacharacters such as asterisk (*) in project names, since this is bound to confuse Ant scripts in general. Sorry, not an API issue. (I was originally thinking that createGlobFileBuiltQuery would have to be changed to permit multiple asterisks, ignoring all but the last, but this now seems unnecessary.) Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it. |