[ http://jira.codehaus.org/browse/MOJO-196?page=comments#action_57536 ] 

Jean-Laurent de Morlhon commented on MOJO-196:
----------------------------------------------

Due to the way the code contained in the attached patch solves this bug it's 
also solves MOJO-272 (which states that empty source directory should be 
skipped).

The above patch solves the problem with spaces by changing the way parameters 
are assigned to javancss AND add a DirectoryScanner to ensure that at least one 
java files is in the source directory

> javancss fails when source path contains spaces
> -----------------------------------------------
>
>          Key: MOJO-196
>          URL: http://jira.codehaus.org/browse/MOJO-196
>      Project: Mojo
>         Type: Bug

>  Environment: Maven 2.01, JDK 1.5.0_04, WinXP Home, Cygwin
>     Reporter: Jean-Laurent de Morlhon
>     Priority: Minor
>  Attachments: MOJO-196-javancss-maven-plugin.patch
>
>
> Calling javancss maven plugin on a source folder containing spaces in their 
> absolute path fails the build (JavaNCSS is not able to run at all).
> Example of source folder :
> c:\Document and Settings\MissPiggy\Desktop\MyProject\src\main\java.
> This is due to the way the arguments are assigned to javaNCSS class 
> NcssExecuter.
> Workaround: move the project in another "space character free" location.

-- 
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

Reply via email to