ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47303] New: Copy failonerror is internally inconsistent with Warning message
Date Wed, 03 Jun 2009 00:19:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47303

           Summary: Copy failonerror is internally inconsistent with
                    Warning message
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: dsuits@lombardi.com


org.apache.tools.ant.taskdefs.Copy.copySingleFile()

If the source file does not exist, the following log is executed:

                String message = "Warning: Could not find file "
                    + file.getAbsolutePath() + " to copy.";
                if (!failonerror) {
                    log(message, Project.MSG_ERR);
                } else {
                    throw new BuildException(message);
                }

This is inconsistent and misleading.  If it is an error for the file to be
missing, then the message is incorrect "Warning:" should be spelled "Error:". 
If instead the intent of failonerror is to convert errors to warnings, then the
message priority should be Project.MSG_WARN.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message