This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51829 - Ant within IDE does not recognize ant-contrib.jar
Summary: Ant within IDE does not recognize ant-contrib.jar
Status: VERIFIED DUPLICATE of bug 46171
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 23:03 UTC by ggreenberg
Modified: 2005-07-12 10:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ggreenberg 2004-11-24 23:03:00 UTC
I inherited project with existing ant scripts that
are using features in ant-contrib(v.0.6 and later).
I copied ant-contrib.jar to the IDE ant/lib
directory but it is not recognized by the IDE.
Build made from IDE fails, when running ant from
the command line succeed.
I found a discussion on this issue in the mailing
archives from the spring 2004, and it was
aknowledged as a bug but apparently it wasn't
filed (at least I didn't find it).
I checked it with v.4.0b2 and ant-contrib doesn't
work there either.
Comment 1 Jesse Glick 2004-11-29 21:25:04 UTC
Please supply detailed, step-by-step instructions for reproducing the
problem: which version of ant-contrib.jar you are using, where you
placed it in the IDE installation, the build script you are using to
test, and your messages.log file.
Comment 2 ggreenberg 2004-11-30 23:23:31 UTC
I used ant-contrib-0.6.jar and copied it into ant/lib directory within
IDE installation.
When executing Run-target I am getting following messages:

Could not load definitions from resource
net/sf/antcontrib/antcontrib.properties. It could not be found.
accmsl_2_3_0_1\build\ant\build.xml [28] Following error occured while
executing this line
acbuilder_1_4_0_4\tools\build-import.xml [40] Could not create task or
type of type: propertycopy.

Ant could not find the task or a class this task relies upon.

propertycopy is one of ant-contrib features.
Running ant with the same build.xml from command line succeeds.
Comment 3 Milan Kubec 2004-12-01 09:30:51 UTC
I tried that in last RC1 build and it works for me. I put
ant-contrib-0.6.jar into ide4/ant/lib folder under IDE installation
then I put <taskdef
resource="net/sf/antcontrib/antcontrib.properties"/> into my Ant
script and successfully executed script with <antcallback> task. I did
restart of IDE, because I put the jar there when IDE was running.

Lowering prio until there is reproducible test case.
Comment 4 Jesse Glick 2004-12-01 17:48:51 UTC
Well just WORKSFORME until there is a reproducible test case which
anyone could follow starting with a clean 3.6 installation and user dir.
Comment 5 Milan Kubec 2004-12-02 15:05:10 UTC
Well, it really doesn't work on 3.6 for me. What I did:
1) I put ant-contrib.jar into ant/lib folder, started IDE
2) Created Ant script with taskdef to define tasks and using
antcallback task
And I got the same error as reporter:
Could not load definitions from resource
net/sf/antcontrib/antcontrib.properties. It could not be found.
...

Should it be marked as FIXED with TM set to 4.0?
Comment 6 Jesse Glick 2004-12-02 15:41:21 UTC
I guess so.
Comment 7 Jesse Glick 2004-12-02 15:45:18 UTC
Found it.

*** This issue has been marked as a duplicate of 46171 ***
Comment 8 Marian Mirilovic 2005-07-12 10:17:30 UTC
closed