diff --git a/WHATSNEW b/WHATSNEW index 360b66033..79d86514d 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -26,6 +26,8 @@ Fixed bugs: * fixed case handling of macrodef attributes and elements. Bugzilla Reports 25687 and 26225. +* ignored the append attribute, Bugzilla Report 26137. + Other changes: -------------- * Translate task logs a debug message specifying the number of files diff --git a/src/main/org/apache/tools/ant/taskdefs/Java.java b/src/main/org/apache/tools/ant/taskdefs/Java.java index f491f9e3d..ce7a11acc 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Java.java +++ b/src/main/org/apache/tools/ant/taskdefs/Java.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2003 The Apache Software Foundation. All rights + * Copyright (c) 2000-2004 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -93,7 +93,6 @@ public class Java extends Task { private boolean newEnvironment = false; private File dir = null; private boolean failOnError = false; - private boolean append = false; private Long timeout = null; private Redirector redirector = new Redirector(this); private String resultProperty; @@ -587,7 +586,7 @@ public class Java extends Task { * @since Ant 1.5 */ public void setAppend(boolean append) { - this.append = append; + redirector.setAppend(append); incompatibleWithSpawn = true; }