From 46a9d8a1c5405c2bca68ee070c0a7ce3d716a09e Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 30 Jan 2004 13:58:58 +0000 Subject: [PATCH] ignored the append attribute. PR: 26137 Submitted by: Emmanuel Rayzal git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275982 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 2 ++ src/main/org/apache/tools/ant/taskdefs/Java.java | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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; }