1

I have java web application which is sent as ear for web-sphere deployment .

But in order to avoid downtime for minor patch fix we have to send the class file or jsp change at times

we use ant and jenkins to build , has someone used any script to extract such specific class file from compiled package to be packaged and sent in proper folder structure which can be used to just copy over the deployed environment?

We are on windows not on unix.

appreciate your response.

Dev
  • 6,628
  • 2
  • 25
  • 34
anthriksh2000
  • 233
  • 2
  • 4
  • 11

1 Answers1

0

There are many ways to achieve this, here are some hints and information that might be useful for you to select the best way.

In general for production environments it is not recommended to replace single files as your packed application (ear) will not be synchronized with expanded one and changes might get lost on full resynchronization.

You can check the following page to get various options for partial updates - Updating enterprise application files:

If you use Jenkins, you could create separate Job to gather updated files and prepare for example archive for partial update, rather than trying to extract files from package.

Gas
  • 17,601
  • 4
  • 46
  • 93
  • Thanks for input , problem is that in case of class or jar file , we need to compile the entire package first with jenkins and then has to exctact specified far/class file which may be liying inside many internal war file hierarchy of ear file file . – anthriksh2000 Jan 18 '15 at 09:55