package sbuild

SBuild API Reference

This package contains SBuild core classes and public API.

Project Homepage:

SBuild is released under the Apache License, Version 2.0.

SBuild API to be used in SBuild build scripts

The following classes form SBUild's public API:

Classes and objects, not listed above are candidates to change in succeeding releases. You are encouraged, to use only the API form above in your build scripts.

Default Scheme Handlers

The following list of SchemeHandler implementations are registered by-default with their default configuration in each SBuild project. To register or overwrite a scheme handler in your project, you should use SchemeHandler$.apply.

Linear Supertypes
AnyRef, Any
  1. Alphabetic
  2. By inheritance
  1. sbuild
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
  1. Public
  2. All

Type Members

  1. class BuildFileProject extends Project

  2. trait BuildScriptAware extends AnyRef

  3. class BuildfileCompilationException extends ProjectConfigurationException

    Invalid use of SBuild API.

  4. class CamelCaseMatcher extends AnyRef

  5. class ExecutionFailedException extends SBuildException

    The execution of an target, which was defined in the project file, failed.

  6. trait ExperimentalPlugin extends AnyRef

    WARNING: Do not use this experimental API

  7. class HttpSchemeHandler extends HttpSchemeHandlerBase with SchemeResolver

    An HTTP-Scheme handler, that will download the given URI into a directory preserving the URI as path.

  8. class HttpSchemeHandlerBase extends SchemeHandler

  9. class InvalidApiUsageException extends ProjectConfigurationException

    Invalid use of SBuild API.

  10. class InvalidCommandlineException extends SBuildException

    An invalid commandline was given.

  11. trait LocalizableSupport[E] extends AnyRef

  12. trait LogLevel extends AnyRef

  13. class MapperSchemeHandler extends SchemeHandler

    A MapperSchemeHandler will maintain an mapping from on scheme to another scheme.

  14. class MissingConfigurationException extends SBuildException

    An required but not-configured property was accessed.

  15. class Module extends AnyRef

  16. trait MutableProject extends ProjectBase

  17. class MvnSchemeHandler extends SchemeResolver

    A SchemeHandler able to download Maven artifacts from a set of Maven repositories.

  18. class OSGiVersion extends Comparable[OSGiVersion]

    Version identifier for bundles and packages.

  19. trait Project extends MutableProject with ProjectAntSupport

  20. trait ProjectAntSupport extends AnyRef

  21. trait ProjectBase extends AnyRef

  22. class ProjectConfigurationException extends SBuildException

    A error was detected while parsing and/or initializing the project.

  23. class ProjectPool extends AnyRef

  24. trait ProjectReader extends AnyRef

  25. class ProjectTarget extends Target

  26. case class ResolveResult(wasUpToDate: Boolean, error: Option[Throwable]) extends Product with Serializable

  27. class SBuildConsoleLogger extends SBuildLogger

  28. class SBuildException extends RuntimeException with BuildScriptAware with TargetAware

    Common superclass for specific SBuild exceptions.

  29. trait SBuildLogger extends AnyRef

  30. class ScanSchemeHandler extends SchemeResolver with TransparentSchemeResolver with SideeffectFreeSchemeResolver

    Scans a directory for files, recursiv.

  31. trait SchemeHandler extends AnyRef

    Translates a target name into another target name

  32. trait SchemeResolver extends SchemeHandler

    A SchemeHandler, that also resolves the representing target.

  33. trait SchemeResolverWithDependencies extends SchemeResolver

  34. trait SideeffectFreeSchemeResolver extends SchemeResolver

    An internal marker interface.

  35. trait Target extends AnyRef

  36. trait TargetAware extends AnyRef

  37. trait TargetContext extends AnyRef

    While a target is executed, this trait can be used to get relevant information about the current target execution and interact with the executor.

  38. class TargetContextImpl extends TargetContext

  39. class TargetNotFoundException extends SBuildException

    An unknown target was requested (on command line or as a dependency).

  40. class TargetRef extends AnyRef

  41. class TargetRefs extends AnyRef

  42. trait TransparentSchemeResolver extends SchemeResolver

    An internal marker interface.

  43. case class UniqueTargetFile(file: File, phony: Boolean, handler: Option[SchemeHandler]) extends Product with Serializable

  44. class UnsupportedSchemeException extends SBuildException

    An unsupported scheme was used in a target or dependency.

  45. trait WithinTargetExecution extends AnyRef

  46. class ZipSchemeHandler extends SchemeResolver with SchemeResolverWithDependencies

  47. class classpath extends Annotation

    Add additional classpath elements (jars, dirs) to the compile and execution environment of the current build file.

  48. class include extends Annotation

    Include one ore more Scala files to access them from the current project.

  49. class version extends Annotation

  50. trait SchemeHandlerWithDependencies extends SchemeResolverWithDependencies


    (Since version 0.4.1) Use SchemeResolverWithDependencies instead.

Value Members

  1. object BuildfileCompilationException extends LocalizableSupport[BuildfileCompilationException] with Serializable

  2. object CamelCaseMatcher

  3. object ExecutionFailedException extends LocalizableSupport[ExecutionFailedException] with Serializable

  4. object ExperimentalPlugin

    WARNING: Do not use this experimental API

  5. object ExportDependencies

    Export dependencies to be consumed by other tools, e.

  6. object InvalidApiUsageException extends LocalizableSupport[InvalidApiUsageException] with Serializable

  7. object InvalidCommandlineException extends LocalizableSupport[InvalidCommandlineException] with Serializable

  8. object LogLevel

  9. object MavenSupport

  10. object MissingConfigurationException extends LocalizableSupport[MissingConfigurationException] with Serializable

  11. object Module

  12. object Modules

  13. object OSGiVersion

  14. object Path

    Path can be used to produce absolute File instances which are relative to the current SBuild project directory or the directory containing an included and explicit requested project resource.

  15. object Paths

  16. object ProjectConfigurationException extends LocalizableSupport[ProjectConfigurationException] with Serializable

  17. object Prop

  18. object ResolveFiles

    EXPERIMENTAL API - Resolve TargetRefs.

  19. object SBuildNoneLogger extends SBuildLogger

  20. object SBuildVersion

  21. object SchemeHandler

    Register a SchemeHandler under a scheme qualifier into the current project.

  22. object SetProp

  23. object Target

  24. object TargetNotFoundException extends LocalizableSupport[TargetNotFoundException] with Serializable

  25. object TargetRef

  26. object TargetRefs

  27. object UnsupportedSchemeException extends LocalizableSupport[UnsupportedSchemeException] with Serializable

  28. object Util

  29. object WithinTargetExecution extends ThreadLocal[WithinTargetExecution]

  30. package execute

Deprecated Value Members

  1. object Pathes


    (Since version Use Paths instead.

Inherited from AnyRef

Inherited from Any