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.
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.
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.
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.
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.
Well just WORKSFORME until there is a reproducible test case which anyone could follow starting with a clean 3.6 installation and user dir.
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?
I guess so.
Found it. *** This issue has been marked as a duplicate of 46171 ***
closed