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 102077 - Delay archive constuction if unnecessary for "running"
Summary: Delay archive constuction if unnecessary for "running"
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 02:07 UTC by Vince Kraemer
Modified: 2011-11-28 08:36 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 Vince Kraemer 2007-04-22 02:08:03 UTC
When a user has targeted Tomcat, GlassFish or SJSAS local servers, the war file
is not actually used to run the project, since these servers support in-place or
directory based deployment....

Since creating a war file can be expensive for non-trivial applications, we may
want to think of a way to refactor the build to delay the repackaging of a war...

For example... have two targets which package the war file...

One of the targets has an if conditional.. the second has an unless
conditional... on a single property... package.before.deploy

The two targets "surround" the run target that calls nbdeploy.

In situations where the packaged war file isn't necessary... the packaging can
be done AFTER the ant script has triggered the browser...

The Run target will still provide a packaged archive (which folks have probably
come to expect) but the perceived time that it takes to do a "Run Project" will
be reduced significantly.