You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Oliver B. Fischer (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/23 22:24:40 UTC

[jira] [Issue Comment Edited] (MAHOUT-875) Allow to obtain Mahout version information through the Java API

    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156293#comment-13156293 ] 

Oliver B. Fischer edited comment on MAHOUT-875 at 11/23/11 9:24 PM:
--------------------------------------------------------------------

To test the patch simply enter the directory {{core}} and enter {{mvn compile}}. The patch enhences the POM to copy the {{MahoutVersion.java}} file to {{target\generated-sources\version}}. While copying the file, Maven replaces all known properties in the file.

{{driver.classes.props}} contains now the key {{org.apache.mahout.version}}. It is set to the value of {{project.version}}. To replace the property by its value, I use the filterchain feature of Ant.
                
      was (Author: o.b.fischer):
    To test the patch simply enter the directory {{core}} and enter {{mvn compile}}. The patch enhences the POM to copy the {{MahoutVersion.java}} file to {{target\generated-sources\version}}. While copying the file, Maven replaces all known properties in the file.

{{driver.classes.props}} contains now the key {{org.apache.mahout.version}}. It is set to the value of {{project.version}}. To replace the property by its value, I use the filterchain feature of ant.
                  
> Allow to obtain Mahout version information through the Java API
> ---------------------------------------------------------------
>
>                 Key: MAHOUT-875
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-875
>             Project: Mahout
>          Issue Type: Improvement
>    Affects Versions: 0.6
>            Reporter: Oliver B. Fischer
>            Priority: Trivial
>             Fix For: 0.6
>
>         Attachments: MAHOUT-875.patch
>
>
> It would be nice to be able to obtain the used Mahout version through the Java API. This enables users to output the version information for debugging purposes or simple to document which Mahout version is used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira