Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Running AspectJ

Given that your aspect is in a file called 'LogCollector.aj' - are you
sure you are including it in the compile? You must do:

ajc *.aj *.java

If you just do

ajc *.java

then the aspect won't be picked up.  I compiled your 3 files and it
worked as you expect, with the method executions advised.

Andy.

On 03/04/07, rolando80 <roland_piazzi@xxxxxxxxxxx> wrote:

Hi!

yes in Eclipse the program runs normally, but out of this not.

Roland


Jesse Hepburn wrote:
>
> Or you can get the AspectJ plugin for eclipse.  Then all you need to do is
> mark the project as an aspectJ project and you're set.
>
> It even tells you what match points you have.
>
> ----- Original Message ----
> From: Andy Clement <andrew.clement@xxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Sent: Monday, April 2, 2007 1:04:57 PM
> Subject: Re: [aspectj-users] Running AspectJ
>
> Hi Roland,
>
> What are you expecting it to do?  Have you written some pointcuts and
> advice in an aspect that you expect should apply when you run the Test
> program?  You can tell if weaving is occurring from the command line
> using 'ajc -showWeaveInfo *.java' - does that produce any extra
> output?  Are your aspects in a .java file or in a .aj file?
>
> Andy.
>
> On 02/04/07, Roland Piazzi <roland_piazzi@xxxxxxxxxxx> wrote:
>>
>>
>> Hi!
>>
>> I'm very new with aspectJ and I'm trying to run a program with
>>
>> ajc -classpath %aspectj_home% *.java
>>
>> and
>>
>> java Test
>>
>> it runs without errors, but within the output it forgets to put the
>> aspect-output.
>>
>> The program does function with eclipse.
>>
>> I've not modified inpath and aspectpath, should i do so?
>>
>> Excuse me because of the very easy question...
>>
>> I would be very thankful if someone could help me.
>>
>> roland
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>
>
>
>
> ____________________________________________________________________________________
> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives.
> http://tools.search.yahoo.com/toolbar/features/mail/
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>

--
View this message in context: http://www.nabble.com/Running-AspectJ-tf3507798.html#a9807655
Sent from the AspectJ - users mailing list archive at Nabble.com.

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



Back to the top