diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2008-10-10 16:54:02 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2008-10-10 16:54:02 +0000 |
commit | 546eb6e8a736228d4e6524cc6f5b10c7d3ef9fe3 (patch) | |
tree | f0ba19bf80676a2f8469187c32c0a30b7f842829 | |
parent | 3eacec9453dd6599118f90fb6f30a39d3427da3b (diff) | |
download | scala-546eb6e8a736228d4e6524cc6f5b10c7d3ef9fe3.tar.gz scala-546eb6e8a736228d4e6524cc6f5b10c7d3ef9fe3.tar.bz2 scala-546eb6e8a736228d4e6524cc6f5b10c7d3ef9fe3.zip |
Fix for #1408.
The additional validation performed by the fsc ant task was unnecessary
(validation is performed by the actual fsc anyway). In adddition, it was
rejecting valid arguments.
-rw-r--r-- | src/compiler/scala/tools/ant/FastScalac.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/ant/FastScalac.scala b/src/compiler/scala/tools/ant/FastScalac.scala index 2bdb5918b8..44347234f6 100644 --- a/src/compiler/scala/tools/ant/FastScalac.scala +++ b/src/compiler/scala/tools/ant/FastScalac.scala @@ -49,11 +49,7 @@ class FastScalac extends Scalac { * @param input The value for <code>server</code>. */ def setServer(input: String): Unit = { - def isHostNameValid(host: String): Boolean = - try { val _ = java.net.InetAddress.getByName(host); true } - catch { case _ => false } - if (isHostNameValid(input)) serverAddr = Some(input) - else error("Unknown server '" + input + "'") + serverAddr = Some(input) } /** Sets the <code>shutdown</code> attribute. Used by Ant. |