FAQ
Hi - I'm trying to use pyAntTasks. I downloaded the jar and placed it
into ~/.ant/lib, put that directory into my CLASSPATH. I then created
a very simple build.xml and I'm getting a failure I can't explain.

Here is my build.xml:

<project name="wesman">
<taskdef resource="pyAntTasks.properties"/>
</project>

Here is my CLASSPATH:
echo $CLASSPATH
/home/wtorres/.ant/lib

And here's what's in it:
ls -lrt $CLASSPATH
total 24
-rwxrwxr-x 1 wtorres staff 8563 Jan 15 18:34 pyAntTasks.jar

When I run ant, here is the failure:

(the 'ant' script I'm running here sets up ant 1.6.2 and runs it)
/vobs/jfw/ant
ANT=/tools/ant/1.6.2
Buildfile: build.xml
[taskdef] Could not load definitions from resource
pyAntTasks.properties. It could not be found.

BUILD SUCCESSFUL
Total time: 1 second

What the heck am I doing wrong? Where can I find
pyAntTasks.properties? I mean, it makes sense that "It could not be
found" because I can't find it either. Where do I get/put this?
Thanks
-w

Search Discussions

  • Superwesman at Jan 16, 2008 at 6:24 am

    On Jan 15, 11:41 pm, superwesman wrote:
    Hi - I'm trying to use pyAntTasks. I downloaded the jar and placed it
    into ~/.ant/lib, put that directory into my CLASSPATH. I then created
    a very simple build.xml and I'm getting a failure I can't explain.

    Here is my build.xml:

    <project name="wesman">
    <taskdef resource="pyAntTasks.properties"/>
    </project>

    Here is my CLASSPATH:
    echo $CLASSPATH
    /home/wtorres/.ant/lib

    And here's what's in it:
    ls -lrt $CLASSPATH
    total 24
    -rwxrwxr-x 1 wtorres staff 8563 Jan 15 18:34 pyAntTasks.jar

    When I run ant, here is the failure:

    (the 'ant' script I'm running here sets up ant 1.6.2 and runs it)
    /vobs/jfw/ant
    ANT=/tools/ant/1.6.2
    Buildfile: build.xml
    [taskdef] Could not load definitions from resource
    pyAntTasks.properties. It could not be found.

    BUILD SUCCESSFUL
    Total time: 1 second

    What the heck am I doing wrong? Where can I find
    pyAntTasks.properties? I mean, it makes sense that "It could not be
    found" because I can't find it either. Where do I get/put this?
    Thanks
    -w
    update: I downloaded a newer version on pyAntTasks and this file is
    included. Somebody should tell them to remove the bad build or at
    least mention that it won't work ;)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJan 16, '08 at 5:41a
activeJan 16, '08 at 6:24a
posts2
users1
websitepython.org

1 user in discussion

Superwesman: 2 posts

People

Translate

site design / logo © 2022 Grokbase