ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Loy <Thomas....@cbeyond.net>
Subject RE: Antnewbie - failed to create task or type httpget
Date Tue, 05 Jan 2010 22:51:25 GMT
Try using something like this:

        <taskdef resource="net/sf/antcontrib/antlib.xml"
                 classpathref="tools.classpath"/>

The classpath ref should look something like this and point to your antcontrib.jar file.

    <!-- This contains ant-contrib and other build tools.  -->
    <path id="tools.classpath">
        <fileset dir="${ivy.lib.dir}/tools">
            <include name="**/*.jar"/>
        </fileset>
    </path>

Cheers,
 
Tom Loy


-----Original Message-----
From: soochoi [mailto:choiso100@hotmail.com] 
Sent: Tuesday, January 05, 2010 5:46 PM
To: user@ant.apache.org
Subject: Antnewbie - failed to create task or type httpget


Hello, 
  I am new to Ant, so please help! :-)

I am trying to use httpget in ant.. 
//-------------------------------
        <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
        <httpget url="${site}/test/postFile.php" loglevel="none"
cookiePolicy="compatibility" logProcessAs="text"/>
//-------------------------------
I am getting the following errors.
//-------------------------------
Problem: failed to create task or type httpget
Cause: The name is undefined
	at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:484)
	at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:416)
	at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
//---------------------------------

I have no idea where to debug the problem.

I am using ant-1.7.1  and copied ant-contrib-1.0b3-modified.jar and
fikin-ant-1.7.3.jar into $ANT_HOME/lib directory.
I think I am missing some other jar, can't figure it out which one is
missing.

Thanks in advance,
choiso
-- 
View this message in context: http://old.nabble.com/Antnewbie---failed-to-create-task-or-type-httpget-tp27026736p27026736.html
Sent from the Ant - Users mailing list archive at Nabble.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