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 56488 - cannot create web app from existing sources
Summary: cannot create web app from existing sources
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 19:15 UTC by Vince Kraemer
Modified: 2006-03-24 12:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2005-03-15 19:15:15 UTC
for a web application that doesn't have java src...

To reproduce:

get the cmpcustomer.tar.gz attachment on bug 56470.

extract it in someplace, like /tmp...

Start File->New Project->Web->Web Application with existing sources

Enter the location /tmp/cmpcustomer/cmpcustomer-war.

click next

Notice: 

the web pages folder field is correct.
The source package folder value is empty and correct (there aren't any java
files, so there isn't a src/java directory...)
The test packages folder is empty and correct.

The finish button is disabled....
Comment 1 Radko Najman 2005-03-16 10:33:53 UTC
At least one source folder must be specified. Please provide an error message
for the panel (to let the user know why Finish button is disabled) and reassign
beck to me. Thanks.
Comment 2 Vince Kraemer 2005-03-17 09:34:04 UTC
Why does the user need to create a directory for something that they don't have (java source code)?

They may not have java source in their web app, ever....
Comment 3 Petr Jiricka 2005-03-18 07:55:54 UTC
I agree with Vince, however we don't have time to change this for 4.1. The best
we can do is to display an explanation message.
Comment 4 Jiri Kopsa 2005-03-22 09:14:56 UTC
There was a paralel mail thread regarding this issue. Here is its conclusion:

If the user tries to import a web application without any java sources folder,
an error message with the following text will appear:
"Provide at least one Source Package Folder."

The user will have to create an empty folder and add it as Java sources folder
(workaround).

For promo f, we may want to fix the code and allow web applications without Java
sources (which is a valid use case) - filing and enhancemet for this (56778).
http://www.netbeans.org/issues/show_bug.cgi?id=56778
Comment 5 Radko Najman 2005-03-22 11:34:48 UTC
Fixed.

cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/PanelSourceFolders.java,v
 <--  PanelSourceFolders.java
new revision: 1.6; previous revision: 1.5

/cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.53; previous revision: 1.52
Comment 6 zikmund 2005-04-01 09:10:09 UTC
Verified in 200503301800.