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: [email protected]
ReportedBy: [email protected]
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.