Re: Runtime requirements
Jonas Bonér <[email protected]> Fri, 09 May 2003 21:10:25 +0200
| Newsgroups | gmane.comp.java.aspectwerkz |
|---|---|
| Message-ID | <[email protected]> |
Hi Eric. The most lightweight you can make it is to post-process your .class files and run them as ususal. You don't need the whole AspectWerkz dist for this, you only need to have the aspectwerkz.jar in your classpath (along with the libs needed for running aspectwerkz, see the lib folder) and to set couple of system properties. See the docs. [http://aspectwerkz.sourceforge.net/documentation.html#Startup%20and%20transformations] <quote> Post-process all class files in a specific directory (recursively): aspectwerkz -offline <definitionfile> <classpath> <srcdir> Note: when you then are running the application (without using the aspectwerkz command) you have to feed the JVM with the -Daspectwerkz.home=<path_to_the_root_of_the_distribution> and the -Daspectwerkz.definition.file=<path_to_the_definition_file> options. You also have to put all the libraries in the ASPECTWERKZ_HOME/lib directory in your classpath. </quote> Is this lightweight enough? - Jonas Eric Jain wrote: > Great project, looks like I can finally do all those nice things I never > dared to do with AspectJ :-) > > The only thing that is still holding me back is the concern that it may > not be possible to generate code that can be used without having > Aspectwerkz installed and several system properties set, which > unfortunately is not an option for certain parts of the application that > need to be made available to other developers :-( > > On the other hand, simply having the requirements of a few additional > jars and config files in the classpath wouldn't be a problem. Are there > any ongoing efforts to make Aspectwerkz more leightweight? > > > -- > Eric Jain > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > aspectwerkz-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aspectwerkz-developer > > -- Jonas http://freeroller.net/page/jboner ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com