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.
There are some duplicated utility methods for working with Ant scripts which should be in the Ant module's API for convenience: String getAntScriptName(FileObject fo) AntProjectCookie getAntProjectCookie(FileObject fo) List<String> getAntScriptTargetNames(FileObject fo) Should be extracted from: ant.freeform/src/org/netbeans/modules/ant/freeform/Util.java o.apache.tools.ant.module/src/org/apache/tools/ant/module/api/support/TargetLister.java [module-private] contrib/autoproject.java/src/org/netbeans/modules/autoproject/java/AntUtils.java
Created attachment 62436 [details] Proposed patch for main
Created attachment 62437 [details] Proposed patch for contrib
Please review the proposed utility methods in AntScriptUtils and their usage.
core-main #d598bd794dfa
contrib #499ee5e4dcd4