----- Original Message ----- 
  
  
  Sent: Friday, October 04, 2002 2:09 
  AM
  Subject: Re: [platform-ant-dev] 
  Taskdef
  
  I have tried a number of sources before 
  filing.
  It seems none of the answers I have found so far 
  actually work.
   
  
    ----- Original Message ----- 
    
    
    Sent: Friday, October 04, 2002 1:58 
    AM
    Subject: [platform-ant-dev] 
    Taskdef
    
    Hi,
     
    I have declared a task to be executed in the 
    build file.
    What is the correct place to include the jar 
    file in order to execute the task ?
     
    I have ran the following build 
    file.
    This build comprises of compiling the 
    source code then  executing the task.
    I wish to include the jar file so that the 
    task is executed without a compilation taking place.
     
    
    <?xml version="1.0"?>
    <project name="OwnTaskExample2" default="main" 
    basedir=".">
    <target name="build" >
        <mkdir 
    dir="builddir"/>
        <javac srcdir="source" 
    destdir="builddir"/>
    </target>
    <target name="declare" 
    depends="build">
        <taskdef 
    name="mytask"classname="com.mydomain.MyVeryOwnTask" classpath="build"/>
    </target>
    <target name="main" 
depends="declare">
        <mytask message="Hello World! 
    MyVeryOwnTask works!"/>
    </target>
    </project>