Thanks for the suggestions. :-)

I am still having the same error, though.
httpget is ant task defined in fikin.  It said it requires Apache
HttpClient.
I see commons-httpclient-3.0.1.jar in tools directory.

Any other suggestions?

Thanks in advance,

Choiso


Thomas Loy wrote:
> 
> 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:[email protected]] 
> Sent: Tuesday, January 05, 2010 5:46 PM
> To: [email protected]
> 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Antnewbie---failed-to-create-task-or-type-httpget-tp27026736p27069573.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to