ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Archana Bharathidasan <archanabhara...@yahoo.com>
Subject Re: Jmeter Ant Task
Date Mon, 25 Aug 2003 23:48:56 GMT
Thanks, that works :-)!
--- Conor MacNeill <conor@cortexebusiness.com.au>
wrote:
> On Tue, 26 Aug 2003 07:32 am, Archana Bharathidasan
> 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
> 
> Ant 1.5 does not allow arbittrary tasks to exist
> outside a target. Put your 
> jmeter task inside a target.
> 
> Alternatively, you can use a recent nightly build of
> Ant 1.6 which removes 
> this restriction.
> 
> Conor
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


Mime
View raw message