summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-01-27 21:01:10 +0000
committerLex Spoon <lex@lexspoon.org>2006-01-27 21:01:10 +0000
commitd18d3c6368199be3fa28db21d01d97892d3806d5 (patch)
tree24297d2c8b9917fd8545a7823695c72341d337f9
parentcb6e500214cfd76394ef3c94dcf3bbc3e83d1b8d (diff)
downloadscala-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
-rw-r--r--src/compiler/scala/tools/ant/ScalaTool.scala2
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>. */