holtdl 02/05/29 18:47:56
Modified: src/main/org/apache/tools/ant/taskdefs Tag: ANT_15_BRANCH
UpToDate.java
Log:
Put the fix in the branch (see rev 1.20).
Revision Changes Path
No revision
No revision
1.19.2.1 +4 -0
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/UpToDate.java
Index: UpToDate.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/UpToDate.java,v
retrieving revision 1.19
retrieving revision 1.19.2.1
diff -u -r1.19 -r1.19.2.1
--- UpToDate.java 15 Apr 2002 15:33:09 -0000 1.19
+++ UpToDate.java 30 May 2002 01:47:56 -0000 1.19.2.1
@@ -223,6 +223,10 @@
* than (each of) the corresponding source file(s).
*/
public void execute() throws BuildException {
+ if (_property == null) {
+ throw new BuildException("property attribute is required.",
+ location);
+ }
boolean upToDate = eval();
if (upToDate) {
this.project.setNewProperty(_property, getValue());
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>