[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Writing only weaved classes to destdir - not everything from inpath
- From: Fabian Christ <fchrist-dev@xxxxxx>
- Date: Fri, 06 Oct 2006 08:58:07 +0200
- Delivered-to: firstname.lastname@example.org
- User-agent: Thunderbird 220.127.116.11 (Windows/20060909)
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...
> 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.
>> ------------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
>> You can specify the attribute "inpathDirCopyFilter" of "iajc" element
>> described at
>> Simply insert in inpathDirCopyFilter the name (or pattern) of files
>> you want exclude. For the complete description see link above.
>> Fabian Christ ha scritto:
>>> I've question regarding the following situation: I want to weave
>> several binary
>>> classes which are distributed over several JARs. All JARs which might
>>> 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
>>> from "inpath", unpacks JARs and writes it to "destdir". But I don't
>>> everything in destdir but only the weaved classes - the class files
>> which really
>>> I get an output of all weaved classes when adding the "showWeaveInfo"
>>> but this is insufficient.
>>> Is there any way to write only the weaved files into destdir?
>>> aspectj-users mailing list
>> 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 mailing list