Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 97756

Summary: Need to get rid of .deployable folder
Product: [WebTools] WTP Java EE Tools Reporter: Vijay Bhadriraju <vbhadrir>
Component: jst.j2eeAssignee: John Lanuti <jlanuti>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P2 CC: afalduto, ahsv, andreas, carsten, david_keller_fr, deboer, gorkem.ercan, igorzep, ivphb1x02, jeffliu, john.oshea, juergen.zimmermann, jxhuang, kathy, kkatyal, matt, Michael.Valenta, neilkongca, pavery, raul.fernandez, robertdaniel, ryman, sppatel2, tadwoods, thatnitind, tvwww, tyip, werner.keil, yung-chang.chen
Version: 0.7   
Target Milestone: 1.0 M9   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/107190
Whiteboard:

Description Vijay Bhadriraju CLA 2005-05-31 18:01:35 EDT
The .deployable folder creation using the flex project builders need to be
stopped when the publish task from server tools is available for creating the
deployables at runtime
Comment 1 Vijay Bhadriraju CLA 2005-05-31 18:03:50 EDT
*** Bug 97008 has been marked as a duplicate of this bug. ***
Comment 2 Vijay Bhadriraju CLA 2005-05-31 21:42:08 EDT
*** Bug 93448 has been marked as a duplicate of this bug. ***
Comment 3 Derek Holt CLA 2005-06-06 10:17:24 EDT
*** Bug 90560 has been marked as a duplicate of this bug. ***
Comment 4 Derek Holt CLA 2005-06-07 15:47:09 EDT
*** Bug 98298 has been marked as a duplicate of this bug. ***
Comment 5 Derek Holt CLA 2005-06-08 09:34:00 EDT
Moved severity by mistake
Comment 6 David Williams CLA 2005-06-15 01:21:30 EDT
Changed Version field given new release numbering.
Comment 7 Derek Holt CLA 2005-06-15 13:15:16 EDT
*** Bug 97162 has been marked as a duplicate of this bug. ***
Comment 8 Derek Holt CLA 2005-06-15 15:47:55 EDT
*** Bug 100119 has been marked as a duplicate of this bug. ***
Comment 9 Derek Holt CLA 2005-06-29 09:29:10 EDT
*** Bug 102094 has been marked as a duplicate of this bug. ***
Comment 10 Derek Holt CLA 2005-06-29 15:47:12 EDT
*** Bug 101340 has been marked as a duplicate of this bug. ***
Comment 11 Derek Holt CLA 2005-07-12 10:36:57 EDT
Moving to M8 as Server tools will not be able to drop in time for 0.7  
Comment 12 Chuck Bridgham CLA 2005-07-14 14:26:51 EDT
This does not drastically hinder the user experience in 0.7, deferring to 1.0
Comment 13 John Lanuti CLA 2005-08-15 10:25:06 EDT
*** Bug 99609 has been marked as a duplicate of this bug. ***
Comment 14 Chuck Bridgham CLA 2005-08-15 10:26:05 EDT
107021 has been openned to track the changes on the server side
Comment 15 Chuck Bridgham CLA 2005-08-22 09:22:59 EDT
*** Bug 107531 has been marked as a duplicate of this bug. ***
Comment 16 Chuck Bridgham CLA 2005-08-22 09:41:02 EDT
*** Bug 105206 has been marked as a duplicate of this bug. ***
Comment 17 Chuck Bridgham CLA 2005-08-22 09:43:18 EDT
*** Bug 105228 has been marked as a duplicate of this bug. ***
Comment 18 Chuck Bridgham CLA 2005-09-09 15:00:28 EDT
*** Bug 109083 has been marked as a duplicate of this bug. ***
Comment 19 Werner Keil CLA 2005-09-12 09:24:04 EDT
The problem, that .deployable shows up in the team synchronizaton seems to 
result from every CVS folder being copied from a (versioned) web source to the 
appropriate module under .deployable.
Comment 20 Chuck Bridgham CLA 2005-09-12 14:48:27 EDT
*** Bug 109210 has been marked as a duplicate of this bug. ***
Comment 21 Chuck Bridgham CLA 2005-09-12 14:50:34 EDT
*** Bug 107611 has been marked as a duplicate of this bug. ***
Comment 22 Chuck Bridgham CLA 2005-09-12 15:19:29 EDT
*** Bug 109240 has been marked as a duplicate of this bug. ***
Comment 23 Chuck Bridgham CLA 2005-09-14 13:16:47 EDT
*** Bug 107113 has been marked as a duplicate of this bug. ***
Comment 24 Chuck Bridgham CLA 2005-09-19 09:43:03 EDT
*** Bug 104533 has been marked as a duplicate of this bug. ***
Comment 25 Werner Keil CLA 2005-09-21 08:27:45 EDT
(In reply to comment #19)
> The problem, that .deployable shows up in the team synchronizaton seems to 
> result from every CVS folder being copied from a (versioned) web source to 
the 
> appropriate module under .deployable.

Seems to be a bug on the ECLIPSE (Team) IDE side.
Since 3.2 M1 ignores the .deployables folder correctly if told to (via Team 
settings or .cvsignore)
Comment 26 Michael Valenta CLA 2005-09-21 08:59:37 EDT
Yes, there was a bug in the CVS plugin that has been fixed in 3.2 as described 
in bug 107113.
Comment 27 John Lanuti CLA 2005-09-28 13:41:58 EDT
*** Bug 108390 has been marked as a duplicate of this bug. ***
Comment 28 Chuck Bridgham CLA 2005-09-30 09:25:37 EDT
*** Bug 111129 has been marked as a duplicate of this bug. ***
Comment 29 Laurent Denanot CLA 2005-10-05 06:28:27 EDT
The discussion here seems to wander off to the subject of .deployables showing 
up incorrectly in CVS synchronization.

Note that this particular point is discussed in more detail in bug #94602.

So, what is *this* bug report really about ?? I did not really get the point 
from the original description.





Comment 30 Werner Keil CLA 2005-10-05 06:39:41 EDT
Good question!;-)

If all about getting rid of .deployables was for synchronization, then this 
has been solved by bugfixes in other parts of Eclipse.

If there are other reasons to get rid of .deployables and deploy via other 
folders, then THAT would be the main reason for this bug.
Comment 31 John Huang CLA 2005-10-05 09:10:15 EDT
There are quite a few defects are duplicated to this one. First I would like to
say if there is not need for this directory, please remove it. It causes a lot
of problem. The sync inside the workspace is always troublesome, and the builder
only  do incremental build, if I have old backend mapping, after I delete it and
create a new mapping, old mapping is still in .deployable, it would cause deploy
and runtime errors. Again if we don't need it, please remove it. 
Comment 32 Tim deBoer CLA 2005-10-05 09:55:17 EDT
Hi,
Yes, this bug is being used for the complete removal of the .deployables. We
will still have a Java bin folder per module, but all assembly will be done
outside of the workspace.
We are within days of the initial removal, at which point we expect to have a
few builds with publishing issues as we work out the details in each server adapter.
Comment 33 Laurent Denanot CLA 2005-10-05 13:27:54 EDT
(In reply to comment #32)

Thanks for the feedback all of you, and thanks Tim for your explanation.

> Yes, this bug is being used for the complete removal of the .deployables. We
> will still have a Java bin folder per module, but 
> all assembly will be done outside of the workspace.

Hmm.. I have 2 questions here -- If the "bin" folder only contains Java 
classes, and 'all assembly is done outside of the worskpace', then:

- where will 'all assembly' take place exactly ?
- how is it an improvement over the .deployables approach ? With the current 
approach, at least you have all your bits in one single place.

Furthermore, regardinng assembly: 

If you use Tomcat as the target server with the "run modules directly from 
workspace" option, then technically I suppose there are only two choices:
- the current .deployables folder
- OR, revert back to pre-M4 style and tell the server to 
use "ModuleName/WebContent" as the module root, which implies you have to 
compile Java classes to "ModuleName/WebContent/WEB-INF/classes".... Meaning, 
assembly *stil* takes place in the workspace.

So, I fail to see an alternative scenario which would be a real improvement on 
theses 2 options ? 

Not to mention that with the current Tomcat server adapter, you still have a 
lot of data in the workspace anyway 
(in .metadata/.plugins/org.eclipse.wst.server.core), including serialized 
sessions and compiled JSPs in the tmpX/work/Catalina/localhost/ModuleName/ 
subdirectory (where 'X' is the server "order number").

Is there any documentation available that describes the new approach that is 
being implemented ? Or posts on wtp-dev perhaps ?


> We are within days of the initial removal, at which point we expect to have a
> few builds with publishing issues as we work out the details 
> in each server adapter.

So, looks like it' s a pretty definitive plan and very close to final 
implementation then ! 

I suppose it will then definitively be in M9, as indicated by the target 
milestone for this bug ?

OK... I'd better stop bothering you for now with questions ;-)

Thanks,
Laurent
Comment 34 Tim deBoer CLA 2005-10-06 00:25:15 EDT
Please see my note to the wtp-dev mailing list. This work has been in progress
for several weeks, and I've tried to explain the change and the impact to this
week's I-build.
Comment 35 Laurent Denanot CLA 2005-10-06 11:03:06 EDT
(In reply to comment #34)
> Please see my note to the wtp-dev mailing list. This work has been in progress
> for several weeks, and I've tried to explain the change and the impact to this
> week's I-build.

Thanks a lot Tim, I think I found your post, here's the URL for the convenience 
of everyone:

http://dev.eclipse.org/mhonarc/lists/wtp-dev/msg02620.html

As per your message, it does appear that the situation is quite complex, esp. 
regarding deploying a module to several servers, and the handfling of remote 
servers too.

Well, I suppose it's just wait and see now, I'm looking forward to looking at 
the result in M9.

Cheers,
Laurent

Comment 36 Chuck Bridgham CLA 2005-10-06 13:54:51 EDT
*** Bug 111734 has been marked as a duplicate of this bug. ***
Comment 37 John Lanuti CLA 2005-10-07 12:58:34 EDT
The j2ee component builders and deployables folder are now removed.  They will
be replaced via Tim's note, see link above.  We will treat all new problems as
new defects as we will not be creating a deployables folder any longer.

This is fixed in the 1007 WTP M9 integration driver.
Comment 38 Gorkem Ercan CLA 2005-11-17 06:57:06 EST
*** Bug 116849 has been marked as a duplicate of this bug. ***
Comment 39 Vijay Bhadriraju CLA 2005-11-23 12:18:52 EST
closing verified on 11/22 S build
Comment 40 Eclipse Genie CLA 2017-10-11 15:45:23 EDT
New Gerrit change created: https://git.eclipse.org/r/107190