[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Writing only weaved classes to destdir - not everything from inpath
|
Hi,
thanks for your prompt help.
As I see there is no direct way to get only the affected classes. So I have to
think about a workaround here.
A .class scanner might be one solution. Or you take the weaveInfo string and
extract the class information from it to copy only affected files. This could be
done in a self written Ant task...
regards,
Fabian
Wes schrieb:
> Per "inpathDirCopyFilter" documentation:
>
> ajc itself copies all resources from input jar/zip
> files on the inpath
>
> So "inpathDirCopyFilter" can't be used to prevent ajc
>>from writing all files, including those not affected.
>
> It would be easy enough to write a .class scanner to
> detect whether a .class file was affected by an aspect.
> Perhaps the solution is to write that scanner.
>
> It used to be that you could suppress the output of
> unchanged classes by changing the weaver method
> dumpUnchanged(..) (or some such) to do nothing, but I'm
> not sure if that's still true.
>
> Wes
>
>> ------------Original Message------------
>> From: Stalsy <stalsy@xxxxxxxxx>
>> To: aspectj-users@xxxxxxxxxxx
>> Date: Thu, Oct-5-2006 8:25 AM
>> Subject: Re: [aspectj-users] Writing only weaved classes to destdir - not everything from inpath
>>
>> Hi,
>>
>> You can specify the attribute "inpathDirCopyFilter" of "iajc" element
>> described at
>> http://www.eclipse.org/aspectj/doc/next/devguide/antTasks-iajc.html.
>> Simply insert in inpathDirCopyFilter the name (or pattern) of files
>> that
>> you want exclude. For the complete description see link above.
>>
>> regards
>>
>> Fabian Christ ha scritto:
>>> Hi,
>>>
>>> I've question regarding the following situation: I want to weave
>> several binary
>>> classes which are distributed over several JARs. All JARs which might
>> contain
>>> classes that should be weaved are on the "inpath". My problem is not
>> to write
>>> the aspect but how to get the weaved class files after compiling.
>>>
>>> When I weave the classes with the "iajc" Ant task the compiler gets
>> everything
>>> from "inpath", unpacks JARs and writes it to "destdir". But I don't
>> want
>>> everything in destdir but only the weaved classes - the class files
>> which really
>>> changed.
>>>
>>> I get an output of all weaved classes when adding the "showWeaveInfo"
>> parameter
>>> but this is insufficient.
>>>
>>> Is there any way to write only the weaved files into destdir?
>>>
>>> Thanks,
>>> Fabian
>>>
>>> _______________________________________________
>>> aspectj-users mailing list
>>> aspectj-users@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>>
>>>
>>>
>>>
>>
>> --
>> Stalsy
>>
>> HomePage --:. http://www.stalsy.it
>> Blog --:. http://blog.stalsy.com
>> Public Key --:. http://www.stalsy.it/key.php
>> E-Mail --:. stalsy@xxxxxxxxx
>> ICQ --:. 302346155
>> MSN --:. faricci@xxxxxxxx
>>
>>
>> _______________________________________________
>> 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