From b56328aa9e0565bf2053a9cd6a8acdfd0e4255e4 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 7 Jan 2010 13:32:42 +0000 Subject: [PATCH] replaced references to "spring-agent.jar" with "org.springframework.instrument.jar" (SPR-6597) --- .../weaving/DefaultContextLoadTimeWeaver.java | 6 +++--- .../classloading/InstrumentationLoadTimeWeaver.java | 13 ++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java b/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java index 6016cf665a..a715d26280 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java +++ b/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,8 +80,8 @@ public class DefaultContextLoadTimeWeaver implements LoadTimeWeaver, BeanClassLo this.loadTimeWeaver.getInstrumentableClassLoader().getClass().getName()); } catch (IllegalStateException ex) { - throw new IllegalStateException(ex.getMessage() + " Specify a custom LoadTimeWeaver " + - "or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar"); + throw new IllegalStateException(ex.getMessage() + " Specify a custom LoadTimeWeaver or start your " + + "Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar"); } } } diff --git a/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java b/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java index 02808a1807..fb71a52219 100644 --- a/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java +++ b/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,15 +32,14 @@ import org.springframework.util.ClassUtils; * *

Start the JVM specifying the Java agent to be used, like as follows: * - *

-javaagent:path/to/spring-agent.jar + *

-javaagent:path/to/org.springframework.instrument.jar * - *

where spring-agent.jar is a JAR file containing the - * {@link InstrumentationSavingAgent} class. + *

where org.springframework.instrument.jar is a JAR file containing + * the {@link InstrumentationSavingAgent} class, as shipped with Spring. * - *

In Eclipse, for example, set the "Run configuration"'s JVM args - * to be of the form: + *

In Eclipse, for example, set the "Run configuration"'s JVM args to be of the form: * - *

-javaagent:${project_loc}/lib/spring-agent.jar + *

-javaagent:${project_loc}/lib/org.springframework.instrument.jar * * @author Rod Johnson * @author Juergen Hoeller