1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-com.eclipsesource.tycho.aspectj.demo

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
aj.adoc 946
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Alexander Kriegisch Отправлено 01.02.2024 07:57 bbe629b

aj, the AspectJ load-time weaving launcher

Name

aj - command-line launcher for basic load-time weaving

Synopsis

aj [Options] [arg…​]

Description

The aj command runs Java programs in Java 1.4 or later by setting up WeavingURLClassLoader as the system class loader, to do load-time bytecode weaving.

The arguments are the same as those used to launch the Java program. Users should define the environment variables CLASSPATH and ASPECTPATH.

For more information and alternatives for load-time weaving, see Load-Time Weaving.

Examples

Use ajc to build a library, then weave at load time

REM compile library
${ASPECTJ_HOME}\bin\ajc.bat -outjar lib\aspects.jar @aspects.lst

REM run, weaving into application at load-time set
ASPECTPATH=lib\aspects.jar set CLASSPATH=app\app.jar
${ASPECTJ_HOME}\bin\aj.bat com.company.app.Main "Hello, World!"

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-com.eclipsesource.tycho.aspectj.demo.git
git@api.gitlife.ru:oschina-mirror/mirrors-com.eclipsesource.tycho.aspectj.demo.git
oschina-mirror
mirrors-com.eclipsesource.tycho.aspectj.demo
mirrors-com.eclipsesource.tycho.aspectj.demo
master