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 121804 - ejb project from existing sources
Summary: ejb project from existing sources
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-13 13:37 UTC by Radim Roska
Modified: 2007-12-07 16:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.51 KB, text/plain)
2007-11-13 13:38 UTC, Radim Roska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radim Roska 2007-11-13 13:37:21 UTC
build : rc1 from 13.nov

steps to reproduce :
1. create ejb project
2. delete ejb project ( do not delete sources..)
3. create ejb project from existing sources ( specify path to the deleted project, next, set configuration files )
4. first change i've noticed compare to test specification - finish is not active until you select src package folder
too. But after selecting this finish is active and you can push it.
5. push finish...it will stuck on 33% -> in terminal you will see exception i've attached.

Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot create folder test in folder
/home/radim/NetBeansProjects/EJBModule3. This folder already exists.

its trying to create test folder, but folder exists...if you would specify its location before pushing finish button it
would be OK.

In beta 2 build this works ok, so it is regression created in last few weeks.



test specification : http://wiki.netbeans.org/wiki/view/TS_60_EJB_withEx_sources
Comment 1 Radim Roska 2007-11-13 13:38:21 UTC
Created attachment 52921 [details]
stack trace
Comment 2 Andrei Badea 2007-11-14 10:57:22 UTC
This is only reproducible when the project folder (containing nbbuild) is the same as the project location (containing
the sources), there is a directory named test in the project location and this directory isn't added as a test source in
the wizard. Doesn't look like a showstopper to me, perhaps not even a P2.

Haven't tested in NetBeans 6.0 beta 2, but it seems to me the current behavior has been present from about NetBeans 4.1.
Comment 3 Andrei Badea 2007-11-15 16:21:28 UTC
Fixed.

Checking in j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/api/AppClientProjectGenerator.java;
/cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/api/AppClientProjectGenerator.java,v  <-- 
AppClientProjectGenerator.java
new revision: 1.19; previous revision: 1.18
done
Checking in j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/api/EjbJarProjectGenerator.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/api/EjbJarProjectGenerator.java,v  <-- 
EjbJarProjectGenerator.java
new revision: 1.23; previous revision: 1.22
done