facebook

Export war file as task in auto generated build.xml?

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

    cyberroadie
    Member

    To deploy my java app with my j2ee hosting provider I’ve written a specific ant task which I include in the build-user.xml (which is included in the auto genrated build.xml). The only thing this task is doing is sending the war file to my provider which automaticly deploys it after receiving it.

    But to actually create the war I have to manually use the export… option and after that run my custom ant task.

    Is it possible to include the creation of a war file in the auto generated build.xml, so my custom ant task can depend on it?

    Regards,

    Olivier

    #245139 Reply

    Riyad Kalla
    Member

    Olivier,
    You can, but it’s the <war> task that is part of Ant, there is not a built in way to do this with MyEclipse.

    #246293 Reply

    HP-France
    Member

    Riyad,

    Is there any template or tutorial to help us to do this … it is important ! In big projects, the packaging is generally done automatically outside the IDE, using ant build files.

    I like a lot your tool but it is really the missing killing feature for an larger adoption in the professional community.

    Bruno, HP.

    #246304 Reply

    Riyad Kalla
    Member

    Bruno,
    The details of every project are so different from one another, that a tutorial on how to port your app from MyEclipse to Ant wouldn’t be any more helpful then a basic tutorial on how to write an Ant script.

    To make a comparison, as we know Ant is like Makefile, so this is would be like having a large KDE application, and asking a kernel developer for a tutorial on how to write a Makefile… they might just stand there for a minute and then reply that the two make files are so different, there isn’t really anything he can provide to you to make it any easier.

    I have added you guys to the internal enhancement request we use to track this though.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Export war file as task in auto generated build.xml?

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