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/--file
command 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, wait
Methods 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:ProtoSession
Returns immutable user properties to use for interpolation. The user properties have been configured directly by the user, e.g. via the-Dkey=value
parameter on the command line.- Specified by:
getUserProperties
in interfaceProtoSession
- Returns:
- the user properties, never
null
-
getSystemProperties
Description copied from interface:ProtoSession
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.
).- Specified by:
getSystemProperties
in interfaceProtoSession
- Returns:
- the system properties, never
null
-
getStartTime
Description copied from interface:ProtoSession
Returns the start time of the session.- Specified by:
getStartTime
in interfaceProtoSession
- Returns:
- the start time as an Instant object, never
null
-
getTopDirectory
Description copied from interface:ProtoSession
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.- Specified by:
getTopDirectory
in interfaceProtoSession
- Returns:
- the directory of the topmost project, never
null
- See Also:
-
getRootDirectory
Description copied from interface:ProtoSession
Gets the root directory of the session, which is the root directory for the top directory project.- Specified by:
getRootDirectory
in interfaceProtoSession
- Returns:
- the root directory, never
null
- See Also:
-