ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Jmeter Ant Task
Date Mon, 25 Aug 2003 23:34:08 GMT

Put <jmeter> inside a target and call the target to run the <jmeter> 
task.  Might as well put the <taskdef> inside the target as well.

Jake

At 02:32 PM 8/25/2003 -0700, you wrote:
>Hi,
>
>I am writing an Ant task to automate running JMeter
>test files as per the instructions given at
>
>http://www.programmerplanet.org/ant-jmeter/
>
>This is the build.xml file that I have written
>(essentially the same as the one in the website):
>
><?xml version="1.0"?>
><project name="test" default="compile" basedir=".">
><taskdef name="jmeter"
>classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
>
><jmeter
>     jmeterhome="c:\jakarta-jmeter-1.9.1"
>     testplan="c:\basic\correctlogin.jmx"
>     resultlog="c:\basic\JMeterResults.jtl"/>
></project>
>
>and also included the ant-jmeter.jar file in my ant
>classpath.
>
>However, when I run ant, I get the following error:
>
>file:C:/build.xml:8: Unexpected element "jmeter"
>         at
>org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl
>.java:170)
>         at
>org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
>a:117)
>         at
>org.apache.tools.ant.Main.runBuild(Main.java:596)
>         at
>org.apache.tools.ant.Main.start(Main.java:196)
>         at
>org.apache.tools.ant.Main.main(Main.java:235)
>
>I am not sure what I am doing wrong. Any help will be
>appreciated!
>
>Thanks,
>Archana
>
>
>=====
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>It is better to be hated for what you are than to be loved for what you 
>are not.
>
>-Andre Gide
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message