[ 
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

        

Reply via email to