On Tue, Mar 24, 2009 at 11:58 PM, jb-perso <j...@defard.com> wrote:
>
>
> Hi,
>
> I have a problem with eclipse plugin 1.6-SNAPSHOT. When i generate eclipse
> project (eclipse : eclipse), this version add **/*.java pattern for source
> dir :
>
> <classpathentry kind="src" path="src/main/java" including="**/*.java "/>
>
> It’s fine for java projects, but for AspectJ projects, the *.aj files isn’t
> recognized.
>
> When i patch manually the .classpath :
>
> <classpathentry kind="src" path="src/main/java"
> including="**/*.java|**/*.aj"/>
>
> The problem disappear.
>
>
>
> I have not found how to configure my POM to do this automatically. Is it  a
> bug or a feature ?
>
> How to configure including pattern for sources dir ?

This was a fix as per http://jira.codehaus.org/browse/MECLIPSE-443

Looking at the source for EclipseClasspathWriter it is capable of
adding includes if it is a non-resource directory.
However all creation of non-resource directories use null as the
include value and there is no way to specify it.

I've not used aspectj so I'm just guessing what you are trying to do.
Can you explain why you want non-java files on the classpath?
Does the aspectj builder work with these files and need the *.aj on
the classpath to work.

If that is the case, can you file a bug and include a working example
of the .project, .classpath etc so I can add a test case for this.

It should be a matter of changing EclipsePlugin.extractAspectDirs() to
add "*.aj" as the include string in the EclipseSourceDir()
constructor.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to