do not treat the empty string as a valid classpath component

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@5657 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
spoon 2006-01-27 21:01:10 +00:00
parent 14bd8ebbf4
commit e7bd11227c
1 changed files with 1 additions and 1 deletions

View File

@ -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>. */