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 - Common utility methods for Ant scripts
Summary: Common utility methods for Ant scripts
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2008-06-05 20:24 UTC by Jesse Glick
Modified: 2008-06-12 21:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch for main (38.08 KB, patch)
2008-06-05 21:33 UTC, Jesse Glick
Details | Diff
Proposed patch for contrib (12.39 KB, patch)
2008-06-05 21:33 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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