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

Applying a fix pack by using the Ant files

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

Updating with the sample Ant file

About this task

If you 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, you 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

Updating with own Ant file

About this task

If you 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.