Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] ajc - how to compile only .aj files but avoidweaving (for load time weaving)

I think when the java/.class files are in the same directory, the compiler may automatically weave them
Even if you do not specify inpath. Try putting the .aj and .java files in a different
Directory and compile .aj files *without* specifying the location of .java/.class files.

Srini

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Jayesh Vora
Sent: Thursday, August 09, 2007 8:48 AM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] ajc - how to compile only .aj files but avoidweaving (for load time weaving)


I tried both ways:
- to start with, I had all my .java and .aj files at one particular folder, which I provided in -sourceroots option and I didn't specify -inpath option, it didn't work

- then I first did 'javac' and compiled all my java files, put all generated class files into a jar and specified that jar in -inpath option, still it didn't work

Both the times it generated woven class files for java files.

- Jayesh


Eric Bodden-2 wrote:
> 
> I think you can just keep your -inpath empty.
> 
> Eric
> 
> On 09/08/07, Jayesh Vora <jayeshjvora@xxxxxxxxx> wrote:
>>
>> Hi,
>>
>> I want to use Load Time Weaving and thus want ajc to compile only .aj 
>> files containing my advices, but do not generate woven class files 
>> for the Java files.
>>
>> I tried going thru' all command line options of ajc but couldn't find 
>> any.
>>
>> Please help.
>>
>> Thanks,
>> Jayesh
>> --
>> View this message in context:
>> http://www.nabble.com/ajc---how-to-compile-only-.aj-files-but-avoid-w
>> eaving-%28for-load-time-weaving%29-tf4242454.html#a12071901
>> 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
>>
> 
> 
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 

--
View this message in context: http://www.nabble.com/ajc---how-to-compile-only-.aj-files-but-avoid-weaving-%28for-load-time-weaving%29-tf4242454.html#a12072723
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