| 1 | = Releasing Applications = |
| 2 | [[PageOutline]] |
| 3 | == Creating a new release == |
| 4 | |
| 5 | === Update Build Version === |
| 6 | First, open [source:trunk/ant/include/utils.xml ant/include/utils.xml] in Eclipse. Update the build version as follows: |
| 7 | * update.major.version - updates the major (first) version. For example, this will update from 1.5.2 to 2.0.0 |
| 8 | * update.minor.version - updates the major (first) version. For example, this will update from 1.5.2 to 1.6.0 |
| 9 | * update.build.number - '''should not be used here''' |
| 10 | |
| 11 | Commit the newly modified file [source:trunk/ant/include/build.version ant/include/build.version] to trunk. |
| 12 | |
| 13 | === Create a release branch === |
| 14 | You should then create a branch for this release. The branch should be created in the [source:branches/releases] directory with the name "release_<major>.<minor>.x". |
| 15 | |
| 16 | For example, for version 1.0.0, the branch [source:branches/releases/release_1.0.x] was created. |
| 17 | |
| 18 | === Update !ServerPrefs === |
| 19 | 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. |
| 20 | |
| 21 | In Eclipse, open the class [source:trunk/src/org/opensha/commons/util/ServerPrefUtils.java ServerPrefUtils] in org.opensha.commons.util . Find this line: |
| 22 | {{{ |
| 23 | public static final ServerPrefs SERVER_PREFS = ServerPrefs.DEV_PREFS; |
| 24 | }}} |
| 25 | And change it to: |
| 26 | {{{ |
| 27 | public static final ServerPrefs SERVER_PREFS = ServerPrefs.PRODUCTION_PREFS; |
| 28 | }}} |