facebook

Reconciling MyEclipse EAR structure with source control?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #218771 Reply

    omboman
    Member

    Hi,

    I’m currently evaluating MyEclipse, as part of a large scale office re-organisation, and I like it except for the fact that I cannot think of a way to commit and retrieve entire Enterprise Applications to and from one location in the source repository.

    We are moving to using Subversion and need to keep an entire application – including its web application module and its EJB module – within its own directory, to be checked out at the same time.

    For example :

    /MyEnterpriseApplication
    /MyEnterpriseApplication/META-INF/application.xml

    /MyEnterpriseApplication/webmodule
    /MyEnterpriseApplication/webmodule/jsp
    /MyEnterpriseApplication/webmodule/WEB-INF

    /MyEnterpriseApplication/earmodule
    /MyEnterpriseApplication/earmodule/com/companyname/ejb
    /MyEnterpriseApplication/earmodule/WEB-INF
    /MyEnterpriseApplication/earmodule/META-INF

    So checking out the project from within Eclipse (probably via subclipse repository browser) ‘MyEnterpriseApplication’ would obtain the whole thing as a complete project.

    Is there a way of acheiving this that I just have not seen?

    Thanks.

    #218775 Reply

    Riyad Kalla
    Member

    I’ve asked someone to look at this.

    #218786 Reply

    Riyad Kalla
    Member

    I got a response from one of the devs and the short answer is “no this won’t work”, but the longer answer is “with some enhancements in 3.8.3 you can get SOME editing help from MyEclipse, but deployment and such will be up to a custom ant script”.

    Here is the quote from the dev:

    A project of this structure we can’t enforce the
    proper classloader hierarchies at build time. A full description of the
    issue is in the recently-released Enterprise Application Project tutorial,
    here: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/

    He’s probably already got deployment figured out, so with 3.8.3 he *could*
    check this in as a plain Java project and continue to do his own deployment.
    But that will only get him *most* of the way there.

    #218865 Reply

    omboman
    Member

    Thanks for the quick response.

    So, assuming that I am willing to adapt the directory structure that I am working with; is it possible to have an enterprise application in which every file needed for the entire application can be checked out of source control in one go, and builds directly in eclipse? Or would it be a case of working out a hack to do it?

    #218867 Reply

    Riyad Kalla
    Member

    You couldn’t check it out in one go, you would instead have a project for your EJBs, a project for your Web Module, and then a 3rd project for your EAR… the EAR in MyEclipse is composed of any number of EJB and Web Modules (we are looking at adding normal Java Projects in the future).

    If you did want to stick with the format you had above, I don’t know that MyEclipse could help you much with deployment/editing/etc.

    Did this clarify things? If not, please let me know.

    #219118 Reply

    Eric Rizzo
    Member

    I am too facing this issue right now. I see this a a serious issue for MyEclipse adoption – not everyone uses Eclipse and/or MyEclipse which means that there will often be the need to integrate with “unified” directory structures that pre-exist or are more friendly for non-Eclipse team members.
    I really hope the MyEclipse team comes up with some combination of configuration options, ME enhancements, and/or SCM layout recommendations that address this – especially since I’ve already plunked down my $30 for the product – I hope that I am not limited to using it merely as a fancy JSP and Struts config editor…

    #219119 Reply

    Riyad Kalla
    Member

    erizzo,
    I assure you we are *very* aware of these limitations and are not fond of them ourselves. We will do something about this, but the change required is major and will not happen over night. We need to be in a position to really dig in and do some serious changes for about 2 months to get where we need/want to be. It will be sooner than later, but I have no exact ETA on it.

    #219344 Reply

    jarethk
    Member

    I was able to work around this issue pretty easily with CVS. I really cannot comment on Subversion.

    We created a CVS module like what omboman indicated in his original post. But in Eclipse we check-out the sub-folders as separate Eclipse projects.

    We still get to use the features of MyEclipse, and still can support our nightly builds and release management procedures which happen outside Eclipse and require the full module be checked out.

    #219346 Reply

    Scott Anderson
    Participant

    Excellent tip. Thanks for taking the time to post it to help out others.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Reconciling MyEclipse EAR structure with source control?

You must be logged in to post in the forum log in