Packages

c

scala.tools.ant

Scalac

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 (for srcdir),
  • classpath,
  • sourcepath,
  • bootclasspath,
  • extdirs,
  • compilerarg.
Source
Scalac.scala
Linear Supertypes
ScalacShared, ScalaMatchingTask, ScalaTask, MatchingTask, SelectorContainer, Task, ProjectComponent, java.lang.Cloneable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scalac
  2. ScalacShared
  3. ScalaMatchingTask
  4. ScalaTask
  5. MatchingTask
  6. SelectorContainer
  7. Task
  8. ProjectComponent
  9. Cloneable
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Scalac()

Type Members

  1. abstract class PermissibleValue extends AnyRef

Value Members

  1. val MainClass: String
    Definition Classes
    ScalacShared
  2. def XsetIgnore(arg0: String): Unit
    Definition Classes
    MatchingTask
  3. def XsetItems(arg0: String): Unit
    Definition Classes
    MatchingTask
  4. def add(arg0: FileSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  5. def addAnd(arg0: AndSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  6. def addContains(arg0: ContainsSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  7. def addContainsRegexp(arg0: ContainsRegexpSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  8. def addCustom(arg0: ExtendSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  9. def addDate(arg0: DateSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  10. def addDepend(arg0: DependSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  11. def addDepth(arg0: DepthSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  12. def addDifferent(arg0: DifferentSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  13. def addFilename(arg0: FilenameSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  14. def addMajority(arg0: MajoritySelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  15. def addModified(arg0: ModifiedSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  16. def addNone(arg0: NoneSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  17. def addNot(arg0: NotSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  18. def addOr(arg0: OrSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  19. def addPresent(arg0: PresentSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  20. def addSelector(arg0: SelectSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  21. def addSize(arg0: SizeSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  22. def addType(arg0: TypeSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  23. def appendSelector(arg0: FileSelector): Unit
    Definition Classes
    MatchingTask → SelectorContainer
  24. final def bindToOwner(arg0: Task): Unit
    Definition Classes
    Task
  25. def clone(): AnyRef
    Definition Classes
    ProjectComponent → AnyRef
    Annotations
    @throws( ... )
  26. 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.

  27. 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.

  28. 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.

  29. def createCompilerPath: Path
  30. def createExclude(): NameEntry
    Definition Classes
    MatchingTask
  31. def createExcludesFile(): NameEntry
    Definition Classes
    MatchingTask
  32. 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.

  33. def createInclude(): NameEntry
    Definition Classes
    MatchingTask
  34. def createIncludesFile(): NameEntry
    Definition Classes
    MatchingTask
  35. def createPatternSet(): PatternSet
    Definition Classes
    MatchingTask
  36. 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.

  37. 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.

  38. def execWithArgFiles(java: Java, paths: List[String]): Int
    Definition Classes
    ScalacShared
  39. def execute(): Unit
    Definition Classes
    Scalac → Task
  40. def getDescription(): String
    Definition Classes
    ProjectComponent
  41. def getLocation(): Location
    Definition Classes
    ProjectComponent
  42. def getOwningTarget(): Target
    Definition Classes
    Task
  43. def getProject(): Project
    Definition Classes
    ProjectComponent
  44. def getRuntimeConfigurableWrapper(): RuntimeConfigurable
    Definition Classes
    Task
  45. def getSelectors(arg0: Project): Array[FileSelector]
    Definition Classes
    MatchingTask → SelectorContainer
  46. def getTaskName(): String
    Definition Classes
    Task
  47. def getTaskType(): String
    Definition Classes
    Task
  48. def hasSelectors(): Boolean
    Definition Classes
    MatchingTask → SelectorContainer
  49. def init(): Unit
    Definition Classes
    Task
    Annotations
    @throws( ... )
  50. def log(arg0: String, arg1: java.lang.Throwable, arg2: Int): Unit
    Definition Classes
    Task
  51. def log(arg0: java.lang.Throwable, arg1: Int): Unit
    Definition Classes
    Task
  52. def log(arg0: String, arg1: Int): Unit
    Definition Classes
    Task → ProjectComponent
  53. def log(arg0: String): Unit
    Definition Classes
    Task → ProjectComponent
  54. def maybeConfigure(): Unit
    Definition Classes
    Task
    Annotations
    @throws( ... )
  55. final def perform(): Unit
    Definition Classes
    Task
  56. def reconfigure(): Unit
    Definition Classes
    Task
  57. def selectorCount(): Int
    Definition Classes
    MatchingTask → SelectorContainer
  58. def selectorElements(): java.util.Enumeration[FileSelector]
    Definition Classes
    MatchingTask → SelectorContainer
  59. def setAddparams(input: String): Unit

    Set the addparams info attribute.

    Set the addparams info attribute.

    input

    The value for addparams.

  60. def setArgfile(input: File): Unit

    Sets the argfile attribute.

    Sets the argfile attribute. Used by Ant.

    input

    The value of argfile.

  61. def setBootclasspath(input: Path): Unit

    Sets the boot classpath attribute.

    Sets the boot classpath attribute. Used by Ant.

    input

    The value of bootclasspath.

  62. 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.

  63. def setCaseSensitive(arg0: Boolean): Unit
    Definition Classes
    MatchingTask
  64. def setClasspath(input: Path): Unit

    Sets the classpath attribute.

    Sets the classpath attribute. Used by Ant.

    input

    The value of classpath.

  65. 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.

  66. def setCompilerPath(input: Path): Unit

    Sets the compilerPath attribute.

    Sets the compilerPath attribute. Used by Ant.

    input

    The value of compilerPath.

  67. def setCompilerPathRef(input: Reference): Unit

    Sets the compilerpathref attribute.

    Sets the compilerpathref attribute. Used by Ant.

    input

    The value of compilerpathref.

  68. def setDebuginfo(input: String): Unit

    Set the debug info attribute.

    Set the debug info attribute.

    input

    The value for debug.

  69. def setDefaultexcludes(arg0: Boolean): Unit
    Definition Classes
    MatchingTask
  70. def setDependencyfile(input: File): Unit

    Sets the dependencyfile attribute.

    Sets the dependencyfile attribute. Used by Ant.

    input

    The value of dependencyfile.

  71. def setDeprecation(input: String): Unit

    Set the deprecation info attribute.

    Set the deprecation info attribute.

    input

    One of the flags yes/no or on/off.

  72. def setDescription(arg0: String): Unit
    Definition Classes
    ProjectComponent
  73. def setDestdir(input: File): Unit

    Sets the destdir attribute.

    Sets the destdir attribute. Used by Ant.

    input

    The value of destination.

  74. def setEncoding(input: String): Unit

    Sets the encoding attribute.

    Sets the encoding attribute. Used by Ant.

    input

    The value of encoding.

  75. def setExcludes(arg0: String): Unit
    Definition Classes
    MatchingTask
  76. def setExcludesfile(arg0: File): Unit
    Definition Classes
    MatchingTask
  77. def setExplaintypes(input: String): Unit

    Set the explaintypes info attribute.

    Set the explaintypes info attribute.

    input

    One of the flags yes/no or on/off.

  78. 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.

  79. 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.

  80. def setFailonerror(input: Boolean): Unit

    Sets the failonerror attribute.

    Sets the failonerror attribute. Used by Ant.

    input

    The value for failonerror.

  81. def setFollowSymlinks(arg0: Boolean): Unit
    Definition Classes
    MatchingTask
  82. def setForce(input: Boolean): Unit

    Sets the force attribute.

    Sets the force attribute. Used by Ant.

    input

    The value for force.

  83. def setFork(input: Boolean): Unit

    Sets the fork attribute.

    Sets the fork attribute. Used by Ant.

    input

    The value for fork.

  84. def setIncludes(arg0: String): Unit
    Definition Classes
    MatchingTask
  85. def setIncludesfile(arg0: File): Unit
    Definition Classes
    MatchingTask
  86. def setJvmargs(input: String): Unit

    Sets the jvmargs attribute.

    Sets the jvmargs attribute. Used by Ant.

    input

    The value for jvmargs

  87. def setLocation(arg0: Location): Unit
    Definition Classes
    ProjectComponent
  88. def setLogPhase(input: String): Unit

    Sets the logphase attribute.

    Sets the logphase attribute. Used by Ant.

    input

    The value for logPhase.

  89. def setLogging(input: String): Unit

    Sets the logging level attribute.

    Sets the logging level attribute. Used by Ant.

    input

    The value for logging.

  90. def setNobootcp(input: String): Unit

    Set the nobootcp info attribute.

    Set the nobootcp info attribute.

    input

    One of the flags yes/no or on/off.

  91. def setNowarn(input: String): Unit

    Set the nowarn info attribute.

    Set the nowarn info attribute.

    input

    One of the flags yes/no or on/off.

  92. def setOptimise(input: String): Unit

    Set the optimise info attribute.

    Set the optimise info attribute.

    input

    One of the flags yes/no or on/off.

  93. def setOwningTarget(arg0: Target): Unit
    Definition Classes
    Task
  94. def setProject(arg0: Project): Unit
    Definition Classes
    MatchingTask → ProjectComponent
  95. def setRuntimeConfigurableWrapper(arg0: RuntimeConfigurable): Unit
    Definition Classes
    Task
  96. def setScalacdebugging(input: Boolean): Unit

    Set the scalacdebugging info attribute.

    Set the scalacdebugging info attribute. If set to true, the scalac ant task will print out the filenames being compiled.

    input

    The specified flag

  97. def setSourcepath(input: Path): Unit

    Sets the sourcepath attribute.

    Sets the sourcepath attribute. Used by Ant.

    input

    The value of sourcepath.

  98. 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.

  99. def setSrcdir(input: Path): Unit

    Sets the srcdir attribute.

    Sets the srcdir attribute. Used by Ant.

    input

    The value of origin.

  100. 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.

  101. def setTarget(input: String): Unit

    Sets the target attribute.

    Sets the target attribute. Used by Ant.

    input

    The value for target.

  102. def setTaskName(arg0: String): Unit
    Definition Classes
    Task
  103. def setTaskType(arg0: String): Unit
    Definition Classes
    Task
  104. def setUnchecked(input: String): Unit

    Set the unchecked info attribute.

    Set the unchecked info attribute.

    input

    One of the flags yes/no or on/off.

  105. def setUsejavacp(input: String): Unit

    Set the usejavacp info attribute.

    Set the usejavacp info attribute.

    input

    One of the flags yes/no or on/off.

  106. object CompilerPhase extends PermissibleValue

    Defines valid values for properties that refer to compiler phases.

  107. object Flag extends PermissibleValue

    Defines valid values for the deprecation and unchecked properties.

  108. object LoggingLevel extends PermissibleValue

    Defines valid values for the logging property.

  109. object Target extends PermissibleValue

    Defines valid values for the target property.