object SessionSettings extends Serializable
- Alphabetic
- By Inheritance
- SessionSettings
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class Clear extends SessionCommand
- final class Print extends SessionCommand
- final class Remove extends SessionCommand
- final class Save extends SessionCommand
- type SbtConfigFile = (File, Seq[String])
-
sealed
trait
SessionCommand extends AnyRef
AST for the syntax of the session command.
AST for the syntax of the session command. Each subclass is an action that can be performed.
- type SessionMap = Map[ProjectRef, Seq[SessionSetting]]
-
type
SessionSetting = (Def.Setting[_], Seq[String])
A session setting is simply a tuple of a Setting[_] and the strings which define it.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def Help: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkSession(newSession: SessionSettings, oldState: State): Unit
Checks to see if any session settings are being discarded and issues a warning.
-
def
clearAllSettings(s: State): State
This will clear ALL transient session settings in a given build state, returning the new build state.
-
def
clearSettings(s: State): State
This will clear any user-added session settings for a given build state and return the new build state.
This will clear any user-added session settings for a given build state and return the new build state.
Note: Does not clear
rawAppend
settings -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
command(s: State): Parser[() ⇒ State]
The raw implementation of the session command.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def natSelect: Parser[Seq[(Int, Int)]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def needsTrailingBlank(lines: Seq[String]): Boolean
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
parser: Parser[SessionCommand]
Parser for the session command.
-
def
pluralize(size: Int, of: String): String
Adds
s
to a strings when needed.Adds
s
to a strings when needed. Maybe one day we'll care about non-english languages. -
def
printAllSettings(s: State): State
Prints all the user-defined SessionSettings (not raw) to System.out.
-
def
printSettings(settings: Seq[SessionSetting]): Unit
Prints all the passed in session settings
-
def
printSettings(s: State): State
Prints all the defined session settings for the current project in the given build state.
- def range: Parser[(Int, Int)]
-
def
reapply(session: SessionSettings, s: State): State
This will re-evaluate all Setting[_]'s on this session against the current build state and return the new build state.
- lazy val remove: Parser[Remove]
- def removeRanges[T](in: Seq[T], ranges: Seq[(Int, Int)]): Seq[T]
-
def
removeSettings(s: State, ranges: Seq[(Int, Int)]): State
Removes settings from the current session, by range.
Removes settings from the current session, by range.
- s
The current build state.
- ranges
A set of Low->High tuples for which settings to remove.
- returns
The new build state with settings removed.
-
def
saveAllSettings(s: State): State
Saves *all* session settings to disk for all projects.
-
def
saveSettings(s: State): State
Saves the session settings to disk for the current project.
-
def
saveSomeSettings(s: State)(include: (ProjectRef) ⇒ Boolean): State
Saves session settings to disk if they match the filter.
Saves session settings to disk if they match the filter.
- s
The build state
- include
A filter function to determine which project's settings to persist.
- returns
The new build state.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withSettings(s: State)(f: (SessionSettings) ⇒ State): State
A convenience method to alter the current build state using the current SessionSettings.
A convenience method to alter the current build state using the current SessionSettings.
- s
The current build state
- f
A function which takes the current SessionSettings and returns the new build state.
- returns
The new build state
- def writeSettings(pref: ProjectRef, settings: List[SessionSetting], original: Seq[Def.Setting[_]], structure: BuildStructure): (Seq[SessionSetting], Seq[Def.Setting[_]])