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 51399 - Multiple src directories support for the same project
Summary: Multiple src directories support for the same project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 01:00 UTC by wqtnetbeans
Modified: 2005-07-11 12:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wqtnetbeans 2004-11-11 01:00:42 UTC
Hi,

This is a seperate request from another one:
http://www.netbeans.org/issues/show_bug.cgi?id=46354

As will be the case for j2se projects, j2ee
projects should also support multiple source
directories within in the same project.

Thanks!!!
Comment 1 Jesse Glick 2004-11-11 21:27:09 UTC
Note that this needs more precise formulation: for Java source roots
only? Also for web context roots (which could be impossible, depending
on how things are set up)?
Comment 2 vbeffa 2004-11-12 20:39:21 UTC
It should be possible to mount separate Java source roots, as well as
non-Java source roots. A J2EE app can have servlets, beans, and EJBs,
which need to be compiled to different target directories. (The Java
source may reside completely outside the deployed J2EE app directory
structure.) I see the need for at least three different Java source
mappings and one non-Java source mapping.

1. Servlets need to be compiled to WEB-INF/classes.
2. Beans need to be compiled to WEB-INF/classes (as .class files if
the container will support dynamic reloading) or to WEB-INF/lib (as a
.jar file).
3. EJBs need to be compiled to a different directory as a jar file.

These source files may be in subdirectories of one mounted filesystem
or separate mounted filesystems. In general they will be
subdirectories of one filesystem, since the source code for one J2EE
app will usually be kept in the same directory structure, organized by
package name (e.g., com.foo.servlet.*, com.foo.beans.*,
com.foo.ejb.*). Then you would specify that a certain subdirectory is
compiled (as either .class files or one .jar file) to a certain other
mounted filesystem, or subdirectory of a mounted filesystem. It should
be possible to specify these mappings without having to use an Ant
script. I believe in NB 3.5/3.6 the project tab let you do something
pretty similar to this. I think it was on the right track--it just
needed some more enhanced functionality to cover everything described
here.

JSP/HTML files are most conveniently edited directly inside the
deployed app, so that changes can immediately be viewed in the
browser. Thus, it should be possible to mount the web app directory
that resides in the deployment directory. Depending on the source
control system in use, it may be possible to check those files out
directly to the web app directory.
Comment 3 _ ludo 2005-01-05 06:35:35 UTC
fixed?
Comment 4 Martin Adamek 2005-01-05 07:46:12 UTC
Fixed.
Comment 5 Petr Blaha 2005-07-11 12:39:53 UTC
build 20050607