facebook

Custom builder executed after deployment

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #303210 Reply

    DMInfotech
    Member

    Hi to all,
    I have a problem concerning the customization of a ear project.
    I need to replace some files after the local deployment of the exploded ear. To make this task automatic, I ‘ve added a custom ant builder to the project ( Project Properties->Builders and add a custom ant builder after the DeploymentBuilder)

    But this ant builder starts only after the modification of a project’s file.

    Is there a way to automatically run this custom ant builder after the ‘add deployment’ task executed in the Servers tab?

    Thanks a lot
    Daniele

    #303252

    Loyal Water
    Member

    Daniele,
    I’m afraid there is no way of automatically running a custom ant builder after the add deployment task. Sorry about that.

    #303271

    DMInfotech
    Member

    Thanks for your reply, I try to re-elaborate my question.
    I need to use the same EJB Module (ModuleEJB) and Har module (ModuleHar) in two different ear packages. Basically these modules are the same in both ears except that they need to connect to different databases and, as the 2 ears can be deployed in the same JBoss instance, they have to use different JNDI entries to avoid conflicts.
    I use the ant task after deployment to obtain the correct ear, but it’s not an automatic task and can create problem for the production deployment.

    So the question is: how can I efficiently package these two ear in MyEclipse? Should I create different modules (ModuleEJB1/ModuleEJB2 and ModuleHar1/ModuleHar2) with different configuration files? Should I override the configuration files outside the modules in the 2 ear projects?
    Any suggestions is appreciated.

    Thanks a lot for your support
    Daniele

    #303275

    Loyal Water
    Member

    Daniele,
    In MyEclipse it would be easiest to maintain different modules and that way you can just focus on deploying your EARs and not worry about post-processing.

    #303288

    DMInfotech
    Member

    Ok, thanks for the support.

    #303309

    Loyal Water
    Member

    Your welcome.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Custom builder executed after deployment

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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