[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] aspect is not recognized

Just checked, my .project file is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>TestLib</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.ajdt.core.ajbuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.ajdt.ui.ajnature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
</projectDescription>


Thank you,
Simeon

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Andrew Eisenberg
Sent: Friday, September 18, 2009 5:42 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] aspect is not recognized

It sounds like your project is not using the ajbuilder and is using the javabuilder instead.

Your .project file should look something like this:

<projectDescription>
        <name>myproject</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.ajdt.core.ajbuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.ajdt.ui.ajnature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
</projectDescription>

Notice that the ajbuilder is being used and the ajnature is above the javanature.

If your .project file looks different, try right clicking on the project Configure -> Add AspectJ Support

--a
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users