facebook

[Closed] Export J2EE project to EAR file using Ant

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Moshe
    Member

    Hi,
    I an using MyEclipse 5.0 as my IDE and I would like to ear my J2EE project which is build of some modules (e.g. WEB, EJB etc). For this purpose I am using the built-in wizard tool (Export -> J2EE -> EAR File (MyEclipse)) to ear all my modules (include external libraries) into one ear file.
    My goal is to do the same (ear all my modules) via an Ant script.
    My Question: Is there an ant task (apparently belongs to MyEclipse) that takes for example J2EE project built with MyEclipse and does the same work (exporting to ear file same as the wizard)?
    If not, what is the natural way to do that? (should I jar every module within the project, copy the jar and its dependencies libraries to some folder and finally ear all files using the <ear> task??)

    Thanks for any assistance.
    simon.

    #259376

    Riyad Kalla
    Member

    Simon,
    There is currently no wizard that will generate this Ant script for you as far as the “natural” way to do this, it entirely depends on your deployment and building environment. Every team does it differently. Some teams hard-code the paths from their IDE so everything runs normally, other teams write scripts that check out the contents of all the projects to temporary folders and build everything from scratch from source control.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] Export J2EE project to EAR file using Ant

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