5. Upgrading the Environment

The process of upgrading to a new version of Liferay Portal is very similar to the one performed for creating the environment the first time:

  1. Obtain the sources of the new version of Liferay Portal

  2. Create and edit a file named release.${user.name}.properties and set the location of the ext environment:

    lp.ext.dir=D:/Projects/liferay/portal/ext
  3. Build the sources and execute the build-ext target to upgrade the existing environment:

    $ ant start
    $ ant build-ext

    The build-ext target detects that the specified location for the ext environment already exists and will only upgrade it, maintaining all changes made in the appropriate locations

[Note]Note

Be aware that when updating to certain new Liferay Portal version you may need to also upgrade the version of the application server or do other manual changes. Check the upgrade documentation specific to that version for more information.