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 228117 - Freeform project wizard creates duplicate source package directories in project.xml
Summary: Freeform project wizard creates duplicate source package directories in proje...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-31 10:05 UTC by MackSix
Modified: 2013-09-01 19:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (79.54 KB, image/png)
2013-03-31 10:05 UTC, MackSix
Details
project.xml (4.79 KB, application/xml)
2013-03-31 10:07 UTC, MackSix
Details
Logfile (68.70 KB, application/octet-stream)
2013-03-31 10:07 UTC, MackSix
Details
build.xml from jEdit source 5.0.0 (68.26 KB, application/xml)
2013-03-31 17:35 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-03-31 10:05:59 UTC
Created attachment 133236 [details]
Screenshot

1. Get jEdit 5.0.0 source code here: http://sourceforge.net/projects/jedit/files/jedit/5.0.0/jedit5.0.0source.tar.bz2/download (or the latest from the svn repository).

2. Create a project folder jEditFreeForm and place the jEdit directory and all of its project files in it.

3. Run NetBeans and choose File>>Create New Project>>Java: Jave Free-Form project.

4. Click Next to Name and Location.

6. Location: %Path%\jEditFreeForm\jEdit
Build Script: %Path%/jEditFreeForm\jEdit\build.xml
Project Folder: %Path%\jEditFreeForm
Project Name: (Use default jedit).

7. click Next to Source Package Folders and notice 5 duplicate entries for the source package folder "jEdit" is listed.

See attached screenshot, project.xml and logfile. 

Workaround: delete the extra entries.

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2013-03-31 10:07:06 UTC
Created attachment 133237 [details]
project.xml
Comment 2 MackSix 2013-03-31 10:07:51 UTC
Created attachment 133238 [details]
Logfile
Comment 3 MackSix 2013-03-31 10:10:52 UTC
I set-up a small Ant project outside of NetBeans and created a free-form project with it and this does not occur, so there is something about the jEdit 5 project that makes this problem occur.
Comment 4 MackSix 2013-03-31 17:35:20 UTC
Created attachment 133240 [details]
build.xml from jEdit source 5.0.0
Comment 5 MackSix 2013-07-04 10:46:58 UTC
This only occurs when choosing Project Folder first and then choosing Location. If Location is chosen first, then Build Script, it works OK.

Workaround #2: Choose Location first and then Build Script

Bug still valid in:

Product Version: NetBeans IDE Dev (Build 201307032300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 6 MackSix 2013-07-04 10:52:56 UTC
Sorry, Comment 5 is NOT correct.

This only occurs when you choose %Path%\jEditFreeForm\jEdit as the Location. If %Path%\jEditFreeForm is chosen as Location, this does not occur.

Workaround #2: Choose %Path%\jEditFreeForm for Location in Step 6.
Comment 7 Tomas Zezula 2013-08-30 07:09:13 UTC
Fixed jet-main 3038b60fa056
Comment 8 Quality Engineering 2013-09-01 01:24:30 UTC
Integrated into 'main-silver', will be available in build *201309010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3038b60fa056
User: Tomas Zezula <tzezula@netbeans.org>
Log: #228117:Freeform project wizard creates duplicate source package directories in project.xml
Comment 9 MackSix 2013-09-01 19:36:43 UTC
V. fixed in:

Product Version: NetBeans IDE Dev (Build 201309010001)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)