Browse Source

<java> ignored the append attribute.

PR: 26137
Submitted by:	Emmanuel Rayzal <emmanuel at ukibi dot com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275982 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
46a9d8a1c5
2 changed files with 4 additions and 3 deletions
  1. +2
    -0
      WHATSNEW
  2. +2
    -3
      src/main/org/apache/tools/ant/taskdefs/Java.java

+ 2
- 0
WHATSNEW View File

@@ -26,6 +26,8 @@ Fixed bugs:
* fixed case handling of macrodef attributes and elements. Bugzilla * fixed case handling of macrodef attributes and elements. Bugzilla
Reports 25687 and 26225. Reports 25687 and 26225.


* <java> ignored the append attribute, Bugzilla Report 26137.

Other changes: Other changes:
-------------- --------------
* Translate task logs a debug message specifying the number of files * Translate task logs a debug message specifying the number of files


+ 2
- 3
src/main/org/apache/tools/ant/taskdefs/Java.java View File

@@ -1,7 +1,7 @@
/* /*
* The Apache Software License, Version 1.1 * 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. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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 boolean newEnvironment = false;
private File dir = null; private File dir = null;
private boolean failOnError = false; private boolean failOnError = false;
private boolean append = false;
private Long timeout = null; private Long timeout = null;
private Redirector redirector = new Redirector(this); private Redirector redirector = new Redirector(this);
private String resultProperty; private String resultProperty;
@@ -587,7 +586,7 @@ public class Java extends Task {
* @since Ant 1.5 * @since Ant 1.5
*/ */
public void setAppend(boolean append) { public void setAppend(boolean append) {
this.append = append;
redirector.setAppend(append);
incompatibleWithSpawn = true; incompatibleWithSpawn = true;
} }




Loading…
Cancel
Save