Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Weaving an aspect into single class in jar
Weaving an aspect into single class in jar [message #596584] Wed, 16 January 2008 09:38
Eclipse UserFriend
Originally posted by: nullnullschneider.gmail.com

Hey there,
I have the following problem:
There is a jar file "test.jar" that contains only class files and no source.
Lets say test.jar has the following files
/p1/class1.class
/p1/class2.class
/p2/class3.class

Now I want to weave an aspect only into /p1/class1.class!

When I do it via commandline I get an error.

ajc -1.5 @classes_1.lst -d injectedProject Injector_1.aj -inpath inject
where classes_1.lst contains /p1/class1.class

Is this possible to do this? Can the compiler access single class files in a
jar archive? How do I have to address them? How do I tell the compiler which
class files it should use?

The source of this problem is a massive memory usage when I weave it into
the whole jar at once. Therefore I want to use multiple compiler calls and
weave it step by step. Would the incremental weaving supported by the
compiler also be an alternative?

Thanks,
Daniel
Previous Topic:Cross References from Aspects to all projects
Next Topic:ERROR : export - plugin with aspectj support
Goto Forum:
  


Current Time: Thu Apr 18 17:30:31 GMT 2024

Powered by FUDForum. Page generated in 0.01857 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top