vendredi 27 juin 2014

Load-time weaving and java -jar


Vote count:

0




Is it possible to add the aspectj load-time agent when start a program with -jar ?


With Jetty, if I start



java -javaagent:aspectjweaver-1.8.0.jar -classpath toto.jar -jar start.jar


The aspectj is not apply. But I if call



java -javaagent:aspectjweaver-1.8.0.jar -classpath toto.jar;start.jar org.eclipse.jetty.start.Main


all was fine.



asked 53 secs ago






Aucun commentaire:

Enregistrer un commentaire