• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

taskdef

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 2 files called test.xml and build.xml.
build.xml is present in D:/Location/build.

I am running build.xml from test.xml as below
<target name="call build.xml" >
<ant dir="D:/Location/build" antfile="build.xml"/>
</target>

build.xml has taskdef as given below
<taskdef name="writeManifest" classname="com.mycompany.ant.Test"/>


When I run the build.xml file is runs fine without any error.
However if I run test.xml(which inturn invokes build.xml) I am getting error that
taskdef class com.gft.ant.Test cannot be found.

What may be the problem?
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like the classpath is different. Where is the classfile located, and what does the classpath entry look like? Perhaps it's a relative path?
 
no wonder he is so sad, he hasn't seen this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic