ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hal Hildebrand \(web\)" <Hal.Hildebr...@hellblazer.com>
Subject Re: Ant 1.5Beta3 Released
Date Tue, 25 Jun 2002 03:56:39 GMT
My apologies for not including an example in the first place...

Attached are the build files:
    build.xml
    build2.xml

and the xml include:
    inc.xml

There is a custom task in:
    test.jar

The files
    tasks.properties
    TestTask.java

are the task definition properties and trivial task for "test.jar".

If you just detach the files into a directory, cd into the directory and
do "ant", the output will be:

Buildfile: build.xml
Trying to override old definition of task test

do-something:

do-something:
     [echo] hello sailor


Note that defining tasks using the form:

    <taskdef name="genjar"

classname="org.apache.tools.ant.taskdefs.optional.genjar.GenJar"
                  classpath="${GEN_JAR_JAR}"/>

Does not seem to cause the warning messages.

In the example where I get the messages, it is where tasks are defined
via the form

   <taskdef resource="test/tasks.properties" >
        <classpath>
            <pathelement location="test.jar"/>
        </classpath>
    </taskdef>


Thanks

-Hal

----- Original Message -----
From: "Diane Holt" <holtdl@yahoo.com>


> --- "Hal Hildebrand (web)" <Hal.Hildebrand@hellblazer.com> wrote:
> > Thanks for the release.  Fixes a lot of stuff from my testing so
far.
> > Very cool.
> >
> > However, the messages for overriding tasks still appear.
>
> Could you provide a small example of how to make this happen? I tried
> creating a little test to get these warnings, based on your
description of
> what you're doing, but I must have misunderstood what that is, since I
> couldn't get it to do it, so I must not be doing what you are.



Mime
View raw message