class Scalac extends ScalaMatchingTask with ScalacShared
An Ant task to compile with the new Scala compiler (NSC).
This task can take the following parameters as attributes:
srcdir
(mandatory),srcref
,destdir
,classpath
,classpathref
,sourcepath
,sourcepathref
,bootclasspath
,bootclasspathref
,extdirs
,extdirsref
,argfile
,dependencyfile
,encoding
,target
,force
,fork
,logging
,logphase
,debuginfo
,addparams
,explaintypes
,deprecation
,nobootcp
,nowarn
,optimise
,unchecked
,usejavacp
,failonerror
,scalacdebugging
,
It also takes the following parameters as nested elements:
src
(forsrcdir
),classpath
,sourcepath
,bootclasspath
,extdirs
,compilerarg
.
- Source
- Scalac.scala
- Alphabetic
- By Inheritance
- Scalac
- ScalacShared
- ScalaMatchingTask
- ScalaTask
- MatchingTask
- SelectorContainer
- Task
- ProjectComponent
- Cloneable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Scalac()
Type Members
- abstract class PermissibleValue extends AnyRef
Value Members
-
val
MainClass: String
- Definition Classes
- ScalacShared
-
def
XsetIgnore(arg0: String): Unit
- Definition Classes
- MatchingTask
-
def
XsetItems(arg0: String): Unit
- Definition Classes
- MatchingTask
-
def
add(arg0: FileSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addAnd(arg0: AndSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addContains(arg0: ContainsSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addContainsRegexp(arg0: ContainsRegexpSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addCustom(arg0: ExtendSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addDate(arg0: DateSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addDepend(arg0: DependSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addDepth(arg0: DepthSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addDifferent(arg0: DifferentSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addFilename(arg0: FilenameSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addMajority(arg0: MajoritySelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addModified(arg0: ModifiedSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addNone(arg0: NoneSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addNot(arg0: NotSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addOr(arg0: OrSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addPresent(arg0: PresentSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addSelector(arg0: SelectSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addSize(arg0: SizeSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
addType(arg0: TypeSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
def
appendSelector(arg0: FileSelector): Unit
- Definition Classes
- MatchingTask → SelectorContainer
-
final
def
bindToOwner(arg0: Task): Unit
- Definition Classes
- Task
-
def
clone(): AnyRef
- Definition Classes
- ProjectComponent → AnyRef
- Annotations
- @throws( ... )
-
def
createBootclasspath(): Path
Sets the
bootclasspath
as a nested bootclasspath Ant parameter.Sets the
bootclasspath
as a nested bootclasspath Ant parameter.- returns
A source path to be configured.
-
def
createClasspath(): Path
Sets the
classpath
as a nested classpath Ant parameter.Sets the
classpath
as a nested classpath Ant parameter.- returns
A class path to be configured.
-
def
createCompilerArg(): ImplementationSpecificArgument
Sets the
compilerarg
as a nested compilerarg Ant parameter.Sets the
compilerarg
as a nested compilerarg Ant parameter.- returns
A compiler argument to be configured.
- def createCompilerPath: Path
-
def
createExclude(): NameEntry
- Definition Classes
- MatchingTask
-
def
createExcludesFile(): NameEntry
- Definition Classes
- MatchingTask
-
def
createExtdirs(): Path
Sets the
extdirs
as a nested extdirs Ant parameter.Sets the
extdirs
as a nested extdirs Ant parameter.- returns
An extensions path to be configured.
-
def
createInclude(): NameEntry
- Definition Classes
- MatchingTask
-
def
createIncludesFile(): NameEntry
- Definition Classes
- MatchingTask
-
def
createPatternSet(): PatternSet
- Definition Classes
- MatchingTask
-
def
createSourcepath(): Path
Sets the
sourcepath
as a nested sourcepath Ant parameter.Sets the
sourcepath
as a nested sourcepath Ant parameter.- returns
A source path to be configured.
-
def
createSrc(): Path
Sets the
origin
as a nested src Ant parameter.Sets the
origin
as a nested src Ant parameter.- returns
An origin path to be configured.
-
def
execWithArgFiles(java: Java, paths: List[String]): Int
- Definition Classes
- ScalacShared
-
def
execute(): Unit
- Definition Classes
- Scalac → Task
-
def
getDescription(): String
- Definition Classes
- ProjectComponent
-
def
getLocation(): Location
- Definition Classes
- ProjectComponent
-
def
getOwningTarget(): Target
- Definition Classes
- Task
-
def
getProject(): Project
- Definition Classes
- ProjectComponent
-
def
getRuntimeConfigurableWrapper(): RuntimeConfigurable
- Definition Classes
- Task
-
def
getSelectors(arg0: Project): Array[FileSelector]
- Definition Classes
- MatchingTask → SelectorContainer
-
def
getTaskName(): String
- Definition Classes
- Task
-
def
getTaskType(): String
- Definition Classes
- Task
-
def
hasSelectors(): Boolean
- Definition Classes
- MatchingTask → SelectorContainer
-
def
init(): Unit
- Definition Classes
- Task
- Annotations
- @throws( ... )
-
def
log(arg0: String, arg1: java.lang.Throwable, arg2: Int): Unit
- Definition Classes
- Task
-
def
log(arg0: java.lang.Throwable, arg1: Int): Unit
- Definition Classes
- Task
-
def
log(arg0: String, arg1: Int): Unit
- Definition Classes
- Task → ProjectComponent
-
def
log(arg0: String): Unit
- Definition Classes
- Task → ProjectComponent
-
def
maybeConfigure(): Unit
- Definition Classes
- Task
- Annotations
- @throws( ... )
-
final
def
perform(): Unit
- Definition Classes
- Task
-
def
reconfigure(): Unit
- Definition Classes
- Task
-
def
selectorCount(): Int
- Definition Classes
- MatchingTask → SelectorContainer
-
def
selectorElements(): java.util.Enumeration[FileSelector]
- Definition Classes
- MatchingTask → SelectorContainer
-
def
setAddparams(input: String): Unit
Set the
addparams
info attribute.Set the
addparams
info attribute.- input
The value for
addparams
.
-
def
setArgfile(input: File): Unit
Sets the
argfile
attribute.Sets the
argfile
attribute. Used by Ant.- input
The value of
argfile
.
-
def
setBootclasspath(input: Path): Unit
Sets the boot classpath attribute.
Sets the boot classpath attribute. Used by Ant.
- input
The value of
bootclasspath
.
-
def
setBootclasspathref(input: Reference): Unit
Sets the
bootclasspath
as an external reference Ant parameter.Sets the
bootclasspath
as an external reference Ant parameter.- input
A reference to a source path.
-
def
setCaseSensitive(arg0: Boolean): Unit
- Definition Classes
- MatchingTask
-
def
setClasspath(input: Path): Unit
Sets the
classpath
attribute.Sets the
classpath
attribute. Used by Ant.- input
The value of
classpath
.
-
def
setClasspathref(input: Reference): Unit
Sets the
classpath
as an external reference Ant parameter.Sets the
classpath
as an external reference Ant parameter.- input
A reference to a class path.
-
def
setCompilerPath(input: Path): Unit
Sets the
compilerPath
attribute.Sets the
compilerPath
attribute. Used by Ant.- input
The value of
compilerPath
.
-
def
setCompilerPathRef(input: Reference): Unit
Sets the
compilerpathref
attribute.Sets the
compilerpathref
attribute. Used by Ant.- input
The value of
compilerpathref
.
-
def
setDebuginfo(input: String): Unit
Set the
debug
info attribute.Set the
debug
info attribute.- input
The value for
debug
.
-
def
setDefaultexcludes(arg0: Boolean): Unit
- Definition Classes
- MatchingTask
-
def
setDependencyfile(input: File): Unit
Sets the
dependencyfile
attribute.Sets the
dependencyfile
attribute. Used by Ant.- input
The value of
dependencyfile
.
-
def
setDeprecation(input: String): Unit
Set the
deprecation
info attribute.Set the
deprecation
info attribute.- input
One of the flags
yes/no
oron/off
.
-
def
setDescription(arg0: String): Unit
- Definition Classes
- ProjectComponent
-
def
setDestdir(input: File): Unit
Sets the
destdir
attribute.Sets the
destdir
attribute. Used by Ant.- input
The value of
destination
.
-
def
setEncoding(input: String): Unit
Sets the
encoding
attribute.Sets the
encoding
attribute. Used by Ant.- input
The value of
encoding
.
-
def
setExcludes(arg0: String): Unit
- Definition Classes
- MatchingTask
-
def
setExcludesfile(arg0: File): Unit
- Definition Classes
- MatchingTask
-
def
setExplaintypes(input: String): Unit
Set the
explaintypes
info attribute.Set the
explaintypes
info attribute.- input
One of the flags
yes/no
oron/off
.
-
def
setExtdirs(input: Path): Unit
Sets the external extensions path attribute.
Sets the external extensions path attribute. Used by Ant.
- input
The value of
extdirs
.
-
def
setExtdirsref(input: Reference): Unit
Sets the
extdirs
as an external reference Ant parameter.Sets the
extdirs
as an external reference Ant parameter.- input
A reference to an extensions path.
-
def
setFailonerror(input: Boolean): Unit
Sets the
failonerror
attribute.Sets the
failonerror
attribute. Used by Ant.- input
The value for
failonerror
.
-
def
setFollowSymlinks(arg0: Boolean): Unit
- Definition Classes
- MatchingTask
-
def
setForce(input: Boolean): Unit
Sets the
force
attribute.Sets the
force
attribute. Used by Ant.- input
The value for
force
.
-
def
setFork(input: Boolean): Unit
Sets the
fork
attribute.Sets the
fork
attribute. Used by Ant.- input
The value for
fork
.
-
def
setIncludes(arg0: String): Unit
- Definition Classes
- MatchingTask
-
def
setIncludesfile(arg0: File): Unit
- Definition Classes
- MatchingTask
-
def
setJvmargs(input: String): Unit
Sets the
jvmargs
attribute.Sets the
jvmargs
attribute. Used by Ant.- input
The value for
jvmargs
-
def
setLocation(arg0: Location): Unit
- Definition Classes
- ProjectComponent
-
def
setLogPhase(input: String): Unit
Sets the
logphase
attribute.Sets the
logphase
attribute. Used by Ant.- input
The value for
logPhase
.
-
def
setLogging(input: String): Unit
Sets the logging level attribute.
Sets the logging level attribute. Used by Ant.
- input
The value for
logging
.
-
def
setNobootcp(input: String): Unit
Set the
nobootcp
info attribute.Set the
nobootcp
info attribute.- input
One of the flags
yes/no
oron/off
.
-
def
setNowarn(input: String): Unit
Set the
nowarn
info attribute.Set the
nowarn
info attribute.- input
One of the flags
yes/no
oron/off
.
-
def
setOptimise(input: String): Unit
Set the
optimise
info attribute.Set the
optimise
info attribute.- input
One of the flags
yes/no
oron/off
.
-
def
setOwningTarget(arg0: Target): Unit
- Definition Classes
- Task
-
def
setProject(arg0: Project): Unit
- Definition Classes
- MatchingTask → ProjectComponent
-
def
setRuntimeConfigurableWrapper(arg0: RuntimeConfigurable): Unit
- Definition Classes
- Task
-
def
setScalacdebugging(input: Boolean): Unit
Set the
scalacdebugging
info attribute.Set the
scalacdebugging
info attribute. If set totrue
, the scalac ant task will print out the filenames being compiled.- input
The specified flag
-
def
setSourcepath(input: Path): Unit
Sets the
sourcepath
attribute.Sets the
sourcepath
attribute. Used by Ant.- input
The value of
sourcepath
.
-
def
setSourcepathref(input: Reference): Unit
Sets the
sourcepath
as an external reference Ant parameter.Sets the
sourcepath
as an external reference Ant parameter.- input
A reference to a source path.
-
def
setSrcdir(input: Path): Unit
Sets the
srcdir
attribute.Sets the
srcdir
attribute. Used by Ant.- input
The value of
origin
.
-
def
setSrcref(input: Reference): Unit
Sets the
origin
as an external reference Ant parameter.Sets the
origin
as an external reference Ant parameter.- input
A reference to an origin path.
-
def
setTarget(input: String): Unit
Sets the
target
attribute.Sets the
target
attribute. Used by Ant.- input
The value for
target
.
-
def
setTaskName(arg0: String): Unit
- Definition Classes
- Task
-
def
setTaskType(arg0: String): Unit
- Definition Classes
- Task
-
def
setUnchecked(input: String): Unit
Set the
unchecked
info attribute.Set the
unchecked
info attribute.- input
One of the flags
yes/no
oron/off
.
-
def
setUsejavacp(input: String): Unit
Set the
usejavacp
info attribute.Set the
usejavacp
info attribute.- input
One of the flags
yes/no
oron/off
.
-
object
CompilerPhase extends PermissibleValue
Defines valid values for properties that refer to compiler phases.
-
object
Flag extends PermissibleValue
Defines valid values for the
deprecation
andunchecked
properties. -
object
LoggingLevel extends PermissibleValue
Defines valid values for the logging property.
-
object
Target extends PermissibleValue
Defines valid values for the
target
property.
The Scala compiler and reflection APIs.