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 4821] New: - remotedir mandatory when sending files, contrary to documentation
Date Tue, 13 Nov 2001 01:21:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4821>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4821

remotedir mandatory when sending files, contrary to documentation

           Summary: remotedir mandatory when sending files, contrary to
                    documentation
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jakarta@ehatchersolutions.com


Shouldn't transferFiles occur *after* the 'if' rather than inside?  remotedir 
shouldn't be mandatory to send files since the server will default to one 
automatically.

                if (remotedir != null)
                {
                    log("changing the remote directory", Project.MSG_VERBOSE);
                    ftp.changeWorkingDirectory(remotedir);
                    if (!FTPReply.isPositiveCompletion(ftp.getReplyCode()))
                    {
                        throw new BuildException(
                                                 "could not change remote 
directory: " +
                                                 ftp.getReplyString());
                    }

                    log(ACTION_STRS[action] + " files");
                    transferFiles(ftp);
                }

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


Mime
View raw message