summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/FastScalac.scala
Commit message (Collapse)AuthorAgeFilesLines
* General cleanups and less warnings during a Scala buildsoc2016-04-041-8/+5
|
* Remove unused imports and other minor cleanupsSimon Ochsenreither2015-12-181-1/+1
| | | | | | | | | | - Language imports are preceding other imports - Deleted empty file: InlineErasure - Removed some unused private[parallel] methods in scala/collection/parallel/package.scala This removes hundreds of warnings when compiling with "-Xlint -Ywarn-dead-code -Ywarn-unused -Ywarn-unused-import".
* Removed warningsEECOLOR2015-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | - Added `since` to deprecation statement - Added unit to parameter list - Removed usage of deprecated method polyType - Replaced deprecated `debugwarn` with `devWarning` - Changed switch statement to if else in order to remove a warning - Switched implementation of `init` and `processOptions` to prevent warning - Replaced deprecated `Console.readLine` with `scala.io.StdIn.readLine` - Replaced deprecated `startOrPoint` with `start` - Replaced deprecated `tpe_=` with `setType` - Replaced deprecated `typeCheck` with `typecheck` - Replaced deprecated `CompilationUnit.warning` with `typer.context.warning` - Replaced deprecated `scala.tools.nsc.util.ScalaClassLoader` with `scala.reflect.internal.util.ScalaClassLoader` - Replaced deprecated `scala.tools.ListOfNil` with `scala.reflect.internal.util.ListOfNil` - Replaced deprecated `scala.tools.utils.ScalaClassLoader` with `scala.reflect.internal.util.ScalaClassLoader` - Replaced deprecated `emptyValDef` with `noSelfType` - In `BoxesRunTime` removed unused method and commented out unused values. Did not delete to keep a reference to the values. If they are deleted people might wonder why `1` and `2` are not used. - Replaced deprecated `scala.tools.nsc.util.AbstractFileClassLoader` with `scala.reflect.internal.util.AbstractFileClassLoader`
* Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-021-1/+1
|
* address "this would catch all throwables" warningsMartin Odersky2012-07-201-1/+1
| | | | | | | | original patch by @odersky in #955 -- criterion for the refactor: "catch Throwable as long as there's no obvious control flow exception going through the catch and the caught exception is processed further" rebased & updated with review comments in #955 and #954
* Reverting 22c8dec5 and preventing bootstapping in scaladocVlad Ureche2012-06-081-1/+1
| | | | | Review by @dragos, @jsuereth. Required bootstrapping because the starr was ant tasks were invoking locker with -Ysourcepath instead of -sourcepath.
* Fixes SI-4909 and SI-5763Vlad Ureche2012-06-081-1/+1
| | | | | | | | | | Finally, -sourcepath is split into: -Ysourcepath - for the library bootstrapping -doc-source-path - for scaladoc links to source code (squished the resident compiler test fix into this commit) Review by @jsuereth.
* miscellaneous cleanup, mostly fighting with feature warningsEugene Burmako2012-06-081-1/+1
|
* attempt to fix reopened SI-5196michelou2011-11-271-21/+60
|
* Updated/fixed the following two Scala Ant tasks:michelou2011-11-161-52/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 4th round of clean ups (see r25293, r25285, r25...michelou2011-07-201-31/+21
| | | | | 4th round of clean ups (see r25293, r25285, r25292)
* A few minor cleanups involving logging messages...Paul Phillips2011-04-301-1/+1
| | | | | | A few minor cleanups involving logging messages, assertion messages, compiler warnings, and other innocuous matters. No review.
* Accumulated work on fsc.Paul Phillips2011-03-181-2/+1
| | | | | | | | | | | | | | | | | | | | adds the following new options. -ipv4 Use IPv4 rather than IPv6 for the server socket absolute-cp Make -classpath elements absolute paths before sending to server max-idle -Set idle timeout in minutes for fsc (use 0 for no timeout) My question marks are what are the right defaults for the first two. Former behavior is to absolutize the classpath always and never prefer IPv4 sockets. I changed the default to not absolutize the classpath, with the option if you need it; I left the system default in place for the socket creation, but I have a feeling we should default to IPv4. My only hesitation is that the only way to request an IPv4 socket from java involves mutating a global system property. (Robustness FTW.) So for now, you have to give -ipv4. Closes #3626, #3785, #3788, #3789. Review by community.
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Cleaned up and brought up to date the help text...Paul Phillips2010-12-051-1/+7
| | | | | | | | Cleaned up and brought up to date the help text for -X and -Y options. Made some enhancements to PhasesSetting, which are documented if you run scalac -X or -Y. (Try it!) Disabled some dead settings and renamed others to reflect their current purpose. No review.
* Mopping up after the deprecation of exit and er...Paul Phillips2010-12-051-3/+3
| | | | | | | | | | | | | | Mopping up after the deprecation of exit and error. It is decidedly non-trivial (at least for the IDE-impaired) to be completely sure of which error function was being called when there were about twenty with the same signature in trunk and they are being variously inherited, imported, shadowed, etc. So although I was careful, the possibility exists that something is now calling a different "error" function than before. Caveat programmer. (And let's all make it our policy not to name anything "error" or "exit" from here on out....) No review.
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-121-1/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* Attempting to unbreak fsc (can't reproduce the ...Paul Phillips2009-10-251-7/+9
| | | | | | Attempting to unbreak fsc (can't reproduce the problem so can't be entirely sure.)
* Deprecation patrol.Paul Phillips2009-10-251-15/+19
| | | | | | | compile scalac with -deprecation and not cause any machines to catch fire. Most of the remaining warnings are glancing furtively at Tuple2, waiting for the moment to pounce.
* switch to unnested packages.Martin Odersky2009-07-241-1/+1
|
* Updated (all) copyright notices to 2009Antonio Cunei2009-01-131-1/+1
|
* Fix for #1408.Antonio Cunei2008-10-101-5/+1
| | | | | | | 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.
* fixing FastScalac ant taskLukas Rytz2008-09-021-2/+2
|
* May have fixed issue #650 (couldn't test fsc ta...Gilles Dubochet2008-03-211-2/+4
| | | | | May have fixed issue #650 (couldn't test fsc task on Mac).
* deprecated &f, .f, requires.Martin Odersky2007-06-051-1/+1
| | | | | Added existential types.
* added variable JAVA_OPTS to the generated Unix ...michelou2007-04-171-6/+7
| | | | | added variable JAVA_OPTS to the generated Unix tools
* Small refactoring of the Setting classesmihaylov2007-03-261-4/+4
|
* updated values for attribute 'target' in ant/Sc...michelou2006-12-221-86/+84
| | | | | updated values for attribute 'target' in ant/Scalac.scala
* Replaced == null()eq null(ne null)mihaylov2006-11-131-1/+1
|
* moved cmdOptions into if-test in FastScalac.scalamichelou2006-11-101-28/+24
|
* added ant task "FastScalac" and updated test su...michelou2006-11-081-0/+118
added ant task "FastScalac" and updated test suite accordingly