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 47756

Summary: [40cat] New project from existing sources has no option to copy sources into new project structure
Product: java Reporter: coldrick <coldrick>
Component: ProjectAssignee: jrojcek <jrojcek>
Status: RESOLVED INCOMPLETE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

Description coldrick 2004-08-24 00:40:43 UTC
[ BUILD # : beta 1 ]
[ JDK VERSION : J2SE 1.4.2_05 ]

Seems very clumsy to me, especially in the case where the user doesn't want the existing sources disturbed *and* would like to follow the directory structure that nb4 uses by default. I tried creating a project (without existing sources), making sure I named the package and main class correctly, then - external to the IDE - copied the source files into the src directory.

A simple checkbox labelled "Copy Source Files", or some such, would make this use case easier.
Comment 1 Jesse Glick 2004-08-24 02:46:42 UTC
No plans to make any changes here, at least not for 4.0. You can already

1. Make a project dir anywhere else, leaving existing sources intact.

2. Make the project dir be above the src (& optionally test) packages,
leaving existing sources intact.

3. Make a fresh "library" project with standard layout and copy
sources in the Favorites tab, Windows Explorer, etc.

#3 could be made a little slicker by offering to copy your old source
tree into the new layout, but there are some issues involved in this,
especially involving VCS - if you have version-controlled sources, it
may not be obvious to the user that you will be losing all your VCS
information during the copy.

An earlier proposed solution was to let you make the new project
empty, then have a context menu item on it "Import Sources..." which
would just do a copy. But again this will often be useless for users
of VCS and so this needs to be done carefully.