diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-01-27 21:01:10 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-01-27 21:01:10 +0000 |
commit | d18d3c6368199be3fa28db21d01d97892d3806d5 (patch) | |
tree | 24297d2c8b9917fd8545a7823695c72341d337f9 /src | |
parent | cb6e500214cfd76394ef3c94dcf3bbc3e83d1b8d (diff) | |
download | scala-d18d3c6368199be3fa28db21d01d97892d3806d5.tar.gz scala-d18d3c6368199be3fa28db21d01d97892d3806d5.tar.bz2 scala-d18d3c6368199be3fa28db21d01d97892d3806d5.zip |
do not treat the empty string as a valid classp...
do not treat the empty string as a valid classpath component
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/ant/ScalaTool.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/ant/ScalaTool.scala b/src/compiler/scala/tools/ant/ScalaTool.scala index 71b70cbc6e..55566404a8 100644 --- a/src/compiler/scala/tools/ant/ScalaTool.scala +++ b/src/compiler/scala/tools/ant/ScalaTool.scala @@ -136,7 +136,7 @@ package scala.tools.ant { * @param input The value of <code>classpath</code>. */ def setClasspath(input: String) = classpath = classpath ::: - (List.fromArray(input.split(":")).map(p => "#PREFIX#/" + p)) + (List.fromArray(input.split(":")).filter(p => p != "").map(p => "#PREFIX#/" + p)) /** Sets the properties attribute. Used by Ant. * @param input The value for <code>properties</code>. */ |