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 49885 - [freeform] wizard creates incorrect target mappings
Summary: [freeform] wizard creates incorrect target mappings
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
Depends on:
Reported: 2004-10-04 14:07 UTC by David Konecny
Modified: 2006-03-24 09:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-10-04 14:07:36 UTC
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.
Comment 1 David Konecny 2004-10-04 14:17:47 UTC
There are two possible workarounds:

1) open your nbproject/project.xml and under <ide-actions> fix all
<action> elements to contain as first line 


so that action looks for example like this:

    <action name="...">

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.
Comment 2 David Konecny 2004-10-04 14:48:25 UTC
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:
new revision: 1.12; previous revision: 1.11
Comment 3 Jaromir Uhrik 2005-07-14 16:18:55 UTC