You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/04/09 16:16:18 UTC

svn commit: r646373 - /jakarta/jmeter/trunk/extras/build.xml

Author: sebb
Date: Wed Apr  9 07:16:17 2008
New Revision: 646373

URL: http://svn.apache.org/viewvc?rev=646373&view=rev
Log:
Allow ant-jmeter jar to be in extras or Ant/lib

Modified:
    jakarta/jmeter/trunk/extras/build.xml

Modified: jakarta/jmeter/trunk/extras/build.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/extras/build.xml?rev=646373&r1=646372&r2=646373&view=diff
==============================================================================
--- jakarta/jmeter/trunk/extras/build.xml (original)
+++ jakarta/jmeter/trunk/extras/build.xml Wed Apr  9 07:16:17 2008
@@ -22,6 +22,7 @@
 		See http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
 		
 		Download the ant-jmeter.jar file and save it in the same directory as this build file
+		- or in the Ant lib directory
 		
 	To run a test and create the output report:
 		ant -Dtest=script
@@ -77,10 +78,16 @@
 	<!-- 
 		See http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php	
 		Download the ant-jmeter.jar file and save it in the same directory as this build file
-	--> 
+		- or in the Ant lib directory
+	-->
+	<!-- Allow jar to be picked up locally as well -->
+    <path id="jmeter.classpath">
+       <pathelement location="${basedir}/ant-jmeter.jar"/>
+    </path>
+
 	<taskdef
 	    name="jmeter"
-	    classpath="${basedir}/ant-jmeter.jar"
+	    classpathref="jmeter.classpath"
 	    classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
 	
 	



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org