[ http://jira.codehaus.org/browse/MOJO-305?page=all ]
     
Kaare Nilsen closed MOJO-305:
-----------------------------

    Resolution: Fixed

That was easier that feared.
Testcase written, and bug fixed. In AjcHelper now fileutils.fileExists is used 
to check if a directory exists before sent to the directoryscanner

> AspectJ plugin does not work if basedir do not exist
> ----------------------------------------------------
>
>          Key: MOJO-305
>          URL: http://jira.codehaus.org/browse/MOJO-305
>      Project: Mojo
>         Type: Bug

>   Components: aspectj
>     Versions: 1.0
>  Environment: All
>     Reporter: Kaare Nilsen
>     Assignee: Kaare Nilsen

>
>
> Copied from mail from Martin van der Plas  to me
> Sometimes a project only consists of test classes, the  src/main/java
> directory is empty.
> When the profile for these projects is activated, I get the exception
> listed below.
> Is it possible for you to ignore this exception ?
> Best regards,
>    Martin
> ERROR] FATAL ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] basedir X:\xxxxxxxxx\src\main\java does not exist
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalStateException: basedir
> X:\xxxxxx\src\main\java does not exist
>    at
> org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:542)
>    at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1402)
>    at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1368)
>    at
> org.codehaus.mojo.aspectj.AjcHelper.getBuildFilesForSourceDirs(AjcHelper.java:137)
>    at
> org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:272)

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