- This topic has 5 replies, 5 voices, and was last updated 20 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
Scott RyanMemberWE package our projects similar to Apache and suggested BEA split directory structure where the source is in the same tree as the web root. When we run our builds the source is stripped out and the WAR and EAR delivered without source. It makes a nice organization for our SCCS. I don’t mind the source in the EAR or WAR while debugging. I would like to be able to set up a Source folder and a Web Root folder in the same project root. I could do this in 2.7RC2 by manually manipulating the source folder and web root folder and although it would not deploy i could at least edit and compile my code. It looks like that capability was taken away in 2.7GA.
I would like to see the structure supported in future releases including the ability to deploy successfully.
Thanks
Scott Ryan
Scott AndersonParticipantScott,
Thanks for providing this information. The more detail you can provide on your requirements the better because flexible project structure support is the primary focus of release 2.8. We realize there are many existing projects out there and we want to support them as best we can. We believe in developing MyEclipse along the old adage “get it working, get it working right, make it flexible”. With 2.7 I believe we’re now “working right” and with 2.8 we’ll be working hard on “make it flexible”. Just let us know what you need, specifically, and we’ll do our best to accommodate for 2.8.
support-michaelKeymasterPlease note that Eclipse currently forbids overlapping source and output locations. The implications are obvious, if you scrub an output location you can easily blow away your src. Not cool! If this is your distribution model then I would propose an ME export function that will package application archives accordingly.
Riyad KallaMemberScott Ryan,
If I’m understanding the request, you aren’t asking for src/output to be the same, you are asking that they both be under webroot, maybe something like:/webroot /src <-- source /WEB-INF /classes <-- output
Is this correct? If that is the case, I’m not sure what is keeping you from setting this from MyEclipse… if you are infact asking for src/output to be the same (like Michael suggested) then yes I can understand that Eclipse (not MyEclipse) will stop you from doing so.
Michael SchulzMember@support-rkalla wrote:
Scott Ryan,
If I’m understanding the request, you aren’t asking for src/output to be the same, you are asking that they both be under webroot, maybe something like:/webroot /src <-- source /WEB-INF /classes <-- output
Is this correct? If that is the case, I’m not sure what is keeping you from setting this from MyEclipse… if you are infact asking for src/output to be the same (like Michael suggested) then yes I can understand that Eclipse (not MyEclipse) will stop you from doing so.
Our requirement is similar – and we are currently using this approach with Eclipse 2.1.2:
C:\tomcat5\webapps\myapp is the Eclipse project root, <b>and</b> the web root folder. This allows us to work directly in the file structure of the deployed application. We use this on our local machines for coding and unit testing. We don’t actually deploy the web application using a deplyment tool – we use a CVS update command to update the source files directly on the development (integration testing) server, and then, another CVS update is performed on the production server once all changes are accepted. We do not use the deploy mechanism because we don’t want to stop the web app (if possible).AFAIK, Eclipse (V2 at least) does not prevent overlapping source and output folders, and yes, I have burned a time or two when the output folder is scrubbed and I lose my source code. But generally, this is not a problem.
So for us, the project structure matches the deployed structure exactly. We would like to use MyEclipse, but as far as I can tell, MyExclipse 2.7GA does not allow this configuration. I saw in another post that MyEclipse 2.8 would be providing this feature….can anyone confirm or deny that? Please count us as an organization that would really like to have this capability.
-Mike Schulz,
Calumet Photographic
Riyad KallaMemberMike,
Thank you for the clear explination, yes having the webroot and project root be the same was a very popular request that will be in 2.8 along with (as Scott has mentioned) quite a few other deployment and project layout/organization enhancements to allow people to really mold MyEclipse to their needs. -
AuthorPosts