[ ant-contrib-Bugs-1987574 ] Tasks not properly defined for ant 1.7
"SourceForge.net" <[email protected]> Sat, 07 Jun 2008 11:26:00 -0700
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1987574, was opened at 2008-06-07 11:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1987574&group_id=36177
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: property
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tasks not properly defined for ant 1.7
Initial Comment:
There's some mystery here, but when I try to run ant-contrib tasks under ant 1.7.0, I get errors like "task not defined propertyregex" and so forth.
What's *really* weird is that this works fine if I invoke ant from Eclipse - perhaps Eclipse embeds a different version?
I tried both:
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
and also
<taskdef resource="net/sf/antcontrib/antlib.xml">
( it looks like the latter just includes the former). Neither worked. I should also note that the ant-contrib website is laid out very strangely with the "other tasks" section.
In any case, what I had to do to fix this is unpack the JAR and edit antlib.xml to include additional:
<taskdef
name="propertyregex"
classname="net.sf.antcontrib.property.RegexTask"
onerror="ignore"/>
I would suggest that this file be updated to include all the taskdefs and stop including the properties file, which doesn't seem to work.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1987574&group_id=36177
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php