Package org.apache.maven.api
Class ProtoSession.Builder.Impl
java.lang.Object
org.apache.maven.api.ProtoSession.Builder.Impl
- All Implemented Interfaces:
ProtoSession
- Enclosing class:
ProtoSession.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.ProtoSession
ProtoSession.Builder -
Field Summary
Fields -
Constructor Summary
Constructors -
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/--filecommand line argument.Returns immutable user properties to use for interpolation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.ProtoSession
toBuilder
-
Field Details
-
userProperties
-
systemProperties
-
startTime
-
topDirectory
-
rootDirectory
-
-
Constructor Details
-
Impl
-
-
Method Details
-
getUserProperties
Description copied from interface:ProtoSessionReturns immutable user properties to use for interpolation. The user properties have been configured directly by the user, e.g. via the-Dkey=valueparameter on the command line.- Specified by:
getUserPropertiesin interfaceProtoSession- Returns:
- the user properties, never
null
-
getSystemProperties
Description copied from interface:ProtoSessionReturns immutable system properties to use for interpolation. The system properties are collected from the runtime environment such asSystem.getProperties()and environment variables (prefixed withenv.).- Specified by:
getSystemPropertiesin interfaceProtoSession- Returns:
- the system properties, never
null
-
getStartTime
Description copied from interface:ProtoSessionReturns the start time of the session.- Specified by:
getStartTimein interfaceProtoSession- Returns:
- the start time as an Instant object, never
null
-
getTopDirectory
Description copied from interface:ProtoSessionGets the directory of the topmost project being built, usually the current directory or the directory pointed at by the-f/--filecommand line argument.- Specified by:
getTopDirectoryin interfaceProtoSession- Returns:
- the directory of the topmost project, never
null - See Also:
-
getRootDirectory
Description copied from interface:ProtoSessionGets the root directory of the session, which is the root directory for the top directory project.- Specified by:
getRootDirectoryin interfaceProtoSession- Returns:
- the root directory, never
null - See Also:
-