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.
Wizard for Project with Existing Ant Script creates incorrect target mappings in case when: * Location is equal to Project Folder and Build Script name is different from "build.xml" In such a case any mapping defined in wizard in Build and Run Actions panel will be incorrectly stored in project.xml - the <script> subelement of <action> is missing.
There are two possible workarounds: 1) open your nbproject/project.xml and under <ide-actions> fix all <action> elements to contain as first line <script>${ant.script}</script>" so that action looks for example like this: <ide-actions> <action name="..."> <script>${ant.script}</script> <target>...</target> </action> ... </ide-actions> 2) or do not specify any target mapping in wizard and do that after project creation in Project Properties. In this case it will work. Doing this you might experience issue 47160 which might needs to be worked around too: switch main project to some other project and back.
Milan, could you please add this scenario to your test cases? There are unit tests but in this case the logic in wizard panel was broken. There are four states to test: * Location == Project Folder && Build Script == build.xml * Location != Project Folder && Build Script == build.xml * Location == Project Folder && Build Script != build.xml * Location != Project Folder && Build Script != build.xml Fixed in: src/org/netbeans/modules/ant/freeform/ui/TargetMappingWizardPanel.java; new revision: 1.12; previous revision: 1.11
Verified.