Interface ProtoSession
- All Known Subinterfaces:
InternalMavenSession
,InternalSession
,Session
- All Known Implementing Classes:
AbstractSession
,DefaultSession
,SessionStub
The proto session, material used to create
Session
.- Since:
- 4.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the root directory of the session, which is the root directory for the top directory project.Returns the start time of the session.Returns immutable system properties to use for interpolation.Gets the directory of the topmost project being built, usually the current directory or the directory pointed at by the-f/--file
command line argument.Returns immutable user properties to use for interpolation.static ProtoSession.Builder
Returns new builder from scratch.default ProtoSession.Builder
Returns a proto session builder of this instance.
-
Method Details
-
getUserProperties
-
getSystemProperties
Returns immutable system properties to use for interpolation. The system properties are collected from the runtime environment such asSystem.getProperties()
and environment variables (prefixed withenv.
).- Returns:
- the system properties, never
null
-
getStartTime
-
getTopDirectory
-
getRootDirectory
Gets the root directory of the session, which is the root directory for the top directory project.- Returns:
- the root directory, never
null
- Throws:
IllegalStateException
- if the root directory could not be found- See Also:
-
toBuilder
Returns a proto session builder of this instance. -
newBuilder
Returns new builder from scratch.
-