conor 2003/02/16 05:57:42
Modified: src/main/org/apache/tools/ant/taskdefs/optional
PropertyFile.java
Log:
Try to make error message clearer
PR: 17033
Revision Changes Path
1.28 +3 -3
ant/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
Index: PropertyFile.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -u -r1.27 -r1.28
--- PropertyFile.java 10 Feb 2003 14:13:45 -0000 1.27
+++ PropertyFile.java 16 Feb 2003 13:57:42 -0000 1.28
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -533,8 +533,8 @@
+ "properties (key:" + key + ")");
}
if (value == null && defaultValue == null) {
- throw new BuildException("value and/or default must be "
- + "specified (key:" + key + ")");
+ throw new BuildException("\"value\" and/or \"default\" "
+ + "attribute must be specified (key:" + key + ")");
}
if (key == null) {
throw new BuildException("key is mandatory");