+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Apply a fix pack by using the Ant files

We can apply a fix pack with Ant tasks if MobileFirst Server is installed with Ant tasks.

Parent topic: Install with Ant Tasks


Update with the sample Ant file

If we use the sample Ant files that are provided in the mfp_install_dir/MobileFirstServer/configuration-samples directory to install MobileFirst Server, you can reuse a copy of this Ant file to apply a fix pack. For password values, we can enter ************ (12 stars) instead of the actual value, to be prompted interactively when the Ant file is run.

To apply a fix pack, do the following steps.


Procedure

  1. Verify the value of the mfp.server.install.dir property in the Ant file. It must point to the directory that contains the product with the fix pack applied. This value is used to take the updated MobileFirst Server WAR files.
  2. Run the command:

      mfp_install_dir/shortcuts/ant -f your_ant_file update


Update with own Ant file

If we use your own Ant file, make sure that for each installation task (installmobilefirstadmin, installmobilefirstruntime, and installmobilefirstpush), you have a corresponding update task in your Ant file with the same parameters. The corresponding update tasks are updatemobilefirstadmin, updatemobilefirstruntime, and updatemobilefirstpush.

To apply a fix pack with your own Ant file, do the following steps.


Procedure

  1. Verify the class path of the <taskdef> element for the mfp-ant-deployer.jar file. It must point to the mfp-ant-deployer.jar file in an MobileFirst Server installation that the fix pack is applied. By default, the updated MobileFirst Server WAR files are taken from the location of mfp-ant-deployer.jar.
  2. Run the update tasks (updatemobilefirstadmin, updatemobilefirstruntime, and updatemobilefirstpush) of your Ant file.