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.
In build-impl.xml build files, I have noticed that the 'unless' attribute on an Ant target is not being set correctly. I am using the latest version of NetBeans 6.1. On the target element, the 'unless' attribute is set to use a property value, not the property name: <target name="some-name" depends="dependency-list" unless="${property-name}"> ... </target> it should be: <target name="some-name" depends="dependency-list" unless="property-name"> ... </target> (no dollar sign and curly braces) This may also be an issue with the 'if' attribute as well. 'if' uses the property name, not the property value as well. This causes the target to be executed when it shouldn't be executed. So far, I have seen this problem with the no.dependencies property. I have seen this problem across multiple projects and project types (BPEL, EJB, SA).
reassigning to ejbjar project type, as it's one of the mentioned ones. after fixing please reassign to the other types.
When I create a plain EJB project from scratch, I don't see any problem like that. Can you please attach the exact code snippet of build-impl.xml that illustrates this problem? Do you use your EJB project as a part of a SOA application? If you do, then I believe SOA enhances the EJB project's build script, so this could be fully a SOA-related problem.
Based on the info I got from the reporter privately, the property in question is ${project.related-proj_BPEL}. So this is SOA-related, reassigning.
Here is the full info from the reported and a snippet of build-impl.xml: <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> <ant target="dist_se" inheritall="false" dir="${project.related-proj_BPEL}"/> </target> <target name="-deps-clean" depends="init" unless="${no.dependencies}"> <ant target="clean" inheritall="false" dir="${project.related-proj_BPEL}"/> </target> This snippet belongs to a BPEL project that is part of a web service. There are EJB and Service Assembly projects as well for this web service. The 'related-proj' web service project also consists of BPEL, EJB & Service assembly projects.