= Releasing Applications = [[PageOutline]] == Creating a new release == === Update Build Version === First, open [source:trunk/ant/include/utils.xml ant/include/utils.xml] in Eclipse. Update the build version as follows: * update.major.version - updates the major (first) version. For example, this will update from 1.5.2 to 2.0.0 * update.minor.version - updates the major (first) version. For example, this will update from 1.5.2 to 1.6.0 * update.build.number - '''should not be used here''' Commit the newly modified file [source:trunk/ant/include/build.version ant/include/build.version] to trunk. === Create a release branch === You should then create a branch for this release. The branch should be created in the [source:branches/releases] directory with the name "release_..x". For example, for version 1.0.0, the branch [source:branches/releases/release_1.0.x] was created. === Update !ServerPrefs === Next, you must update the server preferences class in the new branch, and commit it to SVN. This tells various parts of the OpenSHA project that this is a release branch, and to use the "stable" server URLs/ports. In Eclipse, open the class [source:trunk/src/org/opensha/commons/util/ServerPrefUtils.java ServerPrefUtils] in org.opensha.commons.util . Find this line: {{{ public static final ServerPrefs SERVER_PREFS = ServerPrefs.DEV_PREFS; }}} And change it to: {{{ public static final ServerPrefs SERVER_PREFS = ServerPrefs.PRODUCTION_PREFS; }}}