ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43272] New: - Support Copy task extends
Date Fri, 31 Aug 2007 09:02:08 GMT
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=43272>.
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: dev@ant.apache.org
        ReportedBy: gekis@yandex.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(destDir, 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=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message