summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/FastScalac.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2008-10-10 16:54:02 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2008-10-10 16:54:02 +0000
commit546eb6e8a736228d4e6524cc6f5b10c7d3ef9fe3 (patch)
treef0ba19bf80676a2f8469187c32c0a30b7f842829 /src/compiler/scala/tools/ant/FastScalac.scala
parent3eacec9453dd6599118f90fb6f30a39d3427da3b (diff)
downloadscala-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.
Diffstat (limited to 'src/compiler/scala/tools/ant/FastScalac.scala')
-rw-r--r--src/compiler/scala/tools/ant/FastScalac.scala6
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.