[
https://issues.apache.org/jira/browse/SYSTEMML-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16011229#comment-16011229
]
Deron Eriksson commented on SYSTEMML-1600:
--
Hi [~KrishnaKalyan3]
This is a great way to start becoming familiar with some of SystemML's codebase.
To get the version number, you might want to try something such as the
following:
{code}
try {
ProjectInfo info = ProjectInfo.getProjectInfo();
if (info.version() != null) {
// display info.version()
}
} catch (MLContextException e) {
}
{code}
If the SystemML jar file is available, this will obtain the version number from
the jar manifest. If the jar file isn't available (such as when
developing/debugging in an IDE such as Eclipse), an MLContextException will be
thrown, in which case we can just ignore the exception.
> Display version in MLContext welcome message
>
>
> Key: SYSTEMML-1600
> URL: https://issues.apache.org/jira/browse/SYSTEMML-1600
> Project: SystemML
> Issue Type: Improvement
> Components: APIs
>Reporter: Deron Eriksson
>Priority: Minor
>
> Append SystemML version number to MLContext welcome message. It is available
> via the MLContext version() method.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)