From 4f0921b1cdc136a2fa752f63e08c084ebf33c85e Mon Sep 17 00:00:00 2001 From: Evgeny Goldin Date: Fri, 27 Jan 2012 03:57:15 +0200 Subject: [PATCH] Ant task - "stdlib" attribute checked to be non-empty, empty default is specified in tests --- build-tools/build.xml | 4 ++-- .../org/jetbrains/jet/buildtools/core/BytecodeCompiler.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-tools/build.xml b/build-tools/build.xml index 4ac2b4b017c..8d708cd316e 100644 --- a/build-tools/build.xml +++ b/build-tools/build.xml @@ -77,7 +77,7 @@ - + @@ -102,7 +102,7 @@ - + diff --git a/build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java b/build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java index 36825119b09..bb6c4c6d8e2 100644 --- a/build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java +++ b/build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java @@ -13,7 +13,7 @@ public class BytecodeCompiler { public BytecodeCompiler ( String stdlib ) { ENV = new CompileEnvironment(); - if ( stdlib != null ) { + if (( stdlib != null ) && ( stdlib.trim().length() > 0 )) { ENV.setStdlib( stdlib ); } }