diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-01-27 15:44:13 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-01-27 15:44:13 +0000 |
commit | 05a91221bd83a75b92d63af99fe87dab12edc010 (patch) | |
tree | 10d240e4a1f0d3d72243089583cf8d08615bfc50 /src/compiler | |
parent | 0d6dd0105811a15ba8370de58b8875cc4f61ab9e (diff) | |
download | scala-05a91221bd83a75b92d63af99fe87dab12edc010.tar.gz scala-05a91221bd83a75b92d63af99fe87dab12edc010.tar.bz2 scala-05a91221bd83a75b92d63af99fe87dab12edc010.zip |
If a classpath is specified explicitly, then be...
If a classpath is specified explicitly, then be sure to insert #PREFIX#
in front of all the path elements.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/ant/ScalaTool.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/ant/ScalaTool.scala b/src/compiler/scala/tools/ant/ScalaTool.scala index cb6d67c194..71b70cbc6e 100644 --- a/src/compiler/scala/tools/ant/ScalaTool.scala +++ b/src/compiler/scala/tools/ant/ScalaTool.scala @@ -135,7 +135,8 @@ package scala.tools.ant { /** Sets the classpath attribute. Used by Ant. * @param input The value of <code>classpath</code>. */ def setClasspath(input: String) = - classpath = classpath ::: List.fromArray(input.split(":")) + classpath = classpath ::: + (List.fromArray(input.split(":")).map(p => "#PREFIX#/" + p)) /** Sets the properties attribute. Used by Ant. * @param input The value for <code>properties</code>. */ |