From e9397e61f856d4e4ff0ac1e63a2c1d9fb5483de1 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sun, 16 Feb 2003 13:57:42 +0000 Subject: [PATCH] Try to make error message clearer PR: 17033 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274089 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/taskdefs/optional/PropertyFile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java b/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java index c339080cf..bba095b19 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java @@ -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 @@ public class PropertyFile extends Task { + "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");