de.tototec.sbuild.addons.java

Javac

class Javac extends AnyRef

Java Compiler addon.

The compiler can be configured via constructor parameter or vars. To actually start the compilation use Javac#execute.

To easily configure and execute the compiler in one go, see Javac$#apply.

Since

0.4.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Javac
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Javac(compilerClasspath: Seq[File] = null, classpath: Seq[File] = null, sources: Seq[File] = null, srcDir: File = null, srcDirs: Seq[File] = null, destDir: File = null, encoding: String = "UTF-8", deprecation: Boolean = null, verbose: Boolean = null, source: String = null, target: String = null, debugInfo: String = null, fork: Boolean = false, additionalJavacArgs: Seq[String] = null)(implicit project: Project)

    Creates a new Javac Compiler addon instance.

    Creates a new Javac Compiler addon instance. All parameters can be omitted and set later.

    The source files can be given via multiple parameters, sources, srcDir and srcDirs, and will be joined.

    compilerClasspath

    The classpath which contains the compiler and its dependencies. If not given, the environment variable JAVA_HOME will be checked, and if it points to a installed JDK, this one will be used.

    classpath

    The classpath used to load dependencies of the sources.

    sources

    Source files to be compiled.

    srcDir

    A directory containing Java source files.

    srcDirs

    Multiple directories containing Java source files.

    destDir

    The directory, where the compiled class files will be stored. If the directory does not exists, it will be created.

    encoding

    The encoding of the source files.

    deprecation

    Output source locations where deprecated APIs are used.

    verbose

    Output messages about what the compiler is doing.

    source

    Provide source compatibility with specified release.

    target

    Generate class files for the specified VM version.

    debugInfo

    If specified generate debugging info. Supported values: none, lines, vars, source, all.

    fork

    Run the compile in a separate process (if true).

    additionalJavacArgs

    Additional arguments directly passed to the Java compiler. Refer to the javac manual or inspect javac -help output.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Javac to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Javac, B)

    Implicit information
    This member is added by an implicit conversion from Javac to ArrowAssoc[Javac] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. var additionalJavacArgs: Seq[String]

    Additional arguments directly passed to the Java compiler.

    Additional arguments directly passed to the Java compiler. Refer to the javac manual or inspect javac -help output.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. var classpath: Seq[File]

    The classpath used to load dependencies of the sources.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compileExternal(args: Array[String]): Int

    Attributes
    protected
  13. def compileInternal(args: Array[String]): Int

    Attributes
    protected
  14. var compilerClasspath: Seq[File]

    The classpath which contains the compiler and its dependencies.

    The classpath which contains the compiler and its dependencies. If not given, the environment variable JAVA_HOME will be checked, and if it points to a installed JDK, this one will be used.

  15. var debugInfo: String

    If specified generate debugging info.

    If specified generate debugging info. Supported values: none, lines, vars, source, all.

  16. var deprecation: Boolean

    Output source locations where deprecated APIs are used.

  17. var destDir: File

    The directory, where the compiled class files will be stored.

    The directory, where the compiled class files will be stored. If the directory does not exists, it will be created.

  18. var encoding: String

    The encoding of the source files.

  19. def ensuring(cond: (Javac) ⇒ Boolean, msg: ⇒ Any): Javac

    Implicit information
    This member is added by an implicit conversion from Javac to Ensuring[Javac] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: (Javac) ⇒ Boolean): Javac

    Implicit information
    This member is added by an implicit conversion from Javac to Ensuring[Javac] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean, msg: ⇒ Any): Javac

    Implicit information
    This member is added by an implicit conversion from Javac to Ensuring[Javac] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean): Javac

    Implicit information
    This member is added by an implicit conversion from Javac to Ensuring[Javac] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  25. def execute: Unit

    Execute the Java compiler.

  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. var fork: Boolean

    Run the compile in a separate process (if true).

  28. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Javac to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. val javacClassName: String

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. var source: String

    Provide source compatibility with specified release.

  37. var sources: Seq[File]

    Source files to be compiled.

  38. var srcDir: File

    A directory containing Java source files.

  39. var srcDirs: Seq[File]

    Multiple directories containing Java source files.

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. var target: String

    Generate class files for the specified VM version.

  42. def toString(): String

    Definition Classes
    Javac → AnyRef → Any
  43. var verbose: Boolean

    Output messages about what the compiler is doing.

  44. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def [B](y: B): (Javac, B)

    Implicit information
    This member is added by an implicit conversion from Javac to ArrowAssoc[Javac] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Javac to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (javac: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Javac to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (javac: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Javac

    Implicit information
    This member is added by an implicit conversion from Javac to ArrowAssoc[Javac] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (javac: ArrowAssoc[Javac]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Javac

    Implicit information
    This member is added by an implicit conversion from Javac to Ensuring[Javac] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (javac: Ensuring[Javac]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Javac to StringAdd

Inherited by implicit conversion any2stringfmt from Javac to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Javac to ArrowAssoc[Javac]

Inherited by implicit conversion any2Ensuring from Javac to Ensuring[Javac]

Ungrouped