New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scalac ant task does not accept fork="true" in 2.10.0-M7 #6268
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6268?orig=1 |
@jsuereth said: |
@jsuereth said (edited on Sep 11, 2012 5:44:01 PM UTC): <?xml version="1.0" encoding="UTF-8"?>
<project name="test-simple" default="compile">
<description>
Super simple test for Scala
<target name="init">
<!-- Define project CLASSPATH. -->
<property name="base.dir" value="../../.."/>
<property name="pack.dir" value="${base.dir}/build/pack/"/>
<property name="build.dir" value="classes"/>
<property name="src.dir" value="src"/>
<path id="scala.classpath">
<fileset dir="${pack.dir}/lib/"> <include name="*.jar" /> </fileset>
</path>
<!-- Define scala compiler, scaladoc, etc command -->
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath refid="scala.classpath" />
</taskdef>
</target>
<target name="compile" depends="init">
<mkdir dir="${build.dir}"/>
<scalac srcdir="${src.dir}" destdir="${build.dir}"
classpathref="scala.classpath" fork="true">
<include name="**/*.scala"/>
</scalac>
</target>
</project> Time to investigate if the "too many argument" handling is broken. |
@jsuereth said: Could you have a stale or malformed caching isssue? |
@jsuereth said: |
@jsuereth said: |
@paulp said: |
@jsuereth said: def unparse = if(values.isEmpty) Nil
else name :: (value mkString " ") :: Nil I went the less code route, assuming it still parses. Like I said, I couldn't tell if we had automated tests, I just validated against scalatest and the ant build in that commit. I think we should add some partest setting tests so we avoid breaking each other! |
@paulp said: Well yeah, we should have done that five years ago. As always, the obstacle to script tests (which is the meaningful way to test command line properties - from the command line) is windows. Whenever I have tried to check in anything in this area, I have had to revert it. I no longer try. For the glory of windows, we have no tests here for anyone. |
@jsuereth said: I'll put that on the list of things to fix in partest. |
The scalac task does not accept fork="true" in Scala 2.10.0-M7. It does accept fork="false".
compile-main:
[scalac] Compiling 196 source files to /Users/bv/nobkp/delus/r18for210M3/target/jar_contents
[scalac] Compiling 4 source files to /Users/bv/nobkp/delus/r18for210M3/target/jar_contents
[scalac] Compiling 0 scala and 3 java source files to /Users/bv/nobkp/delus/r18for210M3/target/jar_contents
[scalac] Usage: scalac
The branch you can use to reproduce the problem is:
https://scalatest.googlecode.com/svn/branches/r18for210M7
Just say "ant test" and it will happen very quickly.
The text was updated successfully, but these errors were encountered: