Browse Source

Don't reencode console output.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272353 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
7585dbdb21
2 changed files with 13 additions and 7 deletions
  1. +12
    -6
      src/main/org/apache/tools/ant/taskdefs/Concat.java
  2. +1
    -1
      src/testcases/org/apache/tools/ant/taskdefs/WarTest.java

+ 12
- 6
src/main/org/apache/tools/ant/taskdefs/Concat.java View File

@@ -388,21 +388,27 @@ public class Concat extends Task {
BufferedReader in = null;

try {
OutputStream os = null;
if (destinationFile == null) {
// Log using WARN so it displays in 'quiet' mode.
os = new LogOutputStream(this, Project.MSG_WARN);
out = new PrintWriter(
new OutputStreamWriter(
new LogOutputStream(this, Project.MSG_WARN)
)
);
} else {
os =
new FileOutputStream(destinationFile.getAbsolutePath(),
append);
out = new PrintWriter(
new OutputStreamWriter(
new FileOutputStream(destinationFile
.getAbsolutePath(),
append),
encoding)
);
// This flag should only be recognized for the first
// file. In the context of a single 'cat', we always
// want to append.
append = true;
}
out = new PrintWriter(new OutputStreamWriter(os, encoding));

for (int i = 0; i < len; i++) {
in = new BufferedReader(


+ 1
- 1
src/testcases/org/apache/tools/ant/taskdefs/WarTest.java View File

@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without


Loading…
Cancel
Save