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 (Created) (JIRA)" <ji...@apache.org> on 2011/11/07 00:56:52 UTC

[jira] [Created] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Allow to obtaint Mahout version information through the Java API
----------------------------------------------------------------

                 Key: MAHOUT-875
                 URL: https://issues.apache.org/jira/browse/MAHOUT-875
             Project: Mahout
          Issue Type: Improvement
            Reporter: Oliver B. Fischer
            Priority: Trivial
             Fix For: 0.6


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

        

Re: [jira] [Closed] (MAHOUT-875) Allow to obtain Mahout version information through the Java API

Posted by Ted Dunning <te...@gmail.com>.
oliver,

we normally only close issues when we verify they are part of a release.
 This helps us in building release notes.

On Sat, Dec 31, 2011 at 5:28 AM, Oliver B. Fischer (Closed) (JIRA) <
jira@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Oliver B. Fischer closed MAHOUT-875.
> ------------------------------------
>
>
> Applied to the source repository.
>
> > 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
>
>
>

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

Posted by "Oliver B. Fischer (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer closed MAHOUT-875.
------------------------------------


Applied to the source repository.
                
> 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Status: Open  (was: Patch Available)

Ted, I will overhaul the patch and resubmit it in some days.
                
> 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

        

[jira] [Updated] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Attachment: MAHOUT-875.patch

This patch illustrates how the Maven version information could be used to provide it via the Java API of Mahout.
                
> Allow to obtaint 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153493#comment-13153493 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

I had a rough look at {{driver.classes.props}} and it seems that this properties has an different use. It seems so, that is is only used to translate message keys into a more meaningfull string.
                
> Allow to obtaint 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

        

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

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154137#comment-13154137 ] 

Frank Scholten commented on MAHOUT-875:
---------------------------------------

The driver.classes.default.props file (renamed from driver.classes.props by the ant-run plugin) may not be a good location after all since it won't be used if there is a user provided driver.classes.props on the classpath. 

Maybe a 'version' program with a version.props file? This way you can run 'bin/mahout version' and the script does not need to be filtered or modified.
                
> 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

        

[jira] [Updated] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Status: Open  (was: Patch Available)

I will provide a new patch within the next days with support for {{./bin/mahout}}.
                
> Allow to obtaint 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

        

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

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154140#comment-13154140 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

I would like to create a second separate issue for adding the version information to the {{./bin/mahout}} script since it requires more effort than adding the same information to the Java API. Any objections?
                
> 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Status: Patch Available  (was: Open)
    
> 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

        

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

Posted by "Isabel Drost (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154584#comment-13154584 ] 

Isabel Drost commented on MAHOUT-875:
-------------------------------------

No problem - go ahead and move the discussion on adding the version number information to the shell script to a new issue.
                
> 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

        

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

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177784#comment-13177784 ] 

Hudson commented on MAHOUT-875:
-------------------------------

Integrated in Mahout-Quality #1283 (See [https://builds.apache.org/job/Mahout-Quality/1283/])
    MAHOUT-875 - Added version object with associated resource.

tdunning : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1225885
Files : 
* /mahout/trunk/core/src/main/java/org/apache/mahout/Version.java
* /mahout/trunk/core/src/main/resources/version
* /mahout/trunk/pom.xml

                
> 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154113#comment-13154113 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

I can add it to {{driver.classes.props}} without any problem. 

Applying the same mechanism to the {{./bin/mahout}} script and to {{driver.classes.props}} means to move the to the directories for resources. This is easily done for the {{dirver.classes.props}} but not for the script. This would require a much more radical change to the build infrastructure. 
                
> Allow to obtaint 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Attachment:     (was: MAHOUT-875.patch)
    
> 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
>
>
> 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153478#comment-13153478 ] 

Ted Dunning commented on MAHOUT-875:
------------------------------------

{quote}
Of course, I can apply this solution also to the {{./bin/mahout}} script. Would it be enough to add support for an option --version which forces the script to output a string like {{Apache Mahout xyz}}?
{quote}
That seems like plenty for now.  We can add a resource and version API later if people want it in addition.

                
> Allow to obtaint 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Attachment:     (was: MAHOUT-875.patch)
    
> 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

        

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

Posted by "Ted Dunning (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Dunning updated MAHOUT-875:
-------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed patch.
                
> 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

        

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

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177997#comment-13177997 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

Thank you Ted.
                
> 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

        

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

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155055#comment-13155055 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

I just created MAHOUT-892. This issue addresses the requested changes to the {{mahout}} script below {{bin}}.
                
> 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
>
>
> 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Attachment: MAHOUT-875.patch
    
> 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

        

[jira] [Updated] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Affects Version/s: 0.6
               Status: Patch Available  (was: Open)
    
> Allow to obtaint 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
>
>
> 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

        

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

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167871#comment-13167871 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

Can someone please review my patch?
                
> 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

        

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

Posted by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156354#comment-13156354 ] 

Ted Dunning commented on MAHOUT-875:
------------------------------------

{quote}
{{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.
{quote}
It would be better to not depend on ant and use the property replacement capabilities of Maven.  In particular, resources already get this treatment by default so you can put references to the properties you care about in a resource and simply read that resource when you want the version info.

In addition, the version of Mahout is to be found in the META-INF directory in the jar.  This allows this code to get the desired version.  Resources can also be used.

Here is sample code:
{code}
public class Version {
  public static String version() {
    return Version.class.getPackage().getImplementationVersion();
  }

  public static String versionFromResource() throws IOException {
    return Resources.toString(Resources.getResource("version"), Charsets.UTF_8);
  }
}
{code}

Unfortunately, the standard method based on Package.getImplementationVersion will not work with our current job jar because of some non-standardness in the build process.  It does work on the mahout-core jar itself.  Also, it doesn't work in debugging since it depends on META-INF appearing in the right jar.

The resources approach will work regardless of how the code is packaged.  To interpolate variables into a resource, the following needs to be added to the pom:

{code}
<resources>
  <resource>
    <directory>src/main/resources</directory>
    <filtering>true</filtering>
  </resource>
</resources>
{code}
This should be added to the <build> element.

The following needs to be put into a file in core/src/main/resources/version
{code}
${project.version}
{code}


See also

http://docs.oracle.com/javase/tutorial/deployment/jar/packageman.html
http://docs.oracle.com/javase/7/docs/technotes/guides/versioning/spec/versioning2.html#wp89936
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
                
> 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

        

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

Posted by "Oliver B. Fischer (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153469#comment-13153469 ] 

Oliver B. Fischer edited comment on MAHOUT-875 at 11/19/11 1:02 PM:
--------------------------------------------------------------------

That is right. I use the usual ways Maven processes resources and substitutes parameters. Currently {{MahoutVersion.java}} contains only a placeholder like {{public final static String VERSION = "${project.version}";}}. Maven will replace it by the version value in the POM.

Of cource, I can apply this solution also to the {{./bin/mahout}} script. Would it be engough to add support for an option {{--version}} which forces the script to output a string like {{Apache Mahout xyz}}?
                
      was (Author: o.b.fischer):
    That is right. I use the usual ways Maven processes resources and substitutes parameters. Currently {{MahoutVersion.java}} contains only a placeholder like {{public final static String VERSION = "${project.version}";}}. Maven will replace it by the version value in the POM.

Of cource, I can apply this solution also to the {{./bin/mahout}} script. Would it be engough to add support for an option --version which forces the script to outout a string like {{Apache Mahout xyz}}?
                  
> Allow to obtaint 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Attachment: MAHOUT-875.patch

This version of the patch adds also a version string to {{driver.classes.props}}.
  	
                
> 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

        

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

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156293#comment-13156293 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

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

        

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

Posted by "Oliver B. Fischer (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Ted Dunning (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Dunning reassigned MAHOUT-875:
----------------------------------

    Assignee: Ted Dunning
    
> 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
>            Assignee: Ted Dunning
>            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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Status: Patch Available  (was: Open)

I provided a new version of the patch which takes Teds suggestions into consideration.
                
> 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

        

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

Posted by "Oliver B. Fischer (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13157152#comment-13157152 ] 

Oliver B. Fischer edited comment on MAHOUT-875 at 12/6/11 2:26 PM:
-------------------------------------------------------------------

@Ted: I will overhaul the patch and resubmit it in some days.
                
      was (Author: o.b.fischer):
    Ted, I will overhaul the patch and resubmit it in some days.
                  
> 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

        

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

Posted by "Oliver B. Fischer (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154113#comment-13154113 ] 

Oliver B. Fischer edited comment on MAHOUT-875 at 11/21/11 11:07 AM:
---------------------------------------------------------------------

I can add it to {{driver.classes.props}} without any problem. 

Applying the same mechanism to the {{./bin/mahout}} script and to {{driver.classes.props}} means to move the to the directories for resources. This is easily done for the {{driver.classes.props}} but not for the script. This would require a much more radical change to the build infrastructure. 
                
      was (Author: o.b.fischer):
    I can add it to {{driver.classes.props}} without any problem. 

Applying the same mechanism to the {{./bin/mahout}} script and to {{driver.classes.props}} means to move the to the directories for resources. This is easily done for the {{dirver.classes.props}} but not for the script. This would require a much more radical change to the build infrastructure. 
                  
> Allow to obtaint 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153469#comment-13153469 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

That is right. I use the usual ways Maven processes resources and substitutes parameters. Currently {{MahoutVersion.java}} contains only a placeholder like {{public final static String VERSION = "${project.version}";}}. Maven will replace it by the version value in the POM.

Of cource, I can apply this solution also to the {{./bin/mahout}} script. Would it be engough to add support for an option --version which forces the script to outout a string like {{Apache Mahout xyz}}?
                
> Allow to obtaint 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

        

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

Posted by "Oliver B. Fischer (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver B. Fischer updated MAHOUT-875:
-------------------------------------

    Summary: Allow to obtain Mahout version information through the Java API  (was: Allow to obtaint Mahout version information through the Java API)
    
> 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Oliver B. Fischer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153480#comment-13153480 ] 

Oliver B. Fischer commented on MAHOUT-875:
------------------------------------------

Ok, I will enhence the patch during the next days.
                
> Allow to obtaint 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Isabel Drost (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153147#comment-13153147 ] 

Isabel Drost commented on MAHOUT-875:
-------------------------------------

Patch applies cleanly, however I do not quite get how this is supposed to work. It seems like the patch adds support for generating version information as part of the maven build cycle? Which maven command do I need to issue to do this generation? Do you plan to also add integration of this into the ./bin/mahout script?
                
> Allow to obtaint 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153479#comment-13153479 ] 

Ted Dunning commented on MAHOUT-875:
------------------------------------

Also, I believe that Package in the context of maven already provides something like that in the jar meta-data.
                
> Allow to obtaint 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153501#comment-13153501 ] 

Ted Dunning commented on MAHOUT-875:
------------------------------------

Sure.  But it is reasonable to have a message key that translates into the version string.
                
> Allow to obtaint 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

        

[jira] [Commented] (MAHOUT-875) Allow to obtaint Mahout version information through the Java API

Posted by "Frank Scholten (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153484#comment-13153484 ] 

Frank Scholten commented on MAHOUT-875:
---------------------------------------

What about adding ${project.version} to driver.classes.props? This way you can get the version via MahoutDriver, which loads this file.
                
> Allow to obtaint 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

        

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

Posted by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174872#comment-13174872 ] 

Ted Dunning commented on MAHOUT-875:
------------------------------------

This looks simple and sweet to me.  

It works my having maven insert the version into a resource and then a method method reads the resource.

It doesn't give information about included libraries, but knowing the Mahout version should give you that.
                
> 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