Ant task - "stdlib" attribute checked to be non-empty, empty default is specified in tests

This commit is contained in:
Evgeny Goldin
2012-01-27 03:57:15 +02:00
parent 01b4f5b871
commit 4f0921b1cd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -77,7 +77,7 @@
<attribute name="file" default=""/>
<attribute name="srcdir" default=""/>
<attribute name="includeRuntime" default="true"/>
<attribute name="stdlib" default="${kotlin-home}/lib/kotlin-runtime.jar"/>
<attribute name="stdlib" default=""/>
<sequential>
@@ -102,7 +102,7 @@
<attribute name="srcdir" default=""/>
<attribute name="module" default=""/>
<attribute name="includeRuntime" default="true"/>
<attribute name="stdlib" default="${kotlin-home}/lib/kotlin-runtime.jar"/>
<attribute name="stdlib" default=""/>
<sequential>
<cleanup/>
@@ -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 );
}
}