Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Cactus with Ant

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Ranchers:
I am starting to run cactus with Ant. By the how-to documentation, I included this in the build file:
<!-- Define the Cactus tasks -->
<taskdef resource="cactus.tasks">
<classpath>
<pathelement location="lib/cactus.jar"/>
<pathelement location="lib/cactus-ant.jar"/>
<pathelement location="lib/commons-httpclient.jar"/>
<pathelement location="lib/commons-logging.jar"/>
<pathelement location="lib/aspectjrt.jar"/>
</classpath>
</taskdef>
But got this exception:
Buildfile: build.xml
BUILD FAILED
Class org.apache.tools.ant.taskdefs.Taskdef doesn't support the "resource" attribute
Total time: 0 seconds
So looks like "resource" is not allowed in the taskdef attribute. This error is generated both in 1.5.4 and 1.6.1 version of Ant. I am running W2K.
Thanks for any suggestions.
 
Tony Yan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got around this by using other format of the taskdef task. But it seems to me that cactus-ant integration has some problems, at least for the documentation, which is kinda unusual for apache projects.
Regards,
 
Tony Yan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made cactus work fine w/ ant now. I have found the problem. I didn't set up the path correctly. duh!
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic