Browse Source

<javac> faild for long command lines on OS/2. PR 49425. Submitted by <dmik DOT for MINUS maillists AT hugaida DOT com>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@953594 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
b0b920b08f
2 changed files with 12 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +9
    -1
      src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

+ 3
- 0
WHATSNEW View File

@@ -51,6 +51,9 @@ Fixed bugs:
itself.
Bugzilla Report 49420.

* <javac> failed for long command lines on OS/2.
Bugzilla Report 49425.

Other changes:
--------------



+ 9
- 1
src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java View File

@@ -45,7 +45,15 @@ import org.apache.tools.ant.taskdefs.condition.Os;
* @since Ant 1.3
*/
public abstract class DefaultCompilerAdapter implements CompilerAdapter {
private static final int COMMAND_LINE_LIMIT = 4096; // 4K
private static final int COMMAND_LINE_LIMIT;
static {
if (Os.isFamily("os/2")) {
// OS/2 CMD.EXE has a much smaller limit around 1K
COMMAND_LINE_LIMIT = 1000;
} else {
COMMAND_LINE_LIMIT = 4096; // 4K
}
}
// CheckStyle:VisibilityModifier OFF - bc

private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();


Loading…
Cancel
Save