|
[#1262] |
project: compiler |
priority: low |
category: bug |
|
submitter |
assigned to |
status |
date submitted |
|
Iulian |
_ |
open |
2007-08-08 10:44:47.0 |
subject |
[contrib #732] fsc ant task fails with 2.6.0-RC1 |
code |
<?xml version="1.0" encoding="UTF-8"?>
<project name="cc-overhead" default="compile">
<property name="scala.lib" value="${user.home}/scala-2.6.0-RC1/share/scala/lib"/>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${scala.lib}/scala-compiler.jar"/>
<pathelement location="${scala.lib}/scala-library.jar"/>
</classpath>
</taskdef>
<target name="compile">
<mkdir dir="obj"/>
<fsc destdir="obj" deprecation="yes" force="always" addparams="-optimise" target="jvm-1.5">
<src location="src"/>
<classpath>
<pathelement location="${scala.lib}/scala-compiler.jar"/>
<pathelement location="${scala.lib}/scala-library.jar"/>
</classpath>
<include name="*.scala"/>
</fsc>
</target>
</project> |
what happened |
Buildfile: build.xml
compile:
[fsc] Compiling 18 source files to /Users/csp/cc-overhead/trunk/obj
[fsc] Could not connect to compilation daemon.
|
what expected |
Should have started the compiler (the same ant script worked with 2.5.1-final, and works if I change "fsc" to "scalac"). Running fsc from the command line works. Running verbose, it looks like fsc tries to connect to port -1 when run from ant.
This is on a Mac PowerBook G4, MacOS 10.4.11, java 1.5.0_07. |
[back to overview] |