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 56127

Summary: API review ow ActionsUtil.antIncludesList() method
Product: projects Reporter: Tomas Zezula <tzezula>
Component: Ant ProjectAssignee: Tomas Zezula <tzezula>
Status: CLOSED FIXED    
Severity: blocker Keywords: API_REVIEW_FAST
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 51132    
Attachments: Diff file

Description Tomas Zezula 2005-03-10 10:29:59 UTC
Change:
The current ActionUtils.antIncludeList (FileObject[] files, FileObject dir)
generates a recursive include list for directories. The API change introduces
new ActionUtils.antIncludeList (FileObject[] files, FileObject dir, boolean
recursive) which generates either recursive or non recursive include depending
on the value of the recursive parameter.
The old method is bridged into the new one.

Use case:
The compile single on the package should compile only the package (non recursive
 include) but the compile single on the folder (files view/tree view) should
compile the subtree (recursive include).
See: http://www.netbeans.org/issues/show_bug.cgi?id=51132

API Stability:
Should be part of the stable API
Both the old one and the new method are covered by test.
Comment 1 Tomas Zezula 2005-03-10 10:33:37 UTC
Created attachment 20736 [details]
Diff file
Comment 2 Tomas Zezula 2005-03-21 13:39:46 UTC
I am going to integrate it tomorrow.
Comment 3 Tomas Zezula 2005-03-22 07:59:34 UTC
Checking in src/org/apache/tools/ant/module/api/support/ActionUtils.java;
/cvs/ant/src/org/apache/tools/ant/module/api/support/ActionUtils.java,v  <-- 
ActionUtils.java
new revision: 1.10; previous revision: 1.9
done
Checking in
test/unit/src/org/apache/tools/ant/module/api/support/ActionUtilsTest.java;
/cvs/ant/test/unit/src/org/apache/tools/ant/module/api/support/ActionUtilsTest.java,v
 <--  ActionUtilsTest.java
new revision: 1.7; previous revision: 1.6
done
Comment 4 Tomas Zezula 2005-03-22 09:48:47 UTC
Checking in manifest.mf;
/cvs/ant/manifest.mf,v  <--  manifest.mf
new revision: 1.74; previous revision: 1.73
done
Checking in api/doc/changes/apichanges.xml;
/cvs/ant/api/doc/changes/apichanges.xml,v  <--  apichanges.xml
new revision: 1.16; previous revision: 1.15
done
Checking in src/org/apache/tools/ant/module/api/support/ActionUtils.java;
/cvs/ant/src/org/apache/tools/ant/module/api/support/ActionUtils.java,v  <-- 
ActionUtils.java
new revision: 1.11; previous revision: 1.10
done
Comment 5 Jaromir Uhrik 2005-07-14 16:20:22 UTC
Verified.