List Info

Thread: DO NOT REPLY New: - Support Copy task extends




DO NOT REPLY New: - Support Copy task extends
country flaguser name
United States
2007-08-31 04:02:08
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43
272>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43272

           Summary: Support Copy task extends
           Product: Ant
           Version: 1.7.0RC1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks
        AssignedTo: devant.apache.org
        ReportedBy: gekisyandex.ru


1. Now I could NOT customize destination of Copy task using
extends.

Enhancement: create in Copy task method for overriting 

Resource getDestResource(File file, String toFile){
   return new FileResource(destDir, toFile);
}

Copy.doResourceOperations(){
  ...
 
ResourceUtils.copyResource(fromResource,getDestResource(dest
Dir, toFile),...
  ...

2. It is impossible to extends most of Ant classes (exapmle
LineTokenizer):
all class members are PRIVATE. Very bad solution.

3. Most of task have very similar behaviour but every of
them written almost by
the scratch. Example Copy and Move task. As result I have an
Exception in Move
also the Copy with the same parameters work OK.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


DO NOT REPLY - Support Copy task extends
country flaguser name
United States
2007-08-31 04:30:37
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43
272>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43272


peterreillyapache.org changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )