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.
In trunk, each time I execute an ant target, I get following exception at the end of execution: java.lang.IllegalStateException: No match found at java.util.regex.Matcher.group(Matcher.java:468) at org.apache.tools.ant.module.api.IntrospectedInfo$3.load(IntrospectedInfo.java:706) at org.apache.tools.ant.module.AntSettings.getCustomDefs(AntSettings.java:112) at org.apache.tools.ant.module.bridge.impl.BridgeImpl$1.run(BridgeImpl.java:269) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963) Maybe this isn't related, but the progress bar for the previously terminated ant task remains active in the progress component (see screenshot)
Created attachment 35912 [details] Screenshot of the progress component
Hmm. Matcher m = p.matcher(ss[1]); assert m.matches() : k; String c = m.group(1); // ISE Did you turn assertions off? (You are running a daily dev build?) Need your log file as an attachment, as well as your $userdir/config/Preferences/org/apache/tools/ant/module/customDefs.properties. Any idea how to reproduce?
Here I go: started netbeans (trunk build) with a clean userdir, created a simple freeform project but couldn't reproduce it. Then I copied customDefs.properties to my new userdir, and there was the error. I'm also running with assertions disabled (no -J-ea switch). With the switch turned it doesn't occur. Attachments follow.
Created attachment 35934 [details] Sample freeform project with one ant target
Created attachment 35935 [details] customDefs
Created attachment 35936 [details] Log file
Right, only happens with assertions disabled. Checking in IntrospectedInfo.java; /shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/api/IntrospectedInfo.java,v <-- IntrospectedInfo.java new revision: 1.29; previous revision: 1.28 done
*** Issue 89507 has been marked as a duplicate of this issue. ***