Version 1 (modified by 14 years ago) (diff) | ,
---|
Releasing Applications
Creating a new release
Update Build Version
First, open 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 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 branches/releases directory with the name "release_<major>.<minor>.x".
For example, for version 1.0.0, the branch 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 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;