From c8891678328b1123623900d1fa3ecc6e16ead736 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Mon, 2 Dec 2013 18:16:59 +0100 Subject: [PATCH] get max heap value for javac from the new location --- .../src/com/intellij/compiler/ant/BuildPropertiesImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/compiler/impl/src/com/intellij/compiler/ant/BuildPropertiesImpl.java b/java/compiler/impl/src/com/intellij/compiler/ant/BuildPropertiesImpl.java index d89cd156f183..15e568ad1a68 100644 --- a/java/compiler/impl/src/com/intellij/compiler/ant/BuildPropertiesImpl.java +++ b/java/compiler/impl/src/com/intellij/compiler/ant/BuildPropertiesImpl.java @@ -15,6 +15,7 @@ */ package com.intellij.compiler.ant; +import com.intellij.compiler.CompilerWorkspaceConfiguration; import com.intellij.compiler.ant.taskdefs.*; import com.intellij.compiler.impl.javaCompiler.javac.JavacConfiguration; import com.intellij.openapi.compiler.CompilerBundle; @@ -57,7 +58,8 @@ public class BuildPropertiesImpl extends BuildProperties { add(new Property(PROPERTY_COMPILER_GENERATE_NO_WARNINGS, javacSettings.GENERATE_NO_WARNINGS ? "on" : "off")); add(new Property(PROPERTY_COMPILER_ADDITIONAL_ARGS, javacSettings.ADDITIONAL_OPTIONS_STRING)); //noinspection HardCodedStringLiteral - add(new Property(PROPERTY_COMPILER_MAX_MEMORY, Integer.toString(javacSettings.MAXIMUM_HEAP_SIZE) + "m")); + final int heapSize = CompilerWorkspaceConfiguration.getInstance(project).getProcessHeapSize(javacSettings.MAXIMUM_HEAP_SIZE); + add(new Property(PROPERTY_COMPILER_MAX_MEMORY, Integer.toString(heapSize) + "m")); add(new IgnoredFiles());