• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ant build doubt

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Any help is appreciated.
The ant build is failing with this msg: Could not create task or type of type: if.
I am using this in the build.xml
<if name="ind" value="true">
<echo>Executing Damn Fisr</echo>
</if>

i have ant-junit.jar in the ant's build path. Also(hoping that the If taskdefs are present) i placed all the jars that come with the ant 1.6 distribution in the build path. But no use.
thanks in advance
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if is provided in the ant-contrib library. So you need to have the ant-contrib jar in your classpath as well.
 
kirrran kir
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,
thanks for the reply.
Just one more question, if i am not wrong these ant-contrib "if" tasks(from sourceforge) are not among those that are getting deprecated right?

thanks
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kirrran,
Ant contrib is a third party library. So it definitely wouldn't be deprecated based on changes in Ant 1.7.

I haven't seen anything about Ant Contrib deprecations. The if task is a pretty common one, so I can't see them getting rid of it.
reply
    Bookmark Topic Watch Topic
  • New Topic