Commit Graph

14888 Commits

Author SHA1 Message Date
moors a2a6dfc28d low-hanging optimization fruit for virtpatmat
removed unnecessary zero that was added to all matches...

providing runOrElse's type args explicitly: speeds up compilation, removes hacks needed to bootstrap

a bit of clean up to keep a list of list of treemakers, which encodes the match, until the last possible moment
this list of list is going to be the subject of the analyses coming next

no review

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26070 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-24 14:55:11 +00:00
odersky 03f2abc63a Fast PartialFunction # orElse. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26069 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-24 09:25:00 +00:00
extempore df4374d0bc Reduced accumulation of repackExistentials.
Was enjoying watching adriaan go for the record for redundant
implementations of repackExistential, but eventually everyone has to
join Club Code Reuse. Trimmed 2/3 of the implementations and put the
remaining third somewhere it can be enjoyed by all. Continued by tearing
apart and reassembling TypeVar. Review by moors.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26068 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-24 05:57:03 +00:00
extempore 17ba3bbe03 Minor restructuring in Implicits.
Another case where I tried to get into the performance party
but ended up playing dungeons and dragons next door.  However I
did come away with an attractive tablecloth, which I draped over
Implicits.scala before waving my magic wand.

TRANSLATION: it's probably not faster but it's still better.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26067 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-24 02:01:00 +00:00
extempore 671b60e46a Optimization of typedArgs.
Keep seeing what might be our single use of Tuple3#zipped so high in
the profiling output. I don't think it's zipped3's fault, more that it
figures prominently in a major consumer of compile time, but it's not
going to hurt to send it on its merry way.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26066 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-24 01:24:47 +00:00
extempore f07d22d397 Refinements of "def seq" and murmurhash.
Trying to make hashcodes faster. Didn't achieve much on that front, so
redirected into structural/consistency issues. The latter was lacking
in terms of how/where "def seq" was defined. The documentation I can
find doesn't give me much hint that the sequential form of my sequential
collection might be a single-use iterator! (As in StringOps, ArrayOps.)
If that's intentional it should be in huge letters. I'm assuming for now
that it wasn't.

Also, there was this:

  GenMapLike:     def seq: Map[A, B]
  GenSetLike:     def seq: Set[A]
  GenSeqLike:     // nothing, returns Traversable

So I added some def seqs where I needed the more specific types for
my hashcode work. Hashcodewise, I broke the MurmurHash3 object into
a reusable class and a collections-specific object, and I deprecated
the methods which took GenTraversableOnce in favor of ones taking
TraversableOnce, because there's no reason the hashcode library should
have to know about things like "make sure to call seq before you
traverse or you'll be sorry." Exclude things by their type and you can
never make a mistake. End transmission.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26065 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-24 01:24:28 +00:00
extempore eb0ba5c9f5 AnnotationInfo inertia takes me into continuations.
And kept carrying me until I was carried away.  The changes are
mostly of the janitorial variety, just doing my part to make the
interesting logic visible without being buried in low level
compiler plumbing.

Added at least one seriously convenient convenience method:

  tree modifyType fn
  // equivalent to if (tree.tpe == null) tree else tree setType fn(tree.tpe)

This is the analogue to the recently added:

  symbol modifyInfo fn
  // same idea

It's like having our carpets steam cleaned when we can keep pushing
until machinery stays in the machine and the relevant logic stands
gloriously on top. You'll eventually exclaim, "I didn't even know these
carpets were that color!"

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26064 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 23:09:30 +00:00
extempore ec654a653c New starr based on r26060.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26063 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 19:30:52 +00:00
michelou f1fbe5e026 updated some code examples
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26062 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 18:26:50 +00:00
michelou e41184fd2e fixed deprecated number syntax
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26061 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 18:25:08 +00:00
vogt e0f04113cb - fixed code lifting of String, Int, ...
Closes SI-3566. Review by moors.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26060 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 17:02:03 +00:00
odersky 8afac897df Slightly revised version for the new starr.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26059 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 15:09:02 +00:00
odersky c72e1fa04d Preparations for new version of AbstractPartialFunctions that also does isDefinedAt correctly. Should be a new starr. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26058 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 13:00:35 +00:00
szeiger b531620b9c Enabling the use of 'compilerarg' with 'scalacfork' task in the build process.
'compilerarg' was added in r26030 and pushed into starr with r26055. No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26057 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 12:03:50 +00:00
extempore 909b467f63 Reworked AnnotationInfo patch.
Took a more ambitious swing based on input from martin.
Eliminated the external map and gave annotations a more
useful inheritance hierarchy. Eliminated AnnotationInfoBase
and made LazyAnnotationInfo an AnnotationInfo (just like
LazyType is a Type.) Review by odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26056 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 03:11:53 +00:00
extempore 29136bfcfb New starr based on r26049.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26055 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-23 00:30:20 +00:00
moors e6c345a323 type test optimization now takes GADT hack into account
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26054 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 23:10:30 +00:00
moors 10314b0cb4 optimized typedSubst
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26053 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 23:10:26 +00:00
moors 06f234e3e4 optimizing type tests and related stuff
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26052 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 23:10:23 +00:00
moors 2121b0f097 a wider variety of treemakers
optimized combining substitutions
why we substitute in EqualityTestTreeMaker

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26051 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 23:10:19 +00:00
moors 0ea45b6749 optimized version of cond
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26050 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 23:10:15 +00:00
odersky a5c67c0b5b fixed extraneous output. no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26049 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 20:11:52 +00:00
ureche a64ac8eb39 Changed the way use cases are handled in scaladoc.
If use cases are present, the original member disappears from the list. References SI-5054, but needs more work on the html part.
If use cases are present along with links, scaladoc doesn't crash anymore. Closes SI-4898.
    
Review by kzys.


git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26048 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 19:09:28 +00:00
szeiger 4659eb0fa1 Make partest work with spaces in the path (from batch script and ant task).
- The 'partest' ant task gets a new 'compilerargs' element for scalac options (like in scalacfork and javac).
- Fixed argument list handling in partest task.
- Further improvements to argument list handling for all ant tasks.
- Fixed argument list handling in DirectTest (used by partest shell scripts)
- Fixed path handling in several test cases.

Closes SI-622. Review by phaller.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26047 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 18:44:00 +00:00
odersky 33d22581b2 Compiler part of fast orElse. Review by moors. t1545 got disabled. As the comment there says:
"According to the spec this code should not be legal. Disabling for now." Need to come back and either make it work or (more likely) make nsc reject the test)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26046 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 18:07:51 +00:00
odersky 636f6e0793 More beautiful fast orElse infrastructure. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26045 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 14:31:40 +00:00
odersky e6677eea1c First part of campaign to make orElse on partial functions faster than exponential. In fact, now it's linear, with zero overhead for the common case. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26044 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 13:25:29 +00:00
amin e14da1b8ef Move allDeclarations to make it available to all types, like declaration(...). Review by odersky.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26043 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 13:15:15 +00:00
extempore 385fbadd6e Long-standing performance mystery solved.
I noticed a long time ago that calls to def annotations in Symbols
figured way, way too high in profiling output, but my earlier efforts to
modify it failed because I didn't understand the "accidental" service
it was supplying. Here is the key piece of the former implementation of
annotations:

-      val annots1 = initialize.rawannots map {
-        case x: LazyAnnotationInfo  => x.annot()
-        case x: AnnotationInfo      => x
-      } filterNot (_.atp.isError)

The first thing you might notice is that because it calls initialize,
any call to either annotations or (more frequently) a method like
"hasAnnotation" causes a symbol to be initialized. The upshot is that
taking away tens of thousands of calls to initialize means a certain
amount of "free lunch" is over.

The second thing is that this implementation lead to the allocation of
a new list on every call to annotations. 99.999% of the time it's the
same elements in the list. The fact that rawannots is typed as a list of
"AnnotationInfoBase" which may as well be AnyRef means you can't even
use mapConserve, but even mapConserve would be an abuse of the garbage
collector given how infrequently there is any change.

So here's what we have now:

 1) Annotations are delivered from trees to symbols by way of an
 externally positioned map, not a field on the symbol. It's done once.
 The only overhead on a call to annotations now is a null check.

 2) I added a small sprinkling of calls to initialize in sensible
 locations.

 3) The profiler impact is hard to believe, but this is reproducible.
 For whatever reason the non-profiler wall clock time impact is not
 as impressive.

My profiling target was the compilation of these 15 files:

  src/library/scala/collection/generic/G*.scala

Before this patch, heap usage peaked at 60MB. After, 35MB. 40% drop in
profiler measured time elapsed. (Again, it's not like that outside the
profiler.) About a 55% drop in number of allocations. About a 40% drop
in total size of allocations.

+----------------------+------------------+-----------------+-----------------+
|    Name              |  Time Diff (ms)  |  Old Time (ms)  |  New Time (ms)  |
+----------------------+------------------+-----------------+-----------------+
|  +---<All threads>   |         -19,569  |         52,496  |         32,926  |
+----------------------+------------------+-----------------+-----------------+

+----------------------------+--------------------+-----------------------+
|    Packages and Classes    |   Objects (+/-)    |      Size (+/-)       |
+----------------------------+--------------------+-----------------------+
|  +---<Objects by classes>  |  -877,387   -56 %  |  -26,425,512   -37 %  |
|    |                       |                    |                       |
|    +---char[]              |   -43,308    -2 %  |   -2,756,744    -3 %  |
|    |                       |                    |                       |
|    +---java                |   -67,064    -3 %  |   -2,027,264    -2 %  |
|    |                       |                    |                       |
|    +---scala               |  -745,099   -48 %  |  -19,021,760   -26 %  |
+----------------------------+--------------------+-----------------------+

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26042 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-22 04:34:09 +00:00
extempore 4b05694ee3 Implemented manifest-based class-paths.
If you run a jar directly, like

  scala foo.jar

Then if a Class-Path attribute is present in the jar manifest, the
classpath will be constructed from that instead of the arguments. Some
things remain to be determined, like whether it's supposed to replace
a classpath given on the command line or supplement it, and whether
the master jar should be on the classpath or only and exactly the jars
listed in the manifest.

There's a really nice test case, which won't be run of course, but I
can't stand going any further without tests for these hard to test on
all platforms things.  The faux .check file shows what I see.

Closes SI-4355, review by harrah.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26041 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-21 20:38:58 +00:00
szeiger 0cceeaffde Always build command lines in partest as Seq[String] instead of space-separated command.
Closes SI-1510 which is actually caused by a bad command line string when the path to Java contains a space, and not by long path names per se. References SI-622 since this commit fixes the specific error described there (not closing because follow-up bugs remain).

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26040 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-21 18:27:42 +00:00
szeiger e5268c7e00 Use larger Java memory sizes from partest on Unix also on Windows
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26039 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-21 18:18:36 +00:00
extempore e4421bbd66 Fix for what have been rather uncommon common owners.
The complete histogram of results for "commonOwner" until this
patch, when building quick.lib and quick.comp:

  Calculated common owner       Occurrences
  -----------------------       -----------
  NoSymbol                      299,242
  Everything Else               0

Since I'm always paranoid somebody will think I'm the one who
broke such things in the first place, I got in the gitmobile and
fingered the responsible party.

Looks OK when it was checked in: r3930, Feb 4 2005. And it was smooth
sailing until... r4026, Mar 22 2005. So 6 1/2 weeks of goodness for poor
commonOwnerMap, to be followed by 6 1/2 years of endless NoSymboldom. In
2005 I was still making a living grifting strangers in seedy gambling
halls, so I think I'm in the clear. Here's the exact spot.

  ae0da87d1a (L12L991)

I found this while trying to figure out why we are generating so many
refinements. This doesn't fix any of that, but maybe takes us a notch
closer. Review by odersky.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26038 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-21 03:24:51 +00:00
extempore 628026b921 Disabling failing javap test.
Really hope we can sort this all out as it was a miracle to get
this test in place in the first place.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26037 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-20 16:28:46 +00:00
moors bf3dce2a96 moving tree making to the TreeMaker factory
providing a richer TreeMakers interface in hopes of performing analyses and optimizations on TreeMakers rather than the trees they generate
not sure yet, though: on the one hand, working on raw trees removes the unsoundness potential due to the extra indirection layer
on the other hand, indirection is nice, and recovering the meaning lost in translation from richer treemakers to raw trees is such a drag

no review

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26036 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-19 19:24:00 +00:00
odersky 7bf75564fc Partial cleanup and generalization of tree printing. You can now print a tree in direct case class form with
`showRaw(tree)`. Should make NodePrinters redundant.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26035 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-19 18:41:06 +00:00
moors a766be553b further clean up in virtpatmat
farewell ProtoTreeMaker, we hardly knew ye

needed one more repeatedToSeq for pos/annotDepMethType when compiling under -Xexperimental and -Yvirtpatmat... I wonder why this hadn't failed before
outer check for extractor type test: definitely need it for case classes, and probably makes sense for user-defined extractors as well

no review

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26034 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-19 15:31:54 +00:00
extempore e6642673e2 Cleanups in TypeApply creation and casting.
There's every hint that it's a requirement that a TypeApply have
non-empty typeArgs, but testing for and handling the empty condition
is done irregularly. Made a mkTypeApply which handles the isEmpty case
(returning "fun" unchanged.) Also unified most of the variations of
casts under one umbrella. Review by moors.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26033 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-19 08:39:59 +00:00
extempore cebf91527b Bringing a bit of order to symbol substitution.
Painstakingly winnowed out the most frequently duplicated code
sequences related to symbol cloning and substitution.  Created
canonical methods to perform these actions and documented them.
Key methods include:

  def createFromClonedSymbols[T](syms: List[Symbol], tpe: Type)(creator: (List[Symbol], Type) => T): T
  def deriveSymbols(syms: List[Symbol], symFn: Symbol => Symbol): List[Symbol]
  def deriveType(syms: List[Symbol], symFn: Symbol => Symbol)(tpe: Type): Type

Many example usages enclosed with commit.

I did lots of timing tests, I find no material difference before and
after. Actually I won by four seconds in this incarnation:

  Before - Total time: 7 minutes 55 seconds
   After - Total time: 7 minutes 51 seconds

Review by moors.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26032 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-19 06:59:19 +00:00
extempore 01004980a5 Fix for unfortunate thinko recently introduced.
Many thanks to Jordi Salvat i Alabart for catching this.
Universal equality is a formidable foe when it comes to avoiding
this kind of mistake.  Closes SI-5206, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26031 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-18 22:23:08 +00:00
szeiger fefd99a858 Enable the use of spaces in paths for the Scala build on Windows -- take 2.
(The original commit in r26026, reverted in r26027, used the new compilerargs
element in the Scala build -- we cannot do this until it's in starr.)

- Revert r25995 which was fixing it only partly and in the wrong place.
- Properly encode argument files for scalac in scalac ant task.
- Allow 'compilerarg' elements in scalac ant task (like in ant's built-in
  javac task) to allow passing extra parameters like plugindir path with
  proper encoding of spaces and file names.
- Fix space handling in get-scala-revision.bat.

Closes SI-3047.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26030 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-18 18:54:24 +00:00
extempore 813438575a Revert "Enable the use of spaces in paths for the Scala build on Windows."
This reverts the previous commit due to failure to build:

BUILD FAILED
/scratch/trunk1/build.xml:639: scalacfork doesn't support the nested "compilerarg" element.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26027 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-18 16:53:09 +00:00
extempore 32d40a03dd Enable the use of spaces in paths for the Scala build on Windows.
Revert r25995 which was fixing it only partly and in the wrong place.
Properly encode argument files for scalac in scalac ant task.
Allow 'compilerarg' elements in scalac ant task (like in ant's built-in
javac task) to allow passing extra parameters like plugindir path with
proper encoding of spaces and file names, and use it in the Scala build.
Fix space handling in get-scala-revision.bat.

(Patch by Stefan Zeiger.) Closes SI-3047.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26026 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-18 15:16:26 +00:00
phaller efab22a395 Reverted changeset r26024. Enabled partest ant task to set system properties using the PARTEST_OPTS environment variable.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26025 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-18 00:01:44 +00:00
phaller fd5c6da283 Removed some obsolete javacmd, javaccmd etc. in partest ant task. No review
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26024 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-16 21:25:58 +00:00
michelou f3aea98df8 Updated/fixed the following two Scala Ant tasks:
scalac (ant.Scalac)

- added attributes `dependencyfile`, `explaintypes`, `nobootcp`,
  `nowarn` and `usejavacp`

- added support for nested element `compilerarg` (see Ant manual)
  in order to pass prefix settings (eg. -J-Xbootclasspath, -Ddebug=true)
  to nsc.CompileClient

- updated list of permissible values for compiler phases


fsc (ant.FastScalac)

- added attributes `ip4` and `maxIdle` in addition to `reset`, `server`
  and `shutdown` (and forwards them to nsc.CompileClient)

- also forwards prefix settings `jvmargs` and `defines`, and
  boolean settings `explaintypes`, `nospecialization`, `nowarn`,
  `optimise`, `unchecked` and `usejavacp` to nsc.CompileClient

- fixed CompileClient.process if-test


Nota Bene

I added the following element to partest.PartestTask (commit is pending)
in order to automatically test the Scala Ant tasks:

<anttests dir="${partest.dir}/${partest.srcdir}/ant" includes="*build.xml"/>

Here is the output:

[user@localhost scala]$ ant test.ant
Buildfile: /home/user/workspace/scala/build.xml
     [echo] Forking with JVM opts: -Xms1536M [...] 

init:
     [echo] Build number is '2.10.0.r26022-b20111116212958'
     [echo] Built 16 November 2011, 21:29:58 [...]
[...]
test.ant:
  [partest] Running ant task tests
  [partest] testing: [...]/files/ant/fsc-build.xml                                [  OK  ]
  [partest] testing: [...]/files/ant/scaladoc-build.xml                           [  OK  ]
  [partest] testing: [...]/files/ant/scalac-build.xml                             [  OK  ]
  [partest] Test suite finished with no failures.

BUILD SUCCESSFUL
Total time: 12 seconds



git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26023 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-16 20:35:21 +00:00
moors 156fa8db27 another theory on the windows build
i think it couldn't find javac, since it was hardwired to JAVAHOME/bin/javac, but that didn't exist in the windows jre/ directory structure

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26020 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-16 17:47:22 +00:00
extempore 71b0e1f9c8 Revert "Testing a theory about the windows build."
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26019 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-16 16:17:25 +00:00
amin aa873de989 Fix and re-enable test, that got broken by changes to reflection API
in rev 26014. Review by odersky.



git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26018 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-16 11:31:05 +00:00
extempore 6d58cc102d Disabled broken test, review by odersky.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@26017 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-11-16 00:36:22 +00:00