[
http://jira.codehaus.org/browse/MFITNESSE-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
pkernevez closed MFITNESSE-22.
------------------------------
Resolution: Fixed
Fix Version/s: 1.1-beta-1
> getFitnesseReportDir fail throw exception with .svn directory
> -------------------------------------------------------------
>
> Key: MFITNESSE-22
> URL: http://jira.codehaus.org/browse/MFITNESSE-22
> Project: Maven 2.x Fitnesse Plugin
> Issue Type: Test
> Environment: GNU/Linux
> Reporter: Luca Marrocco
> Assignee: pkernevez
> Priority: Trivial
> Fix For: 1.1-beta-1
>
> Attachments: FitnesseReportMojo.java.patch
>
>
> if ( !tExecutionFile.exists() || !tExecutionFile.isDirectory() ||
> tExecutionFile.list().length == 0 )
> in particulare tExecutionFile.list().length return 1 on GNU/Linux environment
> because tExecutionFile during test execution target to directory that contain
> .svn (subversion metadata information) so assertion fail because expected
> exception is not throwed.
> i found that adding a filenameFilter solve this problem:
> FilenameFilter filterSvnDirectory = new FilenameFilter()
> {
> public boolean accept( File dir, String name )
> {
> return !name.equals( ".svn" );
> }
> };
> if ( !tExecutionFile.exists() || !tExecutionFile.isDirectory() ||
> tExecutionFile.list(filterSvnDirectory).length == 0 )
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email