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 136597

Summary: Common utility methods for Ant scripts
Product: projects Reporter: Jesse Glick <jglick>
Component: AntAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: apireviews
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed patch for main
Proposed patch for contrib

Description Jesse Glick 2008-06-05 20:24:40 UTC
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
Comment 1 Jesse Glick 2008-06-05 21:33:32 UTC
Created attachment 62436 [details]
Proposed patch for main
Comment 2 Jesse Glick 2008-06-05 21:33:48 UTC
Created attachment 62437 [details]
Proposed patch for contrib
Comment 3 Jesse Glick 2008-06-05 21:34:48 UTC
Please review the proposed utility methods in AntScriptUtils and their usage.
Comment 4 Jesse Glick 2008-06-12 16:43:38 UTC
core-main #d598bd794dfa
Comment 5 Jesse Glick 2008-06-12 21:45:22 UTC
contrib #499ee5e4dcd4