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 206962 - Skip Deployment on Run if Project has no Changes
Summary: Skip Deployment on Run if Project has no Changes
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P1 normal with 1 vote (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 21:56 UTC by bht
Modified: 2012-09-16 18:13 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 bht 2012-01-05 21:56:56 UTC
- Start NB
- open the project (if it isn't already)
- 'right-click Debug' the project
- 'right-click Run' the project.

If the project was already deployed, and there are no source code changes, then curretly the project still gets un-deployed and deployed.

There could be a potential time saving if the IDE can skip the
re-deployment if the project is up to date. Like when I click in the services
window at the deployed app "Open in Browser" but I don't always know whether I
made source code changes.

There could be a dependency on

Project Properties|Libraries|"Build required Projects (Libraries and WAR
content)"
Comment 1 Vince Kraemer 2012-01-05 22:28:42 UTC
If the project is a web app project the output on my mac for the secondary right-click Run is 


init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Incrementally deploying WicketExamples
Completed incremental distribution of WicketExamples
run-deploy:
Browsing: http://localhost:8080/WicketExamples
run-display-browser:
run:
BUILD SUCCESSFUL (total time: 0 seconds)

If I put that web app into an ear, the output is

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
WicketExamples.init:
Deleting directory /Users/vkraemer/WicketExamples/build/web/WEB-INF/lib
WicketExamples.deps-module-jar:
WicketExamples.deps-ear-jar:
WicketExamples.deps-jar:
WicketExamples.library-inclusion-in-archive:
WicketExamples.library-inclusion-in-manifest:
WicketExamples.compile:
WicketExamples.compile-jsps:
WicketExamples.do-ear-dist:
WicketExamples.dist-ear:
pre-pre-compile:
pre-compile:
do-compile:
post-compile:
compile:
pre-dist:
post-dist:
dist-directory-deploy:
pre-run-deploy:
Undeploying ...
Initializing...
Initial deploying EnterpriseApplication5 to /Users/vkraemer/NetBeansProjects/EnterpriseApplication5/dist/gfdeploy/EnterpriseApplication5
Completed initial distribution of EnterpriseApplication5
Initializing...
post-run-deploy:
run-deploy:
Browsing: http://localhost:8080/WicketExamples
run-display-browser:
run-ac:
run:
BUILD SUCCESSFUL (total time: 14 seconds)

The web app was set to compile on save but not deploy on save... though that may be a false lead.
Comment 2 Vince Kraemer 2012-01-05 22:32:53 UTC
WicketExample comes from http://netbeans.org/bugzilla/attachment.cgi?id=94576 which is part of bug 181173