facebook

Automating Multiple Project XDoclet Builds

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

    Lance Drake
    Member

    Hi MyEclipse Folks,

    Certainly this must be possible – can anyone suggest what to investigate as the suggested way to cause multiple projects be ‘built’ – meaning “Run XDoclet” and then deployed?

    I have about 20 Projects which all play together that need to be handled as indicated below.

    The amount of menu-yanking and button-clicking are likely to soon give me CTS.

    What I would like to do is be able to initiate a build where:
    1) All projects are CLEAN-ed and re-BUILT
    2) All projects are caused to ‘Run XDoclet’
    3) All projects are DEPLOY-ed to their target destinations.

    Please advise what mechanism would be implemented to make the above actions possible.

    THANKS!

    #283409 Reply

    Loyal Water
    Member

    LanceDrake,
    I’m sorry this is not possible.

    #283410 Reply

    Lance Drake
    Member

    Hi Eclipse Support –

    Well – when it’s SAMOS (simply a matter of software) maybe nothing is impossible.

    Another approach may be that of making use of javascript accesses to Eclipse DOM objects such as menu items and toolbar buttons and invoking the desired activities in that way. In that case, the exciting part is locating the items you might wish to make use of. I hope to be able to figure that out.

    The next, perhaps most promising, thing which might be useful is to generate a tree of ANT scripts which would perform the activities and to invoke the top level via an ANT project in the eclipse workspace.

    If anyone has any comments of the lack of wisdom of either or both of those approaches – I would so appreciate hearing from you.

    The ability to perform a “One-Button-Build” of multiple projects would seem to be a natural extension of the already wonderful capabilities of Eclipse.

    Best Regards,

    Lance Drake

    #283516 Reply

    Riyad Kalla
    Member

    Lance I have an idea of how to do this… I think it should work:

    1. Go to the MyEclipse > XDoclet > Build, and change the build settings to generate a build file (instead of using dynamic)

    2. Edit the project properties for each project, and add a new Ant Builder that runs at the end, and invokes the generated build file (you may need to run Xdoclet 1 more time to get the file generated for you.)

    3. Go to Window > Prefs > General > Workspace and select “Refresh automatically” so the Xdoclet generated sources are seen by MyEclipse.

    4. At this point, you can now Clean your projects and they should rebuild AND re-run Xdoclet completely.

    As far as keeping that many projects deployed with 1 button, I can’t offer you a solution to that, but if the projects are related to each other somehow (like 1 EAR and 10 modules) that deployment scenario can be simplified by just deploying the top level projects, ME will package/deploy those project dependencies.

    Hope that helps a bit.

    #283520 Reply

    Lance Drake
    Member

    Hi Riyad – AND MyEclipse Support

    Hey that looks to be a very clever and appropriate approach to solving the problem. I will give it a try and let you know how it goes. I appreciate your taking the time to help me with this and sharing your good thoughts.

    Best Regards,

    Lance Drake

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Automating Multiple Project XDoclet Builds

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