<Resend without "test.jar" attached, as Ant list rejects it>

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" <[EMAIL PROTECTED]>


> --- "Hal Hildebrand (web)" <[EMAIL PROTECTED]> 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.
>
> Diane
>
> =====
> ([EMAIL PROTECTED])
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>
<?xml version="1.0"?>
<!DOCTYPE project [
    <!ENTITY inc SYSTEM "inc.xml">
]>

<project name="example2" default="do-something" >
    <!-- Include common build definitions -->
    &inc;

    <target name="do-something" >
        <echo message="hello sailor" />
    </target>
</project>
<?xml version="1.0"?>
<!DOCTYPE project [
    <!ENTITY inc SYSTEM "inc.xml">
]>

<project name="example" default="do-something" >
    <!-- Include common build definitions -->
    &inc;

    <target name="do-something" >
        <ant antfile="build2.xml" />
    </target>
</project>

    <!-- Common Build Tasks  -->
    <taskdef resource="test/tasks.properties" >
        <classpath>
            <pathelement location="test.jar"/>
        </classpath>
    </taskdef>

Attachment: tasks.properties
Description: Binary data

Attachment: TestTask.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to