[ 
https://jira.duraspace.org/browse/DS-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27061#comment-27061
 ] 

Mark H. Wood commented on DS-1401:
----------------------------------

Unless you have files with a literal asterisk in their names, the current code 
won't match anything.  It finds the directory containing the file named in -i 
and walks it, processing each file whose name begins with the value of -i, not 
caring whether there are any wildcard characters.  To match 
/dspace/log/dspace.log* one should write "-i /dspace/log/dspace.log -m".

This behavior is simple to implement but, clearly, a bit surprising.  The 
documentation does attempt to explain it, but could be made more clear.  
However, I wonder if it wouldn't be better to just redefine -i slightly, remove 
-m, and install real wildcard matching.  See for example 
http://stackoverflow.com/questions/794381/how-to-find-files-that-match-a-wildcard-string-in-java.
                
> "stats-log-converter -m" not working
> ------------------------------------
>
>                 Key: DS-1401
>                 URL: https://jira.duraspace.org/browse/DS-1401
>             Project: DSpace
>          Issue Type: Improvement
>    Affects Versions: 3.0
>            Reporter: Ivan Masár
>             Fix For: 3.0
>
>
> When I run
> /dspace/bin/dspace stats-log-converter -m -i /dspace/log/dspace.log* -o 
> statistics.log -n
> only the first file matched is converted (e.g. dspace.log.2012-09-12).
> I'm judging I'm not the only one who has this problem because I found this 
> page suggesting a workaround:
> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Statistics/Old_Versions
> That workaround is inefficient because it requires starting up the JVM once 
> for each day of statistics processed.
> The relevant code is here:
> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/statistics/util/ClassicDSpaceLogConverter.java#L345

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to