fsc(1)
fsc(1)
USER COMMANDS

NAME

fsc – Fast offline compiler for the Scala 2 language

SYNOPSIS

fsc [ <options> ] <source files>

PARAMETERS

<options>
Command line options. See OPTIONS below.
<source files>
One or more source files to be compiled (such as MyClass.scala).

OPTIONS

Standard Options

The offline compiler has the same set of Standard Options as the scalac commands with the following additional options:

–reset
Reset compile server caches
–shutdown
Shutdown compile server
–server <hostname:portnumber>
Specify compile server host at port number. Usually this option is not needed. Note that the hostname must be for a host that shares the same filesystem.
–J <flag>
Pass <flag> directly to runtime system (not yet implemented)

Non-Standard Options

See the Non-Standard Options of the scalac command.

Debug Options

See the Debug Options of the scalac command.

ENVIRONMENT

JAVACMD
Specify the java command to be used for running the Scala code. Arguments may be specified as part of the environment variable; spaces, quotation marks etc., will be passed directly to the shell for expansion.

EXAMPLES

Compile a Scala program to the current directory
fsc HelloWorld.scala
Compile a Scala program to the destination directory classes
fsc –d classes HelloWorld.scala
Compile a Scala program using a user-defined java command
env JAVACMD=/usr/local/bin/cacao fsc –d classes HelloWorld.scala
Compile all Scala files found in the source directory src to the destination directory classes
fsc –d classes src/*.scala

EXIT STATUS

fsc returns a zero exist status if it succeeds to compile the specified input files. Non zero is returned in case of failure.

AUTHOR

Written by Martin Odersky and other members of the Scala team.

REPORTING BUGS

Report bugs to <scala@listes.epfl.ch>.

This is free software; see the distribution for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

sbaz(1), scala(1), scalac(1), scaladoc(1), scalap(1)

version 0.1
fsc(1)
June 8, 2006