[ http://jira.codehaus.org/browse/SUREFIRE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165858#action_165858 ]
SebbASF commented on SUREFIRE-536: ---------------------------------- This appears to be due to the following code in AbstractDirectoryTestSuite.processIncludesExcludes(List list): incs[i] = StringUtils.replace( (String) list.get( i ), "java", "class" ); Changing this to incs[i] = StringUtils.replace( (String) list.get( i ), ".java", ".class" ); would be better than nothing, however that would still fail on a directory name that contains ".java" (perhaps not very likely). What is really needed is to only replace the ".java" if it appears at the end of the string. > Plugin cannot handle "java" in a path name > ------------------------------------------ > > Key: SUREFIRE-536 > URL: http://jira.codehaus.org/browse/SUREFIRE-536 > Project: Maven Surefire > Issue Type: Bug > Components: plugin > Affects Versions: 2.4.3 > Reporter: SebbASF > > Commons SCXML has the following include: > <include>org/apache/commons/scxml/env/javascript/EnvJavaScriptTestSuite.java</include> > However, the suite was not being found and executed. > A bit of experimentation shows that the problem is the string "java" in the > pathname. > A work-round is to use: > <include>org/apache/commons/scxml/env/j*avascript/EnvJavaScriptTestSuite.java</include> > or > <include>org/apache/commons/scxml/env/jav*ascript/EnvJavaScriptTestSuite.java</include> > or > <include>org/apache/commons/scxml/env/*/EnvJavaScriptTestSuite.java</include> > etc. -- 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