Re: Netbeans File Organization - Web Project
LB wrote:
I fully understand that there are two
directories, one for source and one for deployment, but what I don't
understand is the management behind them. My expectation is the
Simple. When the project is built, it reads the files from the source tree
and assembles the resulting artifacts into the build tree.
system always works off of the build folder, but when you "run" the
application, Netbeans would make a copy of the build folder files, and
update the files in the deployment directory, and then deploy off the
deployment directory... but my system is clearly is NOT working that
way. When I spot check the files in the deployment directory, they
The build directory *is* the deployment directory.
are about two or three series of changes too old. (Netbeans does have
a pretty good file compare tool!) I don't understand the mechanism
where files in the deployment directory are updated with recent
changes. My take is that nothing in the deployment directory can be
trusted.
What do you mean by the "deployment directory"? The build directory *is* the
deployment directory.
Am I missing something? What are the logic rules for when the system
updates a deployment directory?
You have lost me. What do you mean by "the system"? "deployment directory"?
What NetBeans does is copy artifacts into the 'build/' tree when you do a
build. For Web applications, it will also build a WAR file in the 'dist/'
directory. Some non-NB process will use that WAR to deploy to an external
application server.
--
Lew